Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- class Reiterate c (xs :: [Type]) where
- class ReiterateN c (n :: Nat) (xs :: [Type]) where
- reiterateN :: c n xs -> c (n + 1) (Tail xs)
Documentation
class Reiterate c (xs :: [Type]) where Source #
Allows iterating over the types in a typelist
reiterate :: c xs -> c (Tail xs) Source #
Return the next iteration without the Head
type x in (x ': xs)
Instances
class ReiterateN c (n :: Nat) (xs :: [Type]) where Source #
Allows iterating over the types in a typelist, whilst also incrementing an Nat index
reiterateN :: c n xs -> c (n + 1) (Tail xs) Source #
Return the next iteration without the Head
type x in (x ': xs)
Instances
ReiterateN (CasesN fs r) n xs Source # | |
Defined in Data.Diverse.Cases |