Permalink
Browse files

Avoid mention of Data.Monoid.(<>).

We weren't using it, but the explicit "hiding (<>)" broke compilation on
older versions where there is no such operator. We use a qualified
import instead.
  • Loading branch information...
1 parent 8254821 commit 57222acc7461c7ecf0e618cbea8862803566b6bf @colah committed Sep 23, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 Graphics/Implicit/Export/TextBuilderUtils.hs
@@ -18,14 +18,14 @@ module Graphics.Implicit.Export.TextBuilderUtils
,buildTruncFloat
-- Values from Data.Monoid
,(<>)
- ,mconcat
- ,mempty
+ ,Monoid.mconcat
+ ,Monoid.mempty
) where
import Data.Text.Lazy
-- We manually redefine this operator to avoid a dependency on base >= 4.5
-- This will become unnecessary later.
-import Data.Monoid hiding ((<>))
+import qualified Data.Monoid as Monoid
import Data.Text.Lazy
import Data.Text.Lazy.Internal (defaultChunkSize)
@@ -52,6 +52,6 @@ buildInt = decimal
-- This is directly copied from base 4.5.1.0
infixr 6 <>
-(<>) :: Monoid m => m -> m -> m
-(<>) = mappend
-{-# INLINE (<>) #-}
+(<>) :: Monoid.Monoid m => m -> m -> m
+(<>) = Monoid.mappend
+{-# INLINE (<>) #-}

0 comments on commit 57222ac

Please sign in to comment.