single setup server working (with MVar as DB)
This commit is contained in:
parent
8e817110e6
commit
b2d6e19911
5 changed files with 75 additions and 78 deletions
|
|
@ -58,34 +58,32 @@ executable server
|
|||
API
|
||||
InstantRunoff
|
||||
|
||||
|
||||
-- this has to be built with ghcjs to be useful,
|
||||
-- but ghc should still be able build it
|
||||
executable client
|
||||
main-is:
|
||||
Main.hs
|
||||
if !impl(ghcjs)
|
||||
buildable: False
|
||||
else
|
||||
default-extensions:
|
||||
ScopedTypeVariables,
|
||||
OverloadedStrings,
|
||||
OverloadedLists,
|
||||
DataKinds,
|
||||
TypeOperators,
|
||||
RecordWildCards,
|
||||
DuplicateRecordFields,
|
||||
DeriveGeneric
|
||||
ghcjs-options:
|
||||
-dedupe -DGHCJS_GC_INTERVAL=5000
|
||||
hs-source-dirs:
|
||||
client,
|
||||
shared
|
||||
build-depends:
|
||||
aeson,
|
||||
base < 5,
|
||||
containers,
|
||||
miso,
|
||||
servant,
|
||||
-- servant-client-ghcjs,
|
||||
text
|
||||
default-language:
|
||||
Haskell2010
|
||||
default-extensions:
|
||||
ScopedTypeVariables,
|
||||
OverloadedStrings,
|
||||
OverloadedLists,
|
||||
DataKinds,
|
||||
TypeOperators,
|
||||
RecordWildCards,
|
||||
DuplicateRecordFields,
|
||||
DeriveGeneric
|
||||
ghcjs-options:
|
||||
-dedupe -DGHCJS_GC_INTERVAL=5000
|
||||
hs-source-dirs:
|
||||
client,
|
||||
shared
|
||||
build-depends:
|
||||
aeson,
|
||||
base < 5,
|
||||
containers,
|
||||
miso,
|
||||
servant,
|
||||
-- servant-client-ghcjs,
|
||||
text
|
||||
default-language:
|
||||
Haskell2010
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue