| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
Generics.MRSOP.Opaque
Contents
Description
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
| Eq Kon Source # | |
| Show Kon Source # | |
| TestEquality Singl Source # | |
Defined in Generics.MRSOP.Opaque | |
| ShowHO Singl Source # | |
| EqHO Singl Source # | |
| Family Singl FamRose CodesRose Source # | |
| HasDatatypeInfo Singl FamRose CodesRose Source # | |
Defined in Generics.MRSOP.Examples.RoseTree Methods datatypeInfo :: Proxy FamRose -> SNat ix -> DatatypeInfo (Lkup ix CodesRose) Source # | |
data Singl (kon :: Kon) :: * where Source #
A singleton GADT for the allowed Konstants.
Constructors
| 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 |
Instances
| TestEquality Singl Source # | |
Defined in Generics.MRSOP.Opaque | |
| ShowHO Singl Source # | |
| EqHO Singl Source # | |
| Family Singl FamRose CodesRose Source # | |
| HasDatatypeInfo Singl FamRose CodesRose Source # | |
Defined in Generics.MRSOP.Examples.RoseTree Methods datatypeInfo :: Proxy FamRose -> SNat ix -> DatatypeInfo (Lkup ix CodesRose) Source # | |
| Eq (Singl k) Source # | |
| Show (Singl k) Source # | |