Copyright | (c) 2006-2011 Harvard University (c) 2011-2013 Geoffrey Mainland : (c) 2013-2016 Drexel University |
---|---|
License | BSD-style |
Maintainer | mainland@drexel.edu |
Safe Haskell | None |
Language | Haskell98 |
Synopsis
- pprLoc :: SrcLoc -> Doc -> Doc
- data Fixity = Fixity Assoc Int
- data Assoc
- infix_ :: Int -> Fixity
- infixl_ :: Int -> Fixity
- infixr_ :: Int -> Fixity
- infixop :: (Pretty a, Pretty b, Pretty op, CFixity op) => Int -> op -> a -> b -> Doc
- prefixop :: (Pretty a, Pretty op, CFixity op) => Int -> op -> a -> Doc
- parensList :: [Doc] -> Doc
- bracesList :: [Doc] -> Doc
- bracesSemiList :: [Doc] -> Doc
- angleList :: [Doc] -> Doc
- embrace :: [Doc] -> Doc
- pprAnti :: String -> String -> Doc
- class CFixity a where
- commaPrec :: Int
- commaPrec1 :: Int
- condPrec :: Int
- condPrec1 :: Int
- unopPrec :: Int
- unopPrec1 :: Int
- memberPrec :: Int
- memberPrec1 :: Int
- pprStructOrUnion :: String -> Maybe Id -> Maybe [FieldGroup] -> [Attr] -> Doc
- pprEnum :: Maybe Id -> [CEnum] -> [Attr] -> Doc
- pprDeclarator :: Maybe Id -> Decl -> Doc
- pprIfaceBody :: [Id] -> [ObjCIvarDecl] -> [ObjCIfaceDecl] -> Doc
- pprBlock :: Stm -> Doc
Documentation
:: (Pretty a, Pretty b, Pretty op, CFixity op) | |
=> Int | precedence of context |
-> op | operator |
-> a | left argument |
-> b | right argument |
-> Doc |
Pretty print infix binary operators
Pretty print prefix unary operators
parensList :: [Doc] -> Doc Source #
bracesList :: [Doc] -> Doc Source #
bracesSemiList :: [Doc] -> Doc Source #
commaPrec1 :: Int Source #
memberPrec :: Int Source #
memberPrec1 :: Int Source #
pprStructOrUnion :: String -> Maybe Id -> Maybe [FieldGroup] -> [Attr] -> Doc Source #
pprIfaceBody :: [Id] -> [ObjCIvarDecl] -> [ObjCIfaceDecl] -> Doc Source #