aboutsummaryrefslogtreecommitdiffstats
path: root/backend/backend.cabal
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-10-11 23:30:56 +0200
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-10-11 23:30:56 +0200
commit80a6150610182eefa0deb1f0932d3b780456ca09 (patch)
tree4471a8ffecfc527d6b9c2a5c48e445e7a4d6a74f /backend/backend.cabal
parent2e0cf98254976e443ea7f693961fc105ed6cf563 (diff)
use backend REST library for frontend
Diffstat (limited to 'backend/backend.cabal')
-rw-r--r--backend/backend.cabal43
1 files changed, 18 insertions, 25 deletions
diff --git a/backend/backend.cabal b/backend/backend.cabal
index f92dd46..b2ca82b 100644
--- a/backend/backend.cabal
+++ b/backend/backend.cabal
@@ -8,42 +8,31 @@ author: Alexander Foremny
build-type: Simple
library
- exposed-modules: ACMS.API.REST.Collection
+ exposed-modules:
+ ACMS.API.REST
+ ACMS.API.REST.Collection
+
hs-source-dirs: lib
default-language: GHC2021
default-extensions:
- BlockArguments LambdaCase OverloadedStrings ViewPatterns
+ CPP BlockArguments LambdaCase OverloadedStrings ViewPatterns
OverloadedRecordDot NoFieldSelectors MultiWayIf
ghc-options: -Wall -threaded
build-depends:
aeson,
- astore,
- attoparsec,
- autotypes,
base,
bytestring,
- common,
- containers,
- directory,
- filepath,
- gitlib,
- gitlib-libgit2,
- hinotify,
- hlibgit2,
- http-conduit,
- http-types,
- mtl,
- optparse-applicative,
- safe,
- split,
- stm,
- tagged,
+ exceptions,
+ miso,
text,
- utf8-string,
- uuid,
- wai,
- warp
+ utf8-string
+
+ if arch(javascript)
+ build-depends: ghcjs-base
+
+ else
+ build-depends: http-conduit
executable backend
main-is: Main.hs
@@ -79,5 +68,9 @@ executable backend
tagged,
text,
utf8-string,
+ uuid,
wai,
warp
+
+ if arch(javascript)
+ buildable: False