on develop help sign in
Support GHC 8.2.1

* Bump package bounds * Fix an issue where *all* cacheEvents shared the same cache IORef

commite39bd393aec22b0ca28372040b68ef9d7c736826 authorRyan Trinkle <ryan.trinkle@gmail.com> dateTue 1 Aug 2017, 19:14 (9 years ago) parenta109219
2 files changed+6−4
reflex.cabal+3−3 src/Reflex/Spider/Internal.hs+3−1
reflex.cabal+3−3
@@ -63,7 +63,7 @@ library
6363 semigroupoids >= 4.0 && < 6,
6464 semigroups >= 0.16 && < 0.19,
6565 stm == 2.4.*,
66− syb >= 0.5 && < 0.7,
66+ syb >= 0.5 && < 0.8,
6767 these >= 0.4 && < 0.8,
6868 transformers >= 0.2,
6969 transformers-compat >= 0.3
@@ -122,8 +122,8 @@ library
122122 build-depends:
123123 dependent-sum >= 0.3 && < 0.5,
124124 haskell-src-exts >= 1.16 && < 1.19,
125− haskell-src-meta >= 0.6 && < 0.8,
126− template-haskell >= 2.9 && < 2.12
125+ haskell-src-meta >= 0.6 && < 0.9,
126+ template-haskell >= 2.9 && < 2.13
127127 exposed-modules:
128128 Reflex.Dynamic.TH
129129 other-extensions: TemplateHaskell
src/Reflex/Spider/Internal.hs+3−1
@@ -1150,7 +1150,9 @@ type ResultM = EventM
11501150
11511151{-# NOINLINE unsafeNewIORef #-}
11521152unsafeNewIORef :: a -> b -> IORef b
1153−unsafeNewIORef _ b = unsafePerformIO $ newIORef b
1153+unsafeNewIORef a b = unsafePerformIO $ do
1154+ touch a
1155+ newIORef b
11541156
11551157instance HasSpiderTimeline x => Functor (Event x) where
11561158 fmap f = push $ return . Just . f