Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data SList sa as where
- demoteSList :: forall da sa as. (forall a. sa a -> da) -> SList sa as -> [da]
- type Reverse as = Reverse' '[] as
- type family Reverse' (acc :: [k]) (as :: [k]) :: [k] where ...
- sReverse :: SList sa as -> SList sa (Reverse as)
- sReverse' :: SList sa acc -> SList sa as -> SList sa (Reverse' acc as)
Documentation
data SList sa as where Source #
Singleton list.
demoteSList :: forall da sa as. (forall a. sa a -> da) -> SList sa as -> [da] Source #