Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities to manipulate Haskell AST
Synopsis
- haskellName :: String -> HsQName
- jsonpbName :: String -> HsQName
- grpcName :: String -> HsQName
- lrName :: String -> HsQName
- protobufName :: String -> HsQName
- protobufASTName :: String -> HsQName
- proxyName :: String -> HsQName
- haskellNS :: Module
- apply :: HsExp -> [HsExp] -> HsExp
- maybeModify :: HsExp -> Maybe HsExp -> HsExp
- paren :: HsExp -> HsExp
- applicativeApply :: HsExp -> [HsExp] -> HsExp
- tyApp :: HsType -> [HsType] -> HsType
- module_ :: Module -> Maybe [HsExportSpec] -> [HsImportDecl] -> [HsDecl] -> HsModule
- importDecl_ :: Module -> Bool -> Maybe Module -> Maybe (Bool, [HsImportSpec]) -> HsImportDecl
- dataDecl_ :: String -> [HsConDecl] -> [HsQName] -> HsDecl
- recDecl_ :: HsName -> [([HsName], HsBangType)] -> HsConDecl
- conDecl_ :: HsName -> [HsBangType] -> HsConDecl
- instDecl_ :: HsQName -> [HsType] -> [HsDecl] -> HsDecl
- match_ :: HsName -> [HsPat] -> HsRhs -> [HsDecl] -> HsMatch
- unqual_ :: String -> HsQName
- uvar_ :: String -> HsExp
- protobufType_ :: String -> HsType
- primType_ :: String -> HsType
- protobufStringType_ :: String -> HsType
- protobufBytesType_ :: String -> HsType
- protobufFixedType_ :: HsType -> HsType
- protobufSignedType_ :: HsType -> HsType
- protobufWrappedType_ :: HsType -> HsType
- type_ :: String -> HsType
- patVar :: String -> HsPat
- alt_ :: HsPat -> HsGuardedAlts -> [HsDecl] -> HsAlt
- str_ :: String -> HsExp
- defaultSrcLoc :: SrcLoc
- dotProtoFieldC :: HsExp
- primC :: HsExp
- repeatedC :: HsExp
- nestedRepeatedC :: HsExp
- namedC :: HsExp
- mapC :: HsExp
- fieldNumberC :: HsExp
- singleC :: HsExp
- dotsC :: HsExp
- pathC :: HsExp
- qualifiedC :: HsExp
- anonymousC :: HsExp
- dotProtoOptionC :: HsExp
- identifierC :: HsExp
- stringLitC :: HsExp
- intLitC :: HsExp
- floatLitC :: HsExp
- boolLitC :: HsExp
- trueC :: HsExp
- falseC :: HsExp
- nothingC :: HsExp
- justC :: HsExp
- forceEmitC :: HsExp
- encodeMessageFieldE :: HsExp
- fromStringE :: HsExp
- decodeMessageFieldE :: HsExp
- pureE :: HsExp
- returnE :: HsExp
- mappendE :: HsExp
- memptyE :: HsExp
- msumE :: HsExp
- atE :: HsExp
- oneofE :: HsExp
- fmapE :: HsExp
- apOp :: HsQOp
- fmapOp :: HsQOp
- composeOp :: HsQOp
- bindOp :: HsQOp
- altOp :: HsQOp
- toJSONPBOp :: HsQOp
- parseJSONPBOp :: HsQOp
- neConsOp :: HsQOp
- intE :: Integral a => a -> HsExp
- intP :: Integral a => a -> HsPat
Documentation
haskellName :: String -> HsQName Source #
jsonpbName :: String -> HsQName Source #
protobufName :: String -> HsQName Source #
protobufASTName :: String -> HsQName Source #
Wrappers around haskell-src-exts constructors
module_ :: Module -> Maybe [HsExportSpec] -> [HsImportDecl] -> [HsDecl] -> HsModule Source #
importDecl_ :: Module -> Bool -> Maybe Module -> Maybe (Bool, [HsImportSpec]) -> HsImportDecl Source #
protobufType_ :: String -> HsType Source #
protobufStringType_ :: String -> HsType Source #
protobufBytesType_ :: String -> HsType Source #
protobufFixedType_ :: HsType -> HsType Source #
protobufSignedType_ :: HsType -> HsType Source #
protobufWrappedType_ :: HsType -> HsType Source #
defaultSrcLoc :: SrcLoc Source #
For some reason, haskell-src-exts needs this SrcLoc
parameter
for some data constructors. Its value does not affect
pretty-printed output
Common Haskell expressions, constructors, and operators
fieldNumberC :: HsExp Source #
qualifiedC :: HsExp Source #
anonymousC :: HsExp Source #
identifierC :: HsExp Source #
stringLitC :: HsExp Source #
forceEmitC :: HsExp Source #
fromStringE :: HsExp Source #
toJSONPBOp :: HsQOp Source #