on develop help sign in
Fix hlint
3bf26f7Ryan Trinkle
src/Reflex/Patch/DMapWithMove.hs+1−1
@@ -37,7 +37,7 @@ import Data.Typeable (Proxy (..))
37#endif
37#endif
38
38
39-- | Like 'PatchMapWithMove', but for 'DMap'.
39-- | Like 'PatchMapWithMove', but for 'DMap'.
40−data PatchDMapWithMove k v = PatchDMapWithMove (DMap k (NodeInfo k v))
40+newtype PatchDMapWithMove k v = PatchDMapWithMove (DMap k (NodeInfo k v))
41#ifdef EXPERIMENTAL_DEPENDENT_SUM_INSTANCES
41#ifdef EXPERIMENTAL_DEPENDENT_SUM_INSTANCES
42 deriving (Show)
42 deriving (Show)
43#endif
43#endif
src/Reflex/Patch/MapWithMove.hs+1−1
@@ -25,7 +25,7 @@ import Data.Tuple
25-- * The same source key may not be moved to two destination keys.
25-- * The same source key may not be moved to two destination keys.
26-- * Any key that is the source of a Move must also be edited
26-- * Any key that is the source of a Move must also be edited
27-- (otherwise, the Move would duplicate it)
27-- (otherwise, the Move would duplicate it)
28−data PatchMapWithMove k v = PatchMapWithMove (Map k (NodeInfo k v)) deriving (Show, Eq, Ord, Functor, Foldable, Traversable)
28+newtype PatchMapWithMove k v = PatchMapWithMove (Map k (NodeInfo k v)) deriving (Show, Eq, Ord, Functor, Foldable, Traversable)
29
29
30data NodeInfo k v = NodeInfo
30data NodeInfo k v = NodeInfo
31 { _nodeInfo_from :: !(From k v)
31 { _nodeInfo_from :: !(From k v)