elm/compiler/Type/PrettyPrint.hs
2013-08-14 00:44:40 -07:00

16 lines
No EOL
322 B
Haskell

module Type.PrettyPrint where
import Text.PrettyPrint
import qualified SourceSyntax.PrettyPrint as Src
data ParensWhen = Fn | App | Never
class PrettyType a where
pretty :: ParensWhen -> a -> Doc
commaSep docs = sep (punctuate comma docs)
parensIf bool doc = if bool then parens doc else doc
reprime = Src.reprime