@@ -3,6 +3,10 @@
33#if __GLASGOW_HASKELL__ >= 702
44{-# LANGUAGE Trustworthy #-}
55#endif
6+#if __GLASGOW_HASKELL__ >= 708
7+{-# LANGUAGE TypeFamilies #-}
8+#endif
9+
610-- |
711-- Module : Data.Text.Lazy
812-- Copyright : (c) 2009, 2010, 2012 Bryan O'Sullivan
@@ -223,6 +227,9 @@ import qualified GHC.CString as GHC
223227#else
224228import qualified GHC.Base as GHC
225229#endif
230+#if __GLASGOW_HASKELL__ >= 708
231+import qualified GHC.Exts as Exts
232+#endif
226233import GHC.Prim (Addr#)
227234
228235-- $fusion
@@ -329,6 +336,13 @@ instance Monoid Text where
329336instance IsString Text where
330337 fromString = pack
331338
339+#if __GLASGOW_HASKELL__ >= 708
340+instance Exts.IsList Text where
341+ type Item Text = Char
342+ fromList = pack
343+ toList = unpack
344+#endif
345+
332346#if defined(HAVE_DEEPSEQ)
333347instance NFData Text where
334348 rnf Empty = ()