Copyright | Dennis Gosnell 2017 |
---|---|
License | BSD3 |
Maintainer | Dennis Gosnell ([email protected]) |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Servant.Checked.Exceptions.Internal.Util
Description
Additional helpers.
Synopsis
- 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))