| Copyright | Dennis Gosnell 2017 |
|---|---|
| License | BSD3 |
| Maintainer | Dennis Gosnell (cdep.illabout@gmail.com) |
| Stability | experimental |
| Portability | unknown |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Servant.Checked.Exceptions.Internal.Util
Description
Additional helpers.
- type family Snoc (as :: [k]) (b :: k) where ...
Documentation
type family Snoc (as :: [k]) (b :: k) where ... Source #
A type-level snoc.
Append to an empty list:
>>>Refl :: Snoc '[] Double :~: '[Double]Refl
Append to a non-empty list:
>>>Refl :: Snoc '[Char] String :~: '[Char, String]Refl
>>>:set -XDataKinds>>>:set -XTypeOperators>>>import Data.Type.Equality ((:~:)(Refl))