| Safe Haskell | None | 
|---|---|
| Language | Haskell2010 | 
Dino.Types
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 #
Minimal complete definition
Nothing
Methods
dinoTypeRep :: DinoTypeRep a Source #
dinoTypeRep :: BuiltIn a ~ False => DinoTypeRep a Source #
Instances
| DinoType Bool Source # | |
| Defined in Dino.Types Methods | |
| DinoType Double Source # | |
| Defined in Dino.Types Methods | |
| DinoType Float Source # | |
| Defined in Dino.Types Methods | |
| DinoType Int Source # | |
| Defined in Dino.Types Methods | |
| DinoType Integer Source # | |
| Defined in Dino.Types Methods | |
| DinoType Rational Source # | |
| Defined in Dino.Types Methods | |
| DinoType () Source # | |
| Defined in Dino.Types Methods dinoTypeRep :: DinoTypeRep () Source # | |
| DinoType Text Source # | |
| Defined in Dino.Types Methods | |
| DinoType a => DinoType [a] Source # | |
| Defined in Dino.Types Methods dinoTypeRep :: DinoTypeRep [a] Source # | |
| DinoType a => DinoType (Maybe a) Source # | |
| Defined in Dino.Types Methods dinoTypeRep :: DinoTypeRep (Maybe a) Source # | |
| (DinoType a, DinoType b) => DinoType (a, b) Source # | |
| Defined in Dino.Types Methods dinoTypeRep :: DinoTypeRep (a, b) Source # | |
data DinoTypeRep a where Source #
Constructors
| 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 # | |