Skip to content

Commit

Permalink
Finish fixing haskell#20
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-m authored and psteiger committed Nov 8, 2015
1 parent dbfe435 commit 6fb602d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Data/Graph/Inductive/Internal/Heap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Control.DeepSeq (NFData (..))
data Heap a b = Empty | Node a b [Heap a b]
deriving (Eq, Show, Read)

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
instance (NFData a, NFData b) => NFData (Heap a b) where
rnf Empty = ()
rnf (Node a b hs) = rnf a `seq` rnf b `seq` rnf hs
Expand Down
2 changes: 1 addition & 1 deletion Data/Graph/Inductive/NodeMap.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ data NodeMap a =
key :: Int }
deriving (Eq, Show, Read)

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
instance (NFData a) => NFData (NodeMap a) where
rnf (NodeMap mp k) = rnf mp `seq` rnf k
#endif
Expand Down
2 changes: 1 addition & 1 deletion Data/Graph/Inductive/PatriciaTree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ instance DynGraph Gr where
!g3 = addPred g2 v s
in Gr g3

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
instance (NFData a, NFData b) => NFData (Gr a b) where
rnf (Gr g) = rnf g
#endif
Expand Down
2 changes: 1 addition & 1 deletion Data/Graph/Inductive/Tree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ instance DynGraph Gr where
(const (error ("Node Exception, Node: "++show v)))
cntxt' = (p,l,s)

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
instance (NFData a, NFData b) => NFData (Gr a b) where
rnf (Gr g) = rnf g
#endif
Expand Down

0 comments on commit 6fb602d

Please sign in to comment.