begin type interop
This commit is contained in:
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)
|
||||
]
|
Reference in New Issue
Block a user