Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
A curation of base types commonly used by the everyday Haskell programmer.
Opaque Types
In order to plug in custom opaque types, the programmer
must provide their own Kon
and Singl
. This module serves
more as an example.
Instances
data Singl (kon :: Kon) :: * where Source #
A singleton GADT for the allowed Kon
stants.
SInt :: Int -> Singl KInt | |
SInteger :: Integer -> Singl KInteger | |
SFloat :: Float -> Singl KFloat | |
SDouble :: Double -> Singl KDouble | |
SBool :: Bool -> Singl KBool | |
SChar :: Char -> Singl KChar | |
SString :: String -> Singl KString |