Safe Haskell | None |
---|---|
Language | Haskell2010 |
Arity and eta expansion
- manifestArity :: CoreExpr -> Arity
- exprArity :: CoreExpr -> Arity
- typeArity :: Type -> [OneShotInfo]
- exprBotStrictness_maybe :: CoreExpr -> Maybe (Arity, StrictSig)
- exprEtaExpandArity :: DynFlags -> CoreExpr -> Arity
- findRhsArity :: DynFlags -> Id -> CoreExpr -> Arity -> Arity
- type CheapFun = CoreExpr -> Maybe Type -> Bool
- etaExpand :: Arity -> CoreExpr -> CoreExpr
Documentation
manifestArity :: CoreExpr -> Arity Source
manifestArity sees how many leading value lambdas there are, after looking through casts
exprArity :: CoreExpr -> Arity Source
An approximate, fast, version of exprEtaExpandArity
typeArity :: Type -> [OneShotInfo] Source
exprEtaExpandArity :: DynFlags -> CoreExpr -> Arity Source