Bryan O'Sullivan committed 6bdeb07

Fix build problems with GHC 7.8.1

  • Participants
  • Parent commits 0a78f4d

Comments (0)

Files changed (2)

File Data/Text/Encoding.hs

 import Data.Text.Internal.Unsafe.Char (ord)
 import qualified Data.ByteString.Builder as B
 import qualified Data.ByteString.Builder.Extra as B
-import qualified Data.ByteString.Builder.Internal as B hiding (empty)
+import qualified Data.ByteString.Builder.Internal as B hiding (empty, append)
 import qualified Data.ByteString.Builder.Prim as BP
 import qualified Data.ByteString.Builder.Prim.Internal as BP
 import qualified Data.Text.Internal.Encoding.Utf16 as U16

File Data/Text/Lazy.hs

     | otherwise        = concat (rep 0)
     where rep !i | i >= n    = []
                  | otherwise = t : rep (i+1)
-{-# INLINE replicate #-}
+{-# INLINE [1] replicate #-}
 -- | /O(n)/ 'replicateChar' @n@ @c@ is a 'Text' of length @n@ with @c@ the
 -- value of every element. Subject to fusion.