Skip to content

Commit

Permalink
Merge pull request #46 from hvr/wip/smp-fix
Browse files Browse the repository at this point in the history
Make compatible with upcoming Prelude.<> export in GHC 8.4/base-4.11
  • Loading branch information
dterei committed Sep 21, 2017
2 parents a760167 + 2c644d5 commit 445e92d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Text/PrettyPrint.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module Text.PrettyPrint (

-- ** Combining documents
empty,
(<>), (<+>), hcat, hsep,
(X.<>), (<+>), hcat, hsep,
($$), ($+$), vcat,
sep, cat,
fsep, fcat,
Expand All @@ -67,5 +67,5 @@ module Text.PrettyPrint (

) where

import Text.PrettyPrint.HughesPJ
import Text.PrettyPrint.HughesPJ as X

4 changes: 2 additions & 2 deletions src/Text/PrettyPrint/Annotated.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module Text.PrettyPrint.Annotated (

-- ** Combining documents
empty,
(<>), (<+>), hcat, hsep,
(X.<>), (<+>), hcat, hsep,
($$), ($+$), vcat,
sep, cat,
fsep, fcat,
Expand Down Expand Up @@ -74,5 +74,5 @@ module Text.PrettyPrint.Annotated (

) where

import Text.PrettyPrint.Annotated.HughesPJ
import Text.PrettyPrint.Annotated.HughesPJ as X

3 changes: 3 additions & 0 deletions src/Text/PrettyPrint/Annotated/HughesPJ.hs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ module Text.PrettyPrint.Annotated.HughesPJ (

import Control.DeepSeq ( NFData(rnf) )
import Data.Function ( on )
#if __GLASGOW_HASKELL__ >= 803
import Prelude hiding ( (<>) )
#endif
#if __GLASGOW_HASKELL__ >= 800
import qualified Data.Semigroup as Semi ( Semigroup((<>)) )
#elif __GLASGOW_HASKELL__ < 709
Expand Down
3 changes: 3 additions & 0 deletions src/Text/PrettyPrint/HughesPJ.hs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ import qualified Text.PrettyPrint.Annotated.HughesPJ as Ann

import Control.DeepSeq ( NFData(rnf) )
import Data.Function ( on )
#if __GLASGOW_HASKELL__ >= 803
import Prelude hiding ( (<>) )
#endif
#if __GLASGOW_HASKELL__ >= 800
import qualified Data.Semigroup as Semi ( Semigroup((<>)) )
#elif __GLASGOW_HASKELL__ < 709
Expand Down

0 comments on commit 445e92d

Please sign in to comment.