on develop help sign in
Move sortableList.hs example to reflex-dom
957be7eHamish Mackenzie
reflex-dom-core/reflex-dom-core.cabal+1−29
@@ -33,15 +33,10 @@ flag expose-all-unfoldings
33 default: False
33 default: False
34 manual: True
34 manual: True
35
35
36−flag build-examples
37− description: Build the executables in ./examples
38− default: False
39− manual: True
40−
41library
36library
42 hs-source-dirs: src
37 hs-source-dirs: src
43 build-depends:
38 build-depends:
44− aeson >= 0.8 && < 1.2,
39+ aeson >= 0.8 && < 1.3,
45 base >= 4.7 && < 4.11,
40 base >= 4.7 && < 4.11,
46 bifunctors >= 4.2 && < 6,
41 bifunctors >= 4.2 && < 6,
47 bimap >= 0.3 && < 0.4,
42 bimap >= 0.3 && < 0.4,
@@ -156,29 +151,6 @@ test-suite gc
156 if !os(linux) || !arch(x86_64)
151 if !os(linux) || !arch(x86_64)
157 buildable: False
152 buildable: False
158
153
159−executable sortableList
160− build-depends: base
161− , containers
162− , dependent-map
163− , lens
164− , mtl
165− , random
166− , reflex
167− , reflex-dom
168− , text
169− , time
170− , transformers
171− hs-source-dirs: examples
172− main-is: sortableList.hs
173− ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
174− ghc-prof-options: -fprof-auto
175− if !flag(build-examples)
176− buildable: False
177− if flag(expose-all-unfoldings)
178− ghc-options: -fexpose-all-unfoldings
179− if flag(use-reflex-optimizer)
180− ghc-options: -fplugin=Reflex.Optimizer
181−
182source-repository head
154source-repository head
183 type: git
155 type: git
184 location: https://github.com/reflex-frp/reflex-dom
156 location: https://github.com/reflex-frp/reflex-dom
examples/sortableList.hs → reflex-dom/examples/sortableList.hsrenamed

The content is the same.

reflex-dom/reflex-dom.cabal+38
@@ -20,6 +20,21 @@ flag webkit2gtk
20 description: Use WebKit2 version of WebKitGTK.
20 description: Use WebKit2 version of WebKitGTK.
21 default: True
21 default: True
22
22
23+flag use-reflex-optimizer
24+ description: Use the GHC plugin Reflex.Optimizer on some of the modules in the package. This is still experimental.
25+ default: False
26+ manual: True
27+
28+flag expose-all-unfoldings
29+ description: Build the library with -fexpose-all-unfoldings which can help client code specialize better
30+ default: False
31+ manual: True
32+
33+flag build-examples
34+ description: Build the executables in ./examples
35+ default: False
36+ manual: True
37+
23library
38library
24 hs-source-dirs: src
39 hs-source-dirs: src
25 build-depends:
40 build-depends:
@@ -67,6 +82,29 @@ library
67
82
68 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
83 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
69
84
85+executable sortableList
86+ build-depends: base
87+ , containers
88+ , dependent-map
89+ , lens
90+ , mtl
91+ , random
92+ , reflex
93+ , reflex-dom
94+ , text
95+ , time
96+ , transformers
97+ hs-source-dirs: examples
98+ main-is: sortableList.hs
99+ ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
100+ ghc-prof-options: -fprof-auto
101+ if !flag(build-examples)
102+ buildable: False
103+ if flag(expose-all-unfoldings)
104+ ghc-options: -fexpose-all-unfoldings
105+ if flag(use-reflex-optimizer)
106+ ghc-options: -fplugin=Reflex.Optimizer
107+
70source-repository head
108source-repository head
71 type: git
109 type: git
72 location: https://github.com/reflex-frp/reflex-dom
110 location: https://github.com/reflex-frp/reflex-dom