Skip to content

Commit

Permalink
Don't define Semigroup Binary.Builder instance with binary-0.8.3 and …
Browse files Browse the repository at this point in the history
…later
  • Loading branch information
RyanGlScott committed Apr 28, 2016
1 parent e49e131 commit 0681814
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-ghc7/Data/Semigroup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ import Data.IntMap (IntMap)
#endif

#ifdef MIN_VERSION_binary
# if !(MIN_VERSION_binary(0,8,3))
import qualified Data.Binary.Builder as Builder
# endif
#endif

#ifdef MIN_VERSION_bytestring
Expand Down Expand Up @@ -796,8 +798,10 @@ instance NFData a => NFData (Last a) where
-- (==)/XNOR on Bool forms a 'Semigroup', but has no good name

#ifdef MIN_VERSION_binary
# if !(MIN_VERSION_binary(0,8,3))
instance Semigroup Builder.Builder where
(<>) = mappend
# endif
#endif

#ifdef MIN_VERSION_bytestring
Expand Down

0 comments on commit 0681814

Please sign in to comment.