Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Elim' a
- isApplyElim :: Elim' a -> Maybe (Arg a)
- isApplyElim' :: Empty -> Elim' a -> Arg a
- allApplyElims :: [Elim' a] -> Maybe [Arg a]
- splitApplyElims :: [Elim' a] -> ([Arg a], [Elim' a])
- class IsProjElim e where
- isProjElim :: e -> Maybe (ProjOrigin, QName)
- argsFromElims :: [Elim' t] -> [Arg t]
- allProjElims :: [Elim' t] -> Maybe [(ProjOrigin, QName)]
Documentation
Eliminations, subsuming applications and projections.
Apply (Arg a) | Application. |
Proj ProjOrigin QName | Projection. |
IApply a a a | IApply x y r, x and y are the endpoints |
Instances
class IsProjElim e where Source #
isProjElim :: e -> Maybe (ProjOrigin, QName) Source #
Instances
IsProjElim (Elim' a) Source # | |
Defined in Agda.Syntax.Internal.Elim isProjElim :: Elim' a -> Maybe (ProjOrigin, QName) Source # | |
IsProjElim e => IsProjElim (MaybeReduced e) Source # | |
Defined in Agda.TypeChecking.Monad.Base isProjElim :: MaybeReduced e -> Maybe (ProjOrigin, QName) Source # |
argsFromElims :: [Elim' t] -> [Arg t] Source #
Discards Proj f
entries.
allProjElims :: [Elim' t] -> Maybe [(ProjOrigin, QName)] Source #
Drop Proj
constructors. (Safe)