Skip to content

Commit

Permalink
Better way of dealing with NFData
Browse files Browse the repository at this point in the history
Closes #20
  • Loading branch information
ivan-m committed Sep 8, 2015
1 parent 37edea2 commit 3b23dcb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 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 @@ -14,7 +14,7 @@ module Data.Graph.Inductive.Internal.Heap(

import Text.Show (showListWith)

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
import Control.DeepSeq (NFData (..))
#endif

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 @@ -34,7 +34,7 @@ import qualified Prelude as P (map)
import Data.Map (Map)
import qualified Data.Map as M

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
import Control.DeepSeq (NFData (..))
#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 @@ -34,7 +34,7 @@ import qualified Data.IntMap as IM
import Data.List (sort)
import Data.Maybe (fromMaybe)

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
import Control.DeepSeq (NFData (..))
#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 @@ -20,7 +20,7 @@ import Data.Map (Map)
import qualified Data.Map as M
import Data.Maybe (fromMaybe)

#if __GLASGOW_HASKELL__ >= 704
#if MIN_VERSION_containers (0,4,2)
import Control.DeepSeq (NFData (..))
#endif

Expand Down
14 changes: 10 additions & 4 deletions fgl.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ source-repository head
type: git
location: git://github.com/haskell/fgl.git

flag containers042 {
manual: False
default: True
}

library {
default-language: Haskell98

Expand Down Expand Up @@ -58,12 +63,13 @@ library {

build-depends: base < 5
, transformers
, containers
, array

if impl(ghc >= 7.4)
build-depends:
deepseq >= 1.1.0.0 && < 1.5.0.0
if flag(containers042)
build-depends: containers >= 0.4.2
, deepseq >= 1.1.0.0 && < 1.5
else
build-depends: containers < 0.4.2

if impl(ghc >= 7.2) && impl(ghc < 7.6)
build-depends:
Expand Down

0 comments on commit 3b23dcb

Please sign in to comment.