Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Pretty-printer for BNFC.
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 Arg Source # | |
Print Cat Source # | |
Print Def Source # | |
Print Exp Source # | |
Print Grammar Source # | |
Print Identifier Source # | |
Defined in BNFC.Print | |
Print Item Source # | |
Print Label Source # | |
Print MinimumSize Source # | |
Defined in BNFC.Print | |
Print RHS Source # | |
Print Reg Source # | |
Print Separation Source # | |
Defined in BNFC.Print | |
Print String Source # | |
Print Integer Source # | |
Print Char Source # | |
Print Double Source # | |
Print [Arg] Source # | |
Print [Cat] Source # | |
Print [Def] Source # | |
Print [Exp] Source # | |
Print [Item] Source # | |
Print [RHS] Source # | |
Print [String] Source # | |
Print a => Print [a] Source # | |
printString :: String -> Doc Source #