Changeset 5890 for src/Pugs/Pretty.hs

Show
Ignore:
Timestamp:
07/29/05 17:19:17 (3 years ago)
Author:
bsmith
svk:copy_cache_prev:
7758
Message:

Added export lists to lots of haskell files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Pretty.hs

    r4934 r5890  
    1313-} 
    1414 
    15 module Pugs.Pretty where 
     15module Pugs.Pretty ( 
     16    Pretty, pretty, 
     17) where 
    1618import Pugs.Internals 
    1719import Pugs.Types 
     
    143145quoted x = [x] 
    144146 
    145 ratToNum :: VRat -> VNum 
    146 ratToNum x = (fromIntegral $ numerator x) / (fromIntegral $ denominator x) 
    147  
    148147doubleBraces :: Doc -> Doc 
    149148doubleBraces x = vcat [ (lbrace <> lbrace), nest defaultIndent x, rbrace <> rbrace] 
     
    152151joinList x y = cat $ punctuate x y 
    153152 
    154 commasep :: [Doc] -> Doc 
    155 commasep x = cat $ (punctuate (char ',')) x 
    156  
    157153pretty :: Pretty a => a -> String 
    158154pretty a = render $ format a