elm-hybrid-0.1.0.0: Combine Elm with Haskell for data based applications
Elm
class ToElm a where Source #
Methods
toElm :: a -> Expr Source #
toElm :: (Generic a, GToElm (Rep a)) => a -> Expr Source #
Instances
toElm :: Bool -> Expr Source #
toElm :: Char -> Expr Source #
toElm :: Double -> Expr Source #
toElm :: Float -> Expr Source #
toElm :: Int -> Expr Source #
toElm :: Text -> Expr Source #
toElm :: UTCTime -> Expr Source #
toElm :: [a] -> Expr Source #
toElm :: Maybe a -> Expr Source #
data Options Source #
Constructors
Fields
data Expr Source #
showsPrec :: Int -> Expr -> ShowS #
show :: Expr -> String #
showList :: [Expr] -> ShowS #
data Primitive Source #
(==) :: Primitive -> Primitive -> Bool #
(/=) :: Primitive -> Primitive -> Bool #
showsPrec :: Int -> Primitive -> ShowS #
show :: Primitive -> String #
showList :: [Primitive] -> ShowS #
data Generator Source #
(==) :: Generator -> Generator -> Bool #
(/=) :: Generator -> Generator -> Bool #
compare :: Generator -> Generator -> Ordering #
(<) :: Generator -> Generator -> Bool #
(<=) :: Generator -> Generator -> Bool #
(>) :: Generator -> Generator -> Bool #
(>=) :: Generator -> Generator -> Bool #
max :: Generator -> Generator -> Generator #
min :: Generator -> Generator -> Generator #
showsPrec :: Int -> Generator -> ShowS #
show :: Generator -> String #
showList :: [Generator] -> ShowS #
defaultOptions :: Options Source #
genericToElm :: (Generic a, GToElm (Rep a)) => Options -> a -> Expr Source #
generateElm :: FilePath -> String -> [String] -> [(Expr, [Generator])] -> IO () Source #