on develop help sign in
Get rid of lens dependency
9ed658bRyan Trinkle
default.nix+2−2
@@ -1,4 +1,4 @@
1−{ mkDerivation, dependent-map, dependent-sum, lens
1+{ mkDerivation, dependent-map, dependent-sum
2, mtl, semigroups, these
2, mtl, semigroups, these
3}:
3}:
4mkDerivation {
4mkDerivation {
@@ -6,7 +6,7 @@ mkDerivation {
6 version = "0.1";
6 version = "0.1";
7 src = builtins.filterSource (path: type: baseNameOf path != ".git") ./.;
7 src = builtins.filterSource (path: type: baseNameOf path != ".git") ./.;
8 buildDepends = [
8 buildDepends = [
9− dependent-map dependent-sum lens mtl semigroups these
9+ dependent-map dependent-sum mtl semigroups these
10 ];
10 ];
11 license = null;
11 license = null;
12}
12}
reflex.cabal−1
@@ -23,7 +23,6 @@ library
23 mtl == 2.2.*,
23 mtl == 2.2.*,
24 containers == 0.5.*,
24 containers == 0.5.*,
25 these == 0.4.*,
25 these == 0.4.*,
26− lens >= 4.7 && < 4.9,
27 primitive == 0.5.*,
26 primitive == 0.5.*,
28 template-haskell >= 2.9 && < 2.11
27 template-haskell >= 2.9 && < 2.11
29
28
src/Reflex/Spider/Internal.hs+3−4
@@ -21,7 +21,6 @@ import Data.Functor.Misc
21import Data.Maybe
21import Data.Maybe
22import Data.IntMap (IntMap)
22import Data.IntMap (IntMap)
23import qualified Data.IntMap as IntMap
23import qualified Data.IntMap as IntMap
24−import Control.Lens hiding (coerce)
25import Control.Monad.Ref
24import Control.Monad.Ref
26import Data.Monoid ((<>))
25import Data.Monoid ((<>))
27
26
@@ -829,8 +828,8 @@ getMergeSubscribed m = {-# SCC "getMergeSubscribed.entire" #-} do
829 parentOcc <- {-# SCC "getMergeSubscribed.a.parentOcc" #-} liftIO $ getEventSubscribedOcc parentSubd
828 parentOcc <- {-# SCC "getMergeSubscribed.a.parentOcc" #-} liftIO $ getEventSubscribedOcc parentSubd
830 height <- {-# SCC "getMergeSubscribed.a.height" #-} liftIO $ readIORef $ eventSubscribedHeightRef parentSubd
829 height <- {-# SCC "getMergeSubscribed.a.height" #-} liftIO $ readIORef $ eventSubscribedHeightRef parentSubd
831 return $ {-# SCC "getMergeSubscribed.a.returnVal" #-} (unsafeCoerce s :: Any, fmap (k :=>) parentOcc, height, WrapArg k :=> parentSubd)
830 return $ {-# SCC "getMergeSubscribed.a.returnVal" #-} (unsafeCoerce s :: Any, fmap (k :=>) parentOcc, height, WrapArg k :=> parentSubd)
832− let dm = DMap.fromDistinctAscList $ catMaybes $ map (^._2) subscribers
831+ let dm = DMap.fromDistinctAscList $ catMaybes $ map (\(_, x, _, _) -> x) subscribers
833− subscriberHeights = map (^._3) subscribers
832+ subscriberHeights = map (\(_, _, x, _) -> x) subscribers
834 myHeight =
833 myHeight =
835 if any (==invalidHeight) subscriberHeights --TODO: Replace 'any' with invalidHeight-preserving 'maximum'
834 if any (==invalidHeight) subscriberHeights --TODO: Replace 'any' with invalidHeight-preserving 'maximum'
836 then invalidHeight
835 then invalidHeight
@@ -852,7 +851,7 @@ getMergeSubscribed m = {-# SCC "getMergeSubscribed.entire" #-} do
852 , mergeSubscribedHeight = heightRef
851 , mergeSubscribedHeight = heightRef
853 , mergeSubscribedSubscribers = subsRef
852 , mergeSubscribedSubscribers = subsRef
854 , mergeSubscribedSelf = unsafeCoerce $ map (\(x, _, _, _) -> x) subscribers --TODO: Does lack of strictness make this leak?
853 , mergeSubscribedSelf = unsafeCoerce $ map (\(x, _, _, _) -> x) subscribers --TODO: Does lack of strictness make this leak?
855− , mergeSubscribedParents = DMap.fromDistinctAscList $ map (^._4) subscribers
854+ , mergeSubscribedParents = DMap.fromDistinctAscList $ map (\(_, _, _, x) -> x) subscribers
856#ifdef DEBUG_NODEIDS
855#ifdef DEBUG_NODEIDS
857 , mergeSubscribedNodeId = unsafeNodeId m
856 , mergeSubscribedNodeId = unsafeNodeId m
858#endif
857#endif