-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathghcjs-react.cabal
More file actions
85 lines (75 loc) · 2.58 KB
/
ghcjs-react.cabal
File metadata and controls
85 lines (75 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: ghcjs-react
version: 0.1.0.0
synopsis: Yet another React binding for GHCJS
description:
license: MIT
license-file: LICENSE
author: Ian Duncan
maintainer: ian@iankduncan.com
-- copyright:
category: Web
build-type: Simple
-- extra-source-files:
cabal-version: >=1.12
-- executable react-demo
-- default-language: Haskell2010
-- main-is: demo/Main.hs
-- build-depends: base,
-- mtl,
-- text,
-- ghcjs-base,
-- ghcjs-dom,
-- ghcjs-react
flag minimal
description: Don't include react itself in the build, just the bindings.
default: False
manual: False
flag development
description: Use unminified React sources with warnings and extended validations enabled
manual: False
default: False
flag addons
description: Use React version with addons included
manual: False
default: True
library
default-language: Haskell2010
exposed-modules: React,
React.DOM,
React.DOM.Utils
if flag(addons)
exposed-modules: React.Addons
default-extensions: RankNTypes
-- other-extensions:
build-depends: base >=4.8 && < 5,
ghcjs-base,
ghcjs-dom,
unordered-containers,
text,
transformers,
vector,
mtl,
template-haskell,
transformers-base,
monad-control
hs-source-dirs: src
default-language: Haskell2010
if flag(minimal)
js-sources: js/wrappers.js
else
if flag(development) && flag(addons)
js-sources: js/react-with-addons.js,
js/react-dom.js,
js/wrappers.js
if flag(development) && !flag(addons)
js-sources: js/react.js,
js/react-dom.js,
js/wrappers.js
if !flag(development) && !flag(addons)
js-sources: js/react.min.js,
js/react-dom.min.js,
js/wrappers.js
if !flag(development) && flag(addons)
js-sources: js/react-with-addons.min.js,
js/react-dom.min.js,
js/wrappers.js