@@ -52,7 +52,7 @@ module Data.Text
5252 ) where
5353
5454import Prelude (Char,Bool,Int,Maybe,String,
55− Eq,(==),
55+ Eq,(==),(++),error,
5656 Show,showsPrec,
5757 Read,readsPrec,
5858 (&&),(||),(+),(-),($),(<),(>),(<=),(>=),(.),(>>=),
@@ -72,8 +72,7 @@ import Data.String (IsString(..))
7272
7373import qualified Data.Text.Fusion as S
7474import Data.Text.Fusion (Stream(..),Step(..),Encoding(..),
75− stream,unstream,stream_bs,unstream_bs,restream,
76− errorEmptyList)
75+ stream,unstream,stream_bs,unstream_bs,restream)
7776import Data.Text.Internal(Text(..),empty)
7877import qualified Prelude as P
7978import Data.Text.UnsafeChar(unsafeChr)
@@ -525,3 +524,6 @@ words (Text arr off len) = loop0 off off
525524 where
526525 c = arr `unsafeAt` n
527526{-# INLINE words #-}
527+
528+errorEmptyList :: String -> a
529+errorEmptyList fun = error ("Data.Text." ++ fun ++ ": empty list")