X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fcompiler%2Futils%2FUnpretty.lhs;h=8e35e3c1956b13c3b5a0d722a51f178251a7cd7a;hb=e7498a3ee1d0484d02a9e86633cc179c76ebf36e;hp=cf90116dc8cf7f25ec1975c6dcad71598c45a6d2;hpb=30cf375e0bc79a6b71074a5e0fd2ec393241a751;p=ghc-hetmet.git diff --git a/ghc/compiler/utils/Unpretty.lhs b/ghc/compiler/utils/Unpretty.lhs index cf90116..8e35e3c 100644 --- a/ghc/compiler/utils/Unpretty.lhs +++ b/ghc/compiler/utils/Unpretty.lhs @@ -7,7 +7,7 @@ #include "HsVersions.h" module Unpretty ( - Unpretty(..), + SYN_IE(Unpretty), uppNil, uppStr, uppPStr, uppChar, uppInt, uppInteger, uppSP, upp'SP, uppLbrack, uppRbrack, uppLparen, uppRparen, @@ -17,13 +17,14 @@ module Unpretty ( uppCat, uppBeside, uppBesides, uppAbove, uppAboves, uppNest, uppSep, uppInterleave, uppIntersperse, uppShow, - uppAppendFile, + uppPutStr, -- abstract type, to complete the interface... CSeq ) where CHK_Ubiq() -- debugging consistency check +IMPORT_1_3(IO) import CharSeq \end{code} @@ -69,7 +70,7 @@ uppNest :: Int -> Unpretty -> Unpretty uppShow :: Int -> Unpretty -> [Char] -uppAppendFile :: _FILE -> Int -> Unpretty -> IO () +uppPutStr :: Handle -> Int -> Unpretty -> IO () \end{code} %************************************************ @@ -81,7 +82,7 @@ uppAppendFile :: _FILE -> Int -> Unpretty -> IO () \begin{code} uppShow _ p = cShow p -uppAppendFile f _ p = cAppendFile f p +uppPutStr f _ p = cPutStr f p uppNil = cNil uppStr s = cStr s