Move all output to a sum type

All errors, warnings, and messages are now listed in a sum type
in 'CAStore.Type.Text'. The added structure should help with
writing better error messages. Also, if and when we get to
localising ca-store, implementation will be trivial.
This commit is contained in:
hylodon 2025-09-18 16:12:46 +01:00
parent 1971897eb8
commit 68bba7c653
10 changed files with 74 additions and 21 deletions

2
.gitignore vendored
View file

@ -12,6 +12,8 @@
!src/CAStore/Config/CLI.hs
!src/CAStore/Program.hs
!src/CAStore/Program/Internal.hs
!src/CAStore/Program/IO/Text.hs
!src/CAStore/Program/Storage.hs
!src/CAStore/Type.hs
!src/CAStore/Type/Text.hs
!src/Data/List/Extra.hs