Portability | see LANGUAGE pragmas (... GHC) |
---|---|
Stability | experimental |
Maintainer | nicolas.frisby@gmail.com |
Definitions on top of the basic yoko
reflection concepts Data.Yoko.ReflectBase.
- type SiblingsU t = Uni (Siblings t)
- data IsDC dc where
- newtype RMNTo m b dc = RMNTo {}
- dcDispatch :: DT t => NT (DCU t) (RMNTo IdM b) -> t -> b
- dcDispatch' :: DT t => NT (DCU t) (RMNTo IdM b) -> Disbanded IdM t -> b
- data TagRepIs tag c dc where
- bandDCs :: DT t => Disbanded IdM t -> t
- fr_DCOf :: DCOf t dc -> RMNI dc -> t
- module Data.Yoko.ReflectBase
Documentation
dcDispatch :: DT t => NT (DCU t) (RMNTo IdM b) -> t -> bSource
Just a specialization: dcDispatch = (. disband) . dcDispatch'
.
data TagRepIs tag c dc whereSource
A fundamental notion of identity in yoko
, the TagRepIs tag c
universe
contains all constructor types dc
where (Tag dc ~ tag, c ~ Rep dc)
.
type instance Pred (TagRepIs tag c) dc = And (IsEQ (Compare (Tag dc) tag)) (IsEQ (Compare (Rep dc) c))
module Data.Yoko.ReflectBase