Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created February 16, 2023 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/b878b7daf9b0e486e9accadea6d48ed7 to your computer and use it in GitHub Desktop.
Save exarkun/b878b7daf9b0e486e9accadea6d48ed7 to your computer and use it in GitHub Desktop.
cabal-version: 3.0
name: frontend
version: 0.1
build-type: Simple
library
default-language: Haskell2010
default-extensions: OverloadedStrings
hs-source-dirs: src
-- XXX This requires a newer version of cabal than we have.
-- It would be nice to declare this so `cabal sdist` includes the files.
--
extra-source-files: android-src/ActivityPath.hs
desktop-src/ActivityPath.hs
build-depends: base
, common
, obelisk-frontend
, obelisk-route
, jsaddle
, reflex
, reflex-dom
, reflex-dom-core
, obelisk-executable-config-lookup
, obelisk-generated-static
, text
, time
, time-compat
, megaparsec
, filepath
, directory
, containers
, extra >= 1.7 && <1.8
if os(android)
build-depends: android-activity
hs-source-dirs: android-src
else
build-depends: xdg-basedir
hs-source-dirs: desktop-src
exposed-modules:
Frontend
Activity
Report
ActivityPath
ghc-options: -Wall -Wredundant-constraints -Wincomplete-uni-patterns -Wincomplete-record-updates -O -fno-show-valid-hole-fits
executable frontend
hs-source-dirs: src-bin
main-is: main.hs
default-language: Haskell2010
default-extensions: OverloadedStrings
build-depends: base
, common
, obelisk-frontend
, obelisk-route
, reflex-dom
, obelisk-generated-static
, frontend
, time
ghc-options: -threaded -O -Wall -Wredundant-constraints -Wincomplete-uni-patterns -Wincomplete-record-updates -fno-show-valid-hole-fits
if impl(ghcjs)
ghc-options: -dedupe
cpp-options: -DGHCJS_BROWSER
if os(darwin)
ghc-options: -dynamic
test-suite unit-tests
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
default-language: Haskell2010
default-extensions: OverloadedStrings
build-depends: base
, text
, time
, frontend
, QuickCheck
, hedgehog
, megaparsec
, reflex
Warning: frontend.cabal:13:3: Unknown field: "extra-source-files"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment