Safe Haskell | None |
---|---|
Language | Haskell2010 |
Elm
Documentation
data ElmDatatype Source #
Constructors
ElmDatatype Text ElmConstructor | |
ElmPrimitive ElmPrimitive |
Instances
Show ElmDatatype Source # | |
Defined in Elm.Type Methods showsPrec :: Int -> ElmDatatype -> ShowS # show :: ElmDatatype -> String # showList :: [ElmDatatype] -> ShowS # | |
Eq ElmDatatype Source # | |
Defined in Elm.Type |
toElmDecoderRef :: ElmType a => a -> Text Source #
toElmDecoderSource :: ElmType a => a -> Text Source #
toElmEncoderRef :: ElmType a => a -> Text Source #
toElmEncoderSource :: ElmType a => a -> Text Source #
toElmTypeRef :: ElmType a => a -> Text Source #
toElmTypeSource :: ElmType a => a -> Text Source #
data ElmConstructor Source #
Constructors
NamedConstructor Text ElmValue | |
RecordConstructor Text ElmValue | |
MultipleConstructors [ElmConstructor] |
Instances
Show ElmConstructor Source # | |
Defined in Elm.Type Methods showsPrec :: Int -> ElmConstructor -> ShowS # show :: ElmConstructor -> String # showList :: [ElmConstructor] -> ShowS # | |
Eq ElmConstructor Source # | |
Defined in Elm.Type Methods (==) :: ElmConstructor -> ElmConstructor -> Bool # (/=) :: ElmConstructor -> ElmConstructor -> Bool # |
data ElmPrimitive Source #
Constructors
EInt | |
EBool | |
EChar | |
EDate | |
EFloat | |
EString | |
EUnit | |
EList ElmDatatype | |
EMaybe ElmDatatype | |
ETuple2 ElmDatatype ElmDatatype | |
EDict ElmPrimitive ElmDatatype |
Instances
Show ElmPrimitive Source # | |
Defined in Elm.Type Methods showsPrec :: Int -> ElmPrimitive -> ShowS # show :: ElmPrimitive -> String # showList :: [ElmPrimitive] -> ShowS # | |
Eq ElmPrimitive Source # | |
Defined in Elm.Type |
class ElmType a where Source #
Minimal complete definition
Nothing
Methods
toElmType :: a -> ElmDatatype Source #
default toElmType :: (Generic a, GenericElmDatatype (Rep a)) => a -> ElmDatatype Source #
Instances
ElmType Int16 Source # | |
ElmType Int32 Source # | |
ElmType Int64 Source # | |
ElmType Int8 Source # | |
ElmType Text Source # | |
ElmType Day Source # | |
ElmType UTCTime Source # | |
ElmType () Source # | |
Defined in Elm.Type Methods toElmType :: () -> ElmDatatype Source # | |
ElmType Bool Source # | |
ElmType Char Source # | |
ElmType Double Source # | |
ElmType Float Source # | |
ElmType Int Source # | |
ElmType v => ElmType (IntMap v) Source # | |
ElmType a => ElmType (Maybe a) Source # | |
ElmType a => ElmType [a] Source # | |
Defined in Elm.Type Methods toElmType :: [a] -> ElmDatatype Source # | |
ElmType a => ElmType (Proxy a) Source # | |
(HasElmComparable k, ElmType v) => ElmType (Map k v) Source # | |
(ElmType a, ElmType b) => ElmType (a, b) Source # | |
Defined in Elm.Type Methods toElmType :: (a, b) -> ElmDatatype Source # |
class GenericElmDatatype (f :: Type -> Type) where Source #
Methods
genericToElmDatatype :: f a -> ElmDatatype Source #
Instances
(Datatype d, GenericElmConstructor f) => GenericElmDatatype (D1 d f) Source # | |
Defined in Elm.Type Methods genericToElmDatatype :: D1 d f a -> ElmDatatype Source # |
class GenericElmConstructor (f :: Type -> Type) where Source #
Methods
genericToElmConstructor :: f a -> ElmConstructor Source #
Instances
(GenericElmConstructor f, GenericElmConstructor g) => GenericElmConstructor (f :+: g) Source # | |
Defined in Elm.Type Methods genericToElmConstructor :: (f :+: g) a -> ElmConstructor Source # | |
(Constructor c, GenericElmValue f) => GenericElmConstructor (C1 c f) Source # | |
Defined in Elm.Type Methods genericToElmConstructor :: C1 c f a -> ElmConstructor Source # |
class GenericElmValue (f :: Type -> Type) where Source #
Methods
genericToElmValue :: f a -> ElmValue Source #
Instances
GenericElmValue (U1 :: Type -> Type) Source # | |
ElmType a => GenericElmValue (Rec0 a) Source # | |
(GenericElmValue f, GenericElmValue g) => GenericElmValue (f :*: g) Source # | |
(Selector s, GenericElmValue a) => GenericElmValue (S1 s a) Source # | |
class HasElmComparable a where Source #
Methods
toElmComparable :: a -> ElmPrimitive Source #
Instances
HasElmComparable String Source # | |
Defined in Elm.Type Methods toElmComparable :: String -> ElmPrimitive Source # |