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