Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Inspecing and modifying Pat
s, function parameters and
pattern elements.
Synopsis
- paramIdent :: Typed dec => Param dec -> Ident
- paramType :: Typed dec => Param dec -> Type
- paramDeclType :: DeclTyped dec => Param dec -> DeclType
- patElemIdent :: Typed dec => PatElem dec -> Ident
- patElemType :: Typed dec => PatElem dec -> Type
- setPatElemDec :: PatElem oldattr -> newattr -> PatElem newattr
- patIdents :: Typed dec => Pat dec -> [Ident]
- patNames :: Pat dec -> [VName]
- patTypes :: Typed dec => Pat dec -> [Type]
- patSize :: Pat dec -> Int
- basicPat :: [Ident] -> Pat Type
Function parameters
Pat elements
patElemIdent :: Typed dec => PatElem dec -> Ident Source #
An Ident
corresponding to a pattern element.
patTypes :: Typed dec => Pat dec -> [Type] Source #
Return a list of the typess bound by the pattern.