on develop help sign in
Reorganize cabal file; move Pure into the library
commitc02df29cd3f56361f34d0d264cf0d672c2d8ecc3 authorRyan Trinkle <ryan.trinkle@gmail.com> dateMon 1 Aug 2016, 19:28 (10 years ago) parent25b8921
3 files changed+59−58
reflex.cabal+51−53 test/Reflex/Pure.hs → src/Reflex/Pure.hs+8−5 test/Reflex/Test/RunAll.hs → test/semantics.hs
reflex.cabal+51−53
@@ -16,62 +16,69 @@ bug-reports: https://github.com/reflex-frp/reflex/issues
1616library
1717 hs-source-dirs: src
1818 build-depends:
19+ MemoTrie == 0.6.*,
1920 base >= 4.7 && < 4.10,
2021 bifunctors >= 5.2 && < 5.5,
21− dependent-sum == 0.3.*,
22− dependent-map >= 0.2.2 && < 0.3,
23− semigroups >= 0.16 && < 0.19,
24− semigroupoids >= 4.0 && < 6,
25− mtl >= 2.1 && < 2.3,
2622 containers == 0.5.*,
27− these >= 0.4 && < 0.8,
28− primitive >= 0.5 && < 0.7,
29− template-haskell >= 2.9 && < 2.12,
30− ref-tf == 0.4.*,
23+ dependent-map >= 0.2.2 && < 0.3,
24+ dependent-sum == 0.3.*,
3125 exception-transformers == 0.4.*,
32− transformers >= 0.2,
33− transformers-compat >= 0.3,
3426 haskell-src-exts >= 1.16 && < 1.18,
3527 haskell-src-meta == 0.6.*,
28+ mtl >= 2.1 && < 2.3,
29+ primitive >= 0.5 && < 0.7,
30+ ref-tf == 0.4.*,
31+ semigroupoids >= 4.0 && < 6,
32+ semigroups >= 0.16 && < 0.19,
33+ stm == 2.4.*,
3634 syb >= 0.5 && < 0.7,
37− stm == 2.4.*
35+ template-haskell >= 2.9 && < 2.12,
36+ these >= 0.4 && < 0.8,
37+ transformers >= 0.2,
38+ transformers-compat >= 0.3
3839
3940 exposed-modules:
41+ Data.Functor.Misc,
42+ Data.WeakBag,
4043 Reflex,
41− Reflex.Spider,
42− Reflex.Spider.Internal,
4344 Reflex.Class,
4445 Reflex.Dynamic,
45− Reflex.Dynamic.Uniq,
4646 Reflex.Dynamic.TH,
47+ Reflex.Dynamic.Uniq,
4748 Reflex.Host.Class,
48− Data.Functor.Misc,
49− Data.WeakBag
49+ Reflex.Pure,
50+ Reflex.Spider,
51+ Reflex.Spider.Internal
5052
5153 other-extensions: TemplateHaskell
5254 ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
5355 ghc-prof-options: -auto-all
5456
55−
56−test-suite all
57+test-suite semantics
5758 type: exitcode-stdio-1.0
58− main-is: Reflex/Test/RunAll.hs
59− ghc-options: -O2 -Wall -rtsopts
59+ main-is: semantics.hs
6060 hs-source-dirs: test
61+ ghc-options: -O2 -Wall -rtsopts
6162 build-depends:
6263 base,
63− reflex,
64− ref-tf,
65− mtl,
64+ bifunctors,
6665 containers,
66+ deepseq >= 1.3 && < 1.5,
6767 dependent-map,
6868 dependent-sum,
69− transformers >= 0.3,
70− MemoTrie == 0.6.*,
71− deepseq >= 1.3 && < 1.5,
72− bifunctors,
73− split
69+ mtl,
70+ ref-tf,
71+ reflex,
72+ split,
73+ transformers >= 0.3
7474
75+test-suite hlint
76+ type: exitcode-stdio-1.0
77+ main-is: hlint.hs
78+ hs-source-dirs: test
79+ build-depends: base, hlint == 1.9.*
80+ if impl(ghcjs)
81+ buildable: False
7582
7683benchmark spider-bench
7784 type: exitcode-stdio-1.0
@@ -80,16 +87,15 @@ benchmark spider-bench
8087 ghc-options: -Wall -O2 -rtsopts
8188 build-depends:
8289 base,
83− dependent-sum,
84− dependent-map,
85− transformers >= 0.3,
86− stm,
90+ criterion == 1.1.*,
8791 deepseq >= 1.3 && < 1.5,
92+ dependent-map,
93+ dependent-sum,
8894 mtl,
8995 primitive,
90− criterion == 1.1.*,
91− reflex
92−
96+ reflex,
97+ stm,
98+ transformers >= 0.3
9399
94100benchmark saulzar-bench
95101 type: exitcode-stdio-1.0
@@ -101,28 +107,20 @@ benchmark saulzar-bench
101107 build-depends:
102108 base,
103109 containers == 0.5.*,
104− ref-tf == 0.4,
105− dependent-sum,
106− dependent-map,
107− transformers >= 0.3,
108− stm,
110+ criterion == 1.1.*,
109111 deepseq >= 1.3 && < 1.5,
112+ dependent-map,
113+ dependent-sum,
114+ loch-th,
110115 mtl,
111116 primitive,
112− criterion == 1.1.*,
113− split,
117+ process,
118+ ref-tf == 0.4,
114119 reflex,
120+ split,
121+ stm,
115122 time,
116− loch-th,
117− process
118−
119−test-suite hlint
120− build-depends: base, hlint == 1.9.*
121− hs-source-dirs: test
122− main-is: hlint.hs
123− type: exitcode-stdio-1.0
124− if impl(ghcjs)
125− buildable: False
123+ transformers >= 0.3
126124
127125source-repository head
128126 type: git
test/Reflex/Pure.hs → src/Reflex/Pure.hsrenamed+8−5
@@ -1,8 +1,4 @@
1−-- | This module provides a pure implementation of Reflex, which is intended to
2−-- serve as a reference for the semantics of the Reflex class. All
3−-- implementations of Reflex should produce the same results as this
4−-- implementation, although performance and laziness/strictness may differ.
5−
1+{-# LANGUAGE CPP #-}
62{-# LANGUAGE EmptyDataDecls #-}
73{-# LANGUAGE FlexibleInstances #-}
84{-# LANGUAGE InstanceSigs #-}
@@ -15,9 +11,16 @@
1511-- * MonadHold (Pure t) ((->) t)
1612{-# OPTIONS_GHC -fno-warn-orphans #-}
1713
14+-- | This module provides a pure implementation of Reflex, which is intended to
15+-- serve as a reference for the semantics of the Reflex class. All
16+-- implementations of Reflex should produce the same results as this
17+-- implementation, although performance and laziness/strictness may differ.
1818module Reflex.Pure where
1919
20+#if !MIN_VERSION_base(4,8,0)
2021import Control.Applicative -- Necessary for GHC 7.8
22+#endif
23+
2124import Control.Monad
2225import Data.Dependent.Map (DMap, GCompare)
2326import qualified Data.Dependent.Map as DMap
test/Reflex/Test/RunAll.hs → test/semantics.hsrenamed

The content is the same.