Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Pretty-printer for RSTT.
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 Cube Source # | |
Print CubeContext Source # | |
Defined in RSTT.Syntax.Print | |
Print Decl Source # | |
Print Label Source # | |
Print Line Source # | |
Print Point Source # | |
Print PointConDecl Source # | |
Defined in RSTT.Syntax.Print | |
Print PointDecl Source # | |
Print PointPattern Source # | |
Defined in RSTT.Syntax.Print | |
Print Program Source # | |
Print RuleName Source # | |
Print Sequent Source # | |
Print Shape Source # | |
Print Tope Source # | |
Print TopeContext Source # | |
Defined in RSTT.Syntax.Print | |
Print TopeRule Source # | |
Print Var Source # | |
Print String Source # | |
Print Integer Source # | |
Print Char Source # | |
Print Double Source # | |
Print [Cube] Source # | |
Print [Decl] Source # | |
Print [Point] Source # | |
Print [PointConDecl] Source # | |
Defined in RSTT.Syntax.Print | |
Print [PointDecl] Source # | |
Print [Sequent] Source # | |
Print [Tope] Source # | |
Print [TopeRule] Source # | |
Print a => Print [a] Source # | |
printString :: String -> Doc Source #