Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- tcTyVar_maybe :: Type -> Maybe Var
- instantiateType :: Type -> ([TyVar], Type)
- cloneTyVar :: TyVar -> TyVar
- isFunction :: Type -> Bool
- tacticsSplitFunTy :: Type -> ([TyVar], ThetaType, [Type], Type)
- tacticsThetaTy :: Type -> ThetaType
- freshTyvars :: MonadState TacticState m => Type -> m Type
- algebraicTyCon :: Type -> Maybe TyCon
- lambdaCaseable :: Type -> Maybe Bool
- fromPatCompat :: PatCompat GhcTc -> Pat GhcTc
- type PatCompat pass = LPat pass
- pattern TopLevelRHS :: OccName -> [PatCompat GhcTc] -> LHsExpr GhcTc -> Match GhcTc (LHsExpr GhcTc)
- getPatName :: PatCompat GhcTc -> Maybe OccName
- dataConExTys :: DataCon -> [TyCoVar]
Documentation
cloneTyVar :: TyVar -> TyVar Source #
isFunction :: Type -> Bool Source #
Is this a function type?
tacticsSplitFunTy :: Type -> ([TyVar], ThetaType, [Type], Type) Source #
Split a function, also splitting out its quantified variables and theta context.
tacticsThetaTy :: Type -> ThetaType Source #
Rip the theta context out of a regular type.
freshTyvars :: MonadState TacticState m => Type -> m Type Source #
Instantiate all of the quantified type variables in a type with fresh skolems.
lambdaCaseable :: Type -> Maybe Bool Source #
Can ths type be lambda-cased?
Return: Nothing
if no
Just False
if it can't be homomorphic
Just True
if it can
pattern TopLevelRHS :: OccName -> [PatCompat GhcTc] -> LHsExpr GhcTc -> Match GhcTc (LHsExpr GhcTc) Source #
Should make sure it's a fun bind
dataConExTys :: DataCon -> [TyCoVar] Source #