@@ -3,6 +3,10 @@
3#if __GLASGOW_HASKELL__ >= 702
3#if __GLASGOW_HASKELL__ >= 702
4{-# LANGUAGE Trustworthy #-}
4{-# LANGUAGE Trustworthy #-}
6+#if __GLASGOW_HASKELL__ >= 708
7+{-# LANGUAGE TypeFamilies #-}
7-- Module : Data.Text.Lazy
11-- Module : Data.Text.Lazy
8-- Copyright : (c) 2009, 2010, 2012 Bryan O'Sullivan
12-- Copyright : (c) 2009, 2010, 2012 Bryan O'Sullivan
@@ -223,6 +227,9 @@ import qualified GHC.CString as GHC
224import qualified GHC.Base as GHC
228import qualified GHC.Base as GHC
230+#if __GLASGOW_HASKELL__ >= 708
231+import qualified GHC.Exts as Exts
226import GHC.Prim (Addr#)
233import GHC.Prim (Addr#)
228-- $fusion
235-- $fusion
@@ -329,6 +336,13 @@ instance Monoid Text where
329instance IsString Text where
336instance IsString Text where
330 fromString = pack
337 fromString = pack
339+#if __GLASGOW_HASKELL__ >= 708
340+instance Exts.IsList Text where
341+ type Item Text = Char
332#if defined(HAVE_DEEPSEQ)
346#if defined(HAVE_DEEPSEQ)
333instance NFData Text where
347instance NFData Text where
334 rnf Empty = ()
348 rnf Empty = ()