begin type interop

This commit is contained in:
mtgmonkey 2025-05-04 13:11:51 -04:00
parent 6c4557289b
commit c86f613ccc
6 changed files with 94 additions and 3 deletions

View 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)
]