]> Git — Sourcephile - tmp/julm/android.git/blob - haskell/demo.cabal
learnability(haskell): clarify the build
[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 synopsis: A tasty Haskell mobile framework
12 description: Examples for miso-lynx
13 license: BSD-3-Clause
14 license-file: LICENSE
15
16 common options
17 ghc-options:
18 -funbox-strict-fields -O2 -ferror-spans -fspecialise-aggressively -Wall
19
20 if arch(javascript)
21 ld-options:
22 -sENVIRONMENT=shell
23 -sWASM=0
24 -- MaintenanceToDo: remove once using a GHC including:
25 -- https://gitlab.haskell.org/ghc/ghc/-/issues/26290
26 -sEXPORTED_RUNTIME_METHODS=HEAP8,HEAPU8
27
28 executable counter
29 import:
30 options
31 default-language:
32 Haskell2010
33 main-is:
34 Main.hs
35 ghcjs-options:
36 -dedupe
37 cpp-options:
38 -DGHCJS_BROWSER
39 hs-source-dirs:
40 src
41 build-depends:
42 aeson,
43 base < 5,
44 containers,
45 miso,
46 miso-lynx