aboutsummaryrefslogtreecommitdiff
path: root/server/src/GenerateElmTypes.hs
blob: e8aa25bf4366625f63ac571115ad5586f4b426c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE TemplateHaskell #-}
import Cafp.Messages
import Elm.Derive
import Elm.Module
import Data.Proxy

deriveBoth defaultOptions ''ServerMessage

main :: IO ()
main = putStrLn $ makeElmModule "Messages"
    [ DefineElm (Proxy :: Proxy ServerMessage)
    ]