Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Dinamic where
- class (Eq a, Show a, Typeable a, Inspectable a) => DinoType a where
- dinoTypeRep :: DinoTypeRep a
- data DinoTypeRep a where
- ListType :: DinoTypeRep a -> DinoTypeRep [a]
- PairType :: DinoTypeRep a -> DinoTypeRep b -> DinoTypeRep (a, b)
- OtherType :: (BuiltIn a ~ False, DinoType a) => DinoTypeRep a
- type family BuiltIn a :: Bool where ...
- withType :: DinoTypeRep a -> (DinoType a => b) -> b
- listTypeElem :: DinoTypeRep [a] -> DinoTypeRep a
- fromDinamic :: DinoType a => Dinamic -> Maybe a
- class Inspectable a
Documentation
Dynamic type based on DinoType
class (Eq a, Show a, Typeable a, Inspectable a) => DinoType a where Source #
Nothing
dinoTypeRep :: DinoTypeRep a Source #
dinoTypeRep :: BuiltIn a ~ False => DinoTypeRep a Source #
Instances
DinoType Bool Source # | |
Defined in Dino.Types | |
DinoType Double Source # | |
Defined in Dino.Types | |
DinoType Float Source # | |
Defined in Dino.Types | |
DinoType Int Source # | |
Defined in Dino.Types | |
DinoType Integer Source # | |
Defined in Dino.Types | |
DinoType Rational Source # | |
Defined in Dino.Types | |
DinoType () Source # | |
Defined in Dino.Types dinoTypeRep :: DinoTypeRep () Source # | |
DinoType Text Source # | |
Defined in Dino.Types | |
DinoType a => DinoType [a] Source # | |
Defined in Dino.Types dinoTypeRep :: DinoTypeRep [a] Source # | |
DinoType a => DinoType (Maybe a) Source # | |
Defined in Dino.Types dinoTypeRep :: DinoTypeRep (Maybe a) Source # | |
(DinoType a, DinoType b) => DinoType (a, b) Source # | |
Defined in Dino.Types dinoTypeRep :: DinoTypeRep (a, b) Source # |
data DinoTypeRep a where Source #
ListType :: DinoTypeRep a -> DinoTypeRep [a] | |
PairType :: DinoTypeRep a -> DinoTypeRep b -> DinoTypeRep (a, b) | |
OtherType :: (BuiltIn a ~ False, DinoType a) => DinoTypeRep a |
Instances
type family BuiltIn a :: Bool where ... Source #
Built-in Dino types
Whether or not a type is built-in is mostly an implementation detail.
withType :: DinoTypeRep a -> (DinoType a => b) -> b Source #
listTypeElem :: DinoTypeRep [a] -> DinoTypeRep a Source #
class Inspectable a Source #
Instances
Inspectable Bool Source # | |
Inspectable Double Source # | |
Inspectable Float Source # | |
Inspectable Int Source # | |
Inspectable Integer Source # | |
Inspectable Rational Source # | |
Inspectable () Source # | |
Inspectable String Source # | |
Inspectable Text Source # | |
Inspectable a => Inspectable [a] Source # | |
Inspectable a => Inspectable (Maybe a) Source # | |
Real n => Inspectable (AST n) Source # | |
Inspectable (Reified a) Source # | |
(Inspectable a, Inspectable b) => Inspectable (a, b) Source # | |
Inspectable a => Inspectable (Mapping Field a) Source # | |
(Inspectable a, Inspectable b, Inspectable c) => Inspectable (a, b, c) Source # | |
(Inspectable a, Inspectable b, Inspectable c, Inspectable d) => Inspectable (a, b, c, d) Source # | |