Skip to content

Commit

Permalink
compat for old transformers
Browse files Browse the repository at this point in the history
  • Loading branch information
infinity0 committed Jun 13, 2020
1 parent 60bc32f commit db1a27a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/GHC/HeapView/Graph.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-# LANGUAGE LambdaCase, RecordWildCards #-}
{-# LANGUAGE CPP, LambdaCase, RecordWildCards #-}
{- | Conversions between 'HeapGraph' and 'Graph'.
You may also be interested in the @graphviz@ package which has conversions
Expand All @@ -22,7 +22,11 @@ import Data.Graph.Inductive.PatriciaTree (Gr)

import Control.Monad.Trans.Class
import Control.Monad.Trans.Maybe
#if MIN_VERSION_transformers(0,5,6,0)
import Control.Monad.Trans.Writer.CPS
#else
import Control.Monad.Trans.Writer.Strict
#endif
import qualified Data.IntMap as M
import qualified Data.Foldable as F
import Data.List
Expand Down

0 comments on commit db1a27a

Please sign in to comment.