on develop help sign in
Move sortableList.hs example to reflex-dom

It still needs updating but at least the files are in the right place.

commit957be7e0622fe79cdfb4cb4919c6a67f89a00b57 authorHamish Mackenzie <Hamish.K.Mackenzie@googlemail.com> dateSat 6 May 2017, 01:36 (9 years ago) parentaa28a5e
3 files changed+39−29
reflex-dom-core/reflex-dom-core.cabal+1−29 examples/sortableList.hs → reflex-dom/examples/sortableList.hs reflex-dom/reflex-dom.cabal+38
reflex-dom-core/reflex-dom-core.cabal+1−29
@@ -33,15 +33,10 @@ flag expose-all-unfoldings
3333 default: False
3434 manual: True
3535
36−flag build-examples
37− description: Build the executables in ./examples
38− default: False
39− manual: True
40−
4136library
4237 hs-source-dirs: src
4338 build-depends:
44− aeson >= 0.8 && < 1.2,
39+ aeson >= 0.8 && < 1.3,
4540 base >= 4.7 && < 4.11,
4641 bifunctors >= 4.2 && < 6,
4742 bimap >= 0.3 && < 0.4,
@@ -156,29 +151,6 @@ test-suite gc
156151 if !os(linux) || !arch(x86_64)
157152 buildable: False
158153
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−
182154source-repository head
183155 type: git
184156 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
2020 description: Use WebKit2 version of WebKitGTK.
2121 default: True
2222
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+
2338library
2439 hs-source-dirs: src
2540 build-depends:
@@ -67,6 +82,29 @@ library
6782
6883 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2 -ferror-spans
6984
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+
70108source-repository head
71109 type: git
72110 location: https://github.com/reflex-frp/reflex-dom