Safe Haskell | None |
---|---|
Language | Haskell2010 |
Inspecing and modifying PatternT
s, function parameters and
pattern elements.
Synopsis
- paramIdent :: Typed attr => ParamT attr -> Ident
- paramType :: Typed attr => ParamT attr -> Type
- paramDeclType :: DeclTyped attr => ParamT attr -> DeclType
- patElemIdent :: Typed attr => PatElemT attr -> Ident
- patElemType :: Typed attr => PatElemT attr -> Type
- setPatElemLore :: PatElemT oldattr -> newattr -> PatElemT newattr
- patternElements :: PatternT attr -> [PatElemT attr]
- patternIdents :: Typed attr => PatternT attr -> [Ident]
- patternContextIdents :: Typed attr => PatternT attr -> [Ident]
- patternValueIdents :: Typed attr => PatternT attr -> [Ident]
- patternNames :: PatternT attr -> [VName]
- patternValueNames :: PatternT attr -> [VName]
- patternContextNames :: PatternT attr -> [VName]
- patternTypes :: Typed attr => PatternT attr -> [Type]
- patternValueTypes :: Typed attr => PatternT attr -> [Type]
- patternExtTypes :: Typed attr => PatternT attr -> [ExtType]
- patternSize :: PatternT attr -> Int
- basicPattern :: [Ident] -> [Ident] -> PatternT Type
Function parameters
Pattern elements
patElemIdent :: Typed attr => PatElemT attr -> Ident Source #
An Ident
corresponding to a pattern element.
setPatElemLore :: PatElemT oldattr -> newattr -> PatElemT newattr Source #
Set the lore of a PatElem
.
patternElements :: PatternT attr -> [PatElemT attr] Source #
All pattern elements in the pattern - context first, then values.
patternValueNames :: PatternT attr -> [VName] Source #
patternContextNames :: PatternT attr -> [VName] Source #
patternTypes :: Typed attr => PatternT attr -> [Type] Source #
Return a list of the types
s bound by the PatternT
.
patternValueTypes :: Typed attr => PatternT attr -> [Type] Source #
Return a list of the Types
s bound by the value part of the PatternT
.