aboutsummaryrefslogtreecommitdiffstats
path: root/acms/acms.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'acms/acms.cabal')
-rw-r--r--acms/acms.cabal120
1 files changed, 120 insertions, 0 deletions
diff --git a/acms/acms.cabal b/acms/acms.cabal
new file mode 100644
index 0000000..fc599ec
--- /dev/null
+++ b/acms/acms.cabal
@@ -0,0 +1,120 @@
+cabal-version: 3.4
+name: acms
+version: 0.1.0.0
+license: BSD-3-Clause
+license-file: LICENSE
+maintainer: aforemny@posteo.de
+author: Alexander Foremny
+build-type: Simple
+extra-doc-files: CHANGELOG.md
+
+common commons
+ default-extensions:
+ ApplicativeDo
+ BlockArguments
+ CPP
+ DuplicateRecordFields
+ LambdaCase
+ MultiWayIf
+ NamedFieldPuns
+ NoFieldSelectors
+ NondecreasingIndentation
+ OverloadedRecordDot
+ OverloadedStrings
+ RecordWildCards
+ TypeApplications
+ ViewPatterns
+
+ ghc-options: -Wall -threaded -fno-warn-name-shadowing -fno-warn-x-partial
+ default-language: GHC2021
+
+library
+ import: commons
+ exposed-modules:
+ ACMS.API.Query
+ ACMS.API.REST
+ ACMS.API.REST.Collection
+ ACMS.API.REST.Collection.Paginated
+ Collection
+ Version
+
+ hs-source-dirs: src
+ other-modules: ACMS.API.Fetch
+ build-depends:
+ aeson,
+ base,
+ bytestring,
+ exceptions,
+ miso,
+ split,
+ text,
+ utf8-string
+
+ if arch(javascript)
+ build-depends: ghcjs-base
+
+ else
+ exposed-modules: ACMS.ACMS
+ build-depends:
+ aeson,
+ astore,
+ attoparsec,
+ autotypes,
+ base,
+ bytestring,
+ containers,
+ directory,
+ exceptions,
+ filepath,
+ gitlib,
+ gitlib-libgit2,
+ hinotify,
+ hlibgit2,
+ http-conduit,
+ http-types,
+ mtl,
+ non-empty,
+ optparse-applicative,
+ random,
+ regex,
+ regex-base,
+ regex-pcre,
+ safe,
+ split,
+ stm,
+ tagged,
+ text,
+ utf8-string,
+ uuid,
+ vector,
+ wai,
+ warp
+
+
+executable acms
+ import: commons
+ main-is: Main.hs
+ hs-source-dirs: app
+ build-depends:
+ acms,
+ aeson,
+ aeson-pretty,
+ base,
+ bytestring,
+ filepath,
+ optparse-applicative,
+ sh,
+ text,
+ utf8-string
+
+ if arch(javascript)
+ buildable: False
+
+test-suite acms-test
+ import: commons
+ type: exitcode-stdio-1.0
+ main-is: Main.hs
+ hs-source-dirs: test
+ build-depends:
+ base,
+ acms