Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Printing of operator trees.
Synopsis
- p_exprOpTree :: BracketStyle -> OpTree (LHsExpr GhcPs) (OpInfo (LHsExpr GhcPs)) -> R ()
- exprOpTree :: LHsExpr GhcPs -> OpTree (LHsExpr GhcPs) (LHsExpr GhcPs)
- p_cmdOpTree :: BracketStyle -> OpTree (LHsCmdTop GhcPs) (OpInfo (LHsExpr GhcPs)) -> R ()
- cmdOpTree :: LHsCmdTop GhcPs -> OpTree (LHsCmdTop GhcPs) (LHsExpr GhcPs)
- p_tyOpTree :: OpTree (LHsType GhcPs) (OpInfo (LocatedN RdrName)) -> R ()
- tyOpTree :: LHsType GhcPs -> OpTree (LHsType GhcPs) (LocatedN RdrName)
- getOpName :: HsExpr GhcPs -> Maybe RdrName
- getOpNameStr :: RdrName -> String
Documentation
:: BracketStyle | Bracket style to use |
-> OpTree (LHsExpr GhcPs) (OpInfo (LHsExpr GhcPs)) | N-ary |
-> R () |
Print an operator tree where leaves are values.
:: BracketStyle | Bracket style to use |
-> OpTree (LHsCmdTop GhcPs) (OpInfo (LHsExpr GhcPs)) | N-ary OpTree to render, enhanced with information regarding operator fixity |
-> R () |
Print an operator tree where leaves are commands.
:: OpTree (LHsType GhcPs) (OpInfo (LocatedN RdrName)) | N-ary |
-> R () |
Print an operator tree where leaves are types.
tyOpTree :: LHsType GhcPs -> OpTree (LHsType GhcPs) (LocatedN RdrName) Source #
Convert a LHsType containing an operator tree to the OpTree
intermediate representation.