| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Servant.Kotlin.Type
Documentation
data KotlinClass #
Instances
data KotlinPrimitiveClass #
data KotlinExClass #
Constructors
| KList KotlinClass | |
| KHashMap KotlinClass KotlinClass | |
| KPair KotlinClass KotlinClass | |
| KTime |
Instances
class KotlinType a where #
Methods
toKotlinType :: a -> Maybe KotlinClass #
toKotlinType :: (Generic a, GenericKotlinType (Rep a)) => a -> Maybe KotlinClass #
Instances
| KotlinType Bool # | |
| KotlinType Char # | |
| KotlinType Double # | |
| KotlinType Float # | |
| KotlinType Int # | |
| KotlinType Int8 # | |
| KotlinType Int16 # | |
| KotlinType Int32 # | |
| KotlinType Int64 # | |
| KotlinType () # | |
| KotlinType Text # | |
| KotlinType UTCTime # | |
| KotlinType NoContent # | |
| KotlinType a => KotlinType [a] # | |
| KotlinType a => KotlinType (Maybe a) # | |
| KotlinType v => KotlinType (IntMap v) # | |
| (KotlinType a, KotlinType b) => KotlinType (a, b) # | |
| (KotlinType k, KotlinType v) => KotlinType (Map k v) # | |
| KotlinType a => KotlinType (Proxy * a) # | |
class GenericKotlinType f where #
Minimal complete definition
Methods
genericToKotlinType :: f a -> Maybe KotlinClass #
Instances
| KotlinType a => GenericKotlinType (Rec0 * a) # | |
| (Datatype Meta d, GenericKotlinFields f) => GenericKotlinType (D1 * d f) # | |
class GenericKotlinFields f where #
Minimal complete definition
Methods
genericToKotlinFields :: f a -> Maybe KotlinFields #
Instances
| GenericKotlinFields (U1 *) # | |
| GenericKotlinFields ((:+:) * f g) # | |
| (GenericKotlinFields f, GenericKotlinFields g) => GenericKotlinFields ((:*:) * f g) # | |
| (Constructor Meta c, GenericKotlinFields f) => GenericKotlinFields (C1 * c f) # | |
| (Selector Meta s, GenericKotlinType a) => GenericKotlinFields (S1 * s a) # | |
toKotlinType' :: KotlinType a => a -> KotlinClass #