61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
|
|
name: frontend
|
||
|
|
version: 0.1
|
||
|
|
cabal-version: >= 1.8
|
||
|
|
build-type: Simple
|
||
|
|
|
||
|
|
library
|
||
|
|
hs-source-dirs: src
|
||
|
|
build-depends: base
|
||
|
|
, common
|
||
|
|
, jsaddle
|
||
|
|
, lens
|
||
|
|
, obelisk-executable-config-lookup
|
||
|
|
, obelisk-frontend
|
||
|
|
, obelisk-generated-static
|
||
|
|
, obelisk-route
|
||
|
|
, reflex-dom-core
|
||
|
|
, text
|
||
|
|
, toy-datalog
|
||
|
|
exposed-modules:
|
||
|
|
Frontend
|
||
|
|
default-extensions:
|
||
|
|
ImportQualifiedPost,
|
||
|
|
OverloadedStrings,
|
||
|
|
FlexibleContexts
|
||
|
|
ghc-options: -Wall -O -fno-show-valid-hole-fits
|
||
|
|
-- unsafe code
|
||
|
|
-Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields
|
||
|
|
-- unneeded code
|
||
|
|
-Widentities -Wredundant-constraints
|
||
|
|
if impl(ghc >= 8.8)
|
||
|
|
ghc-options:
|
||
|
|
-Wmissing-deriving-strategies
|
||
|
|
|
||
|
|
executable frontend
|
||
|
|
main-is: main.hs
|
||
|
|
hs-source-dirs: src-bin
|
||
|
|
build-depends: base
|
||
|
|
, common
|
||
|
|
, frontend
|
||
|
|
, obelisk-frontend
|
||
|
|
, obelisk-route
|
||
|
|
, reflex-dom
|
||
|
|
, toy-datalog
|
||
|
|
default-extensions:
|
||
|
|
ImportQualifiedPost,
|
||
|
|
OverloadedStrings,
|
||
|
|
FlexibleContexts
|
||
|
|
ghc-options: -Wall -O -fno-show-valid-hole-fits -threaded
|
||
|
|
-- unsafe code
|
||
|
|
-Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields
|
||
|
|
-- unneeded code
|
||
|
|
-Widentities -Wredundant-constraints
|
||
|
|
if impl(ghc >= 8.8)
|
||
|
|
ghc-options:
|
||
|
|
-Wmissing-deriving-strategies
|
||
|
|
if impl(ghcjs)
|
||
|
|
ghc-options: -dedupe
|
||
|
|
cpp-options: -DGHCJS_BROWSER
|
||
|
|
if os(darwin)
|
||
|
|
ghc-options: -dynamic
|