Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- termSize :: Term -> Word
- multPrimErr :: PrimInfo -> String
- splitMultiPrimArgs :: HasCallStack => MultiPrimInfo -> [Either Term Type] -> ([Either Term Type], [Id])
- multiPrimInfo' :: HasCallStack => TyConMap -> PrimInfo -> MultiPrimInfo
- multiPrimInfo :: TyConMap -> PrimInfo -> Maybe MultiPrimInfo
- isFun :: TyConMap -> Term -> Bool
- isPolyFun :: TyConMap -> Term -> Bool
- isLet :: Term -> Bool
- isVar :: Term -> Bool
- isLocalVar :: Term -> Bool
- isCon :: Term -> Bool
- isPrim :: Term -> Bool
- isTick :: Term -> Bool
- isCast :: Term -> Bool
Documentation
multPrimErr :: PrimInfo -> String Source #
splitMultiPrimArgs :: HasCallStack => MultiPrimInfo -> [Either Term Type] -> ([Either Term Type], [Id]) Source #
multiPrimInfo' :: HasCallStack => TyConMap -> PrimInfo -> MultiPrimInfo Source #
Same as multiPrimInfo
, but produced an error if it could not produce a
MultiPrimInfo
.
multiPrimInfo :: TyConMap -> PrimInfo -> Maybe MultiPrimInfo Source #
Produce MutliPrimInfo
for given primitive
isLocalVar :: Term -> Bool Source #