begin type interop
This commit is contained in:
parent
6c4557289b
commit
c86f613ccc
6 changed files with 94 additions and 3 deletions
20
backend/src/ElmskellTypes.hs
Normal file
20
backend/src/ElmskellTypes.hs
Normal file
|
@ -0,0 +1,20 @@
|
|||
{-# LANGUAGE TemplateHaskell #-}
|
||||
|
||||
module ElmskellTypes
|
||||
|
||||
import Elm.Derive
|
||||
import Elm.Module
|
||||
|
||||
data Foo
|
||||
= Foo
|
||||
{ name :: String
|
||||
, blablub :: Int
|
||||
} deriving (Show, Eq)
|
||||
|
||||
deriveBoth defaultOptions ''Foo
|
||||
|
||||
main :: IO ()
|
||||
main =
|
||||
putStrLn $ makeElmModule "Foo"
|
||||
[ DefineElm (Proxy :: Proxy Foo)
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue