]> Git — Sourcephile - tmp/julm/android.git/blob - haskell/demo.cabal
appropriateness: enable `git-hooks`
[tmp/julm/android.git] / haskell / demo.cabal
1 cabal-version: 2.2
2 name: demo
3 version: 1.9.0.0
4 category: Web, Miso, Data Structures
5 author: David M. Johnson <code@dmj.io>
6 maintainer: David M. Johnson <code@dmj.io>
7 homepage: http://github.com/dmjio/miso
8 copyright: Copyright (c) 2016-2025 David M. Johnson
9 bug-reports: https://github.com/dmjio/miso-lynx/issues
10 build-type: Simple
11 license: BSD-3-Clause
12 license: BSD-3-Clause
13 license-file: LICENSE
14
15 common options
16 ghc-options:
17 -funbox-strict-fields -O2 -ferror-spans -fspecialise-aggressively
18 -Wall
19
20 if arch(javascript)
21 ld-options:
22 -sENVIRONMENT=shell -sWASM=0
23 "-sEXPORTED_RUNTIME_METHODS=HEAP8,HEAPU8"
24
25 -- MaintenanceToDo: remove once using a GHC including:
26 -- https://gitlab.haskell.org/ghc/ghc/-/issues/26290
27 executable counter
28 import: options
29 default-language: Haskell2010
30 main-is: Main.hs
31 ghcjs-options: -dedupe
32 cpp-options: -DGHCJS_BROWSER
33 hs-source-dirs: src
34 build-depends:
35 , aeson
36 , base <5
37 , containers
38 , miso
39 , miso-lynx