From c66f5f3ecbbaf2480e3aab3addf2764a877d9bc2 Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 14 Apr 2000 08:58:00 +0000 Subject: [PATCH] [project @ 2000-04-14 08:58:00 by simonmar] Text => Show _ByteArray => ByteArray --- ghc/compiler/utils/StringBuffer.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghc/compiler/utils/StringBuffer.lhs b/ghc/compiler/utils/StringBuffer.lhs index 63f5ee5..fd4e21e 100644 --- a/ghc/compiler/utils/StringBuffer.lhs +++ b/ghc/compiler/utils/StringBuffer.lhs @@ -123,7 +123,7 @@ data StringBuffer \end{code} \begin{code} -instance Text StringBuffer where +instance Show StringBuffer where showsPrec _ s = showString "" \end{code} @@ -504,7 +504,7 @@ lexemeToString (StringBuffer fo _ start_pos# current#) = else unpackCStringBA (copySubStr (A# fo) (I# start_pos#) (I# (current# -# start_pos#))) -lexemeToByteArray :: StringBuffer -> _ByteArray Int +lexemeToByteArray :: StringBuffer -> ByteArray Int lexemeToByteArray (StringBuffer fo _ start_pos# current#) = if start_pos# ==# current# then error "lexemeToByteArray" -- 1.7.10.4