Add an importer binary.

This commit is contained in:
Dhananjay Balan
2023-04-13 23:43:39 +02:00
parent 11c4e92cc7
commit 72b3e38980
6 changed files with 117 additions and 16 deletions

View File

@@ -63,6 +63,7 @@ library
Parsers.KOReader,
Parsers.Readwise,
Config,
Database,
-- Modules included in this library but not exported.
-- other-modules:
@@ -124,6 +125,43 @@ executable quotes-api
-- Base language which the package is written in.
default-language: Haskell2010
executable quotes-importer
-- Import common warning flags.
import: warnings
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
-- Other library packages from which modules are imported.
build-depends:
base ^>=4.16.3.0,
sqlite-simple ^>=0.4.18.0,
text ^>=1.2.5.0,
servant-server ^>=0.19.1,
wai,
warp,
aeson,
deriving-aeson,
quotes-api,
servant-blaze,
optparse-applicative,
argon2 >= 1.3.0,
text-short,
bytestring,
QuickCheck,
-- Directories containing source files.
hs-source-dirs: importer
-- Base language which the package is written in.
default-language: Haskell2010
test-suite quotes-api-test
-- Import common warning flags.
import: warnings