on develop help sign in
Some cleanups after moving the Time module across from `reflex-dom`
commit8074d801162c2a103e304e4b82e47ab758899e84 authorDave Laing <dave.laing.80@gmail.com> dateWed 4 Oct 2017, 10:52 (9 years ago) parent39709aa
3 files changed+13−7
default.nix+6−4 reflex.cabal+4−1 src/Reflex/Time.hs+3−2
default.nix+6−4
@@ -1,10 +1,11 @@
11{ mkDerivation, ghc, base, bifunctors, containers, deepseq
22, dependent-map, dependent-sum, exception-transformers
33, haskell-src-exts, haskell-src-meta, hlint, lens, MemoTrie
4−, monad-control, mtl, primitive, ref-tf, semigroupoids
5−, semigroups, split, stdenv, stm, syb, template-haskell
6−, these, transformers, transformers-compat, prim-uniq
7−, data-default, filepath, directory, filemanip
4+, monad-control, mtl, primitive, random, ref-tf
5+, semigroupoids , semigroups, split, stdenv, stm, syb
6+, template-haskell , these, time, transformers
7+, transformers-compat, unbounded-delays, prim-uniq
8+, data-default , filepath, directory, filemanip
89, useTemplateHaskell ? true
910}:
1011mkDerivation {
@@ -19,6 +20,7 @@ mkDerivation {
1920 transformers-compat prim-uniq
2021 base bifunctors containers deepseq dependent-map dependent-sum
2122 mtl ref-tf split transformers data-default
23+ random time unbounded-delays
2224 ] ++ (if !useTemplateHaskell then [] else [
2325 haskell-src-exts haskell-src-meta
2426 ]);
reflex.cabal+4−1
@@ -58,6 +58,7 @@ library
5858 mtl >= 2.1 && < 2.3,
5959 prim-uniq >= 0.1.0.1 && < 0.2,
6060 primitive >= 0.5 && < 0.7,
61+ random == 1.1.*,
6162 ref-tf == 0.4.*,
6263 reflection == 2.1.*,
6364 semigroupoids >= 4.0 && < 6,
@@ -65,8 +66,10 @@ library
6566 stm == 2.4.*,
6667 syb >= 0.5 && < 0.8,
6768 these >= 0.4 && < 0.8,
69+ time >= 1.4 && < 1.8,
6870 transformers >= 0.2,
69− transformers-compat >= 0.3
71+ transformers-compat >= 0.3,
72+ unbounded-delays >= 0.1.0.0 && < 0.2
7073
7174 exposed-modules:
7275 Data.AppendMap,
src/Reflex/Time.hs+3−2
@@ -3,7 +3,8 @@
33{-# LANGUAGE MultiParamTypeClasses #-}
44{-# LANGUAGE RecursiveDo #-}
55{-# LANGUAGE ScopedTypeVariables #-}
6−#ifdef USER_TEMPLATE_HASKELL
6+{-# LANGUAGE CPP #-}
7+#ifdef USE_TEMPLATE_HASKELL
78{-# LANGUAGE TemplateHaskell #-}
89#endif
910{-# LANGUAGE TypeFamilies #-}
@@ -17,7 +18,7 @@ import Reflex.TriggerEvent.Class
1718
1819import Control.Concurrent
1920import qualified Control.Concurrent.Thread.Delay as Concurrent
20−import Control.Lens
21+import Control.Lens hiding ((|>))
2122import Control.Monad
2223import Control.Monad.Fix
2324import Control.Monad.IO.Class