Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pretty-printer for Language.
Synopsis
- printTree :: Print a => a -> String
- type Doc = [ShowS] -> [ShowS]
- doc :: ShowS -> Doc
- render :: Doc -> String
- parenth :: Doc -> Doc
- concatS :: [ShowS] -> ShowS
- concatD :: [Doc] -> Doc
- replicateS :: Int -> ShowS -> ShowS
- class Print a where
- printString :: String -> Doc
- mkEsc :: Char -> Char -> ShowS
- prPrec :: Int -> Int -> Doc -> Doc
Documentation
The printer class does the job.
Instances
Print VarIdent Source # | |
Print String Source # | |
Print Integer Source # | |
Print Char Source # | |
Print Double Source # | |
Print (Command' a) Source # | |
Print (Pattern' a) Source # | |
Print (Program' a) Source # | |
Print (ScopedTerm' a) Source # | |
Defined in Language.LambdaPi.Syntax.Print | |
Print (Term' a) Source # | |
Print [Command' a] Source # | |
Print a => Print [a] Source # | |
printString :: String -> Doc Source #