Factor out storeFile, unstoreFile, and verifyFile into a MTL style class. This class can provide its own Id type, and never returns FilePaths directly, which should allow a memory-only variant for testing purposes later. Control of storage ids now belongs to MonadFileStore. It was not really the place of the data layer (which is currently a set of SQL queries) to suddenly do one arbitrary file IO operation.
23 lines
496 B
Text
23 lines
496 B
Text
*
|
|
!*/
|
|
!.gitignore
|
|
!flake.nix
|
|
!flake.lock
|
|
!package.yaml
|
|
!app/Main.hs
|
|
!doc/man/*.scd
|
|
!src/CAStore/Command.hs
|
|
!src/CAStore/Command/Autocomplete.hs
|
|
!src/CAStore/Command/Type.hs
|
|
!src/CAStore/Config.hs
|
|
!src/CAStore/Config/Type.hs
|
|
!src/CAStore/Config/CLI.hs
|
|
!src/CAStore/FileStore.hs
|
|
!src/CAStore/Program.hs
|
|
!src/CAStore/Program/Internal.hs
|
|
!src/CAStore/Program/IO.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
|