aboutsummaryrefslogtreecommitdiff
path: root/server/lib/Cafp/Main/GenerateElmTypes.hs
blob: 677bc5cc3d52b92911863f0b6db1590e2408c256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# OPTIONS_GHC -fno-warn-orphans #-}
{-# LANGUAGE TemplateHaskell #-}
module Cafp.Main.GenerateElmTypes
    ( main
    ) where

import           Cafp.Messages
import           Data.Proxy
import           Elm.Module

main :: IO ()
main = putStrLn $ makeElmModule "Messages"
    [ DefineElm (Proxy :: Proxy BlackCard)
    , DefineElm (Proxy :: Proxy WhiteCard)
    , DefineElm (Proxy :: Proxy Cards)
    , DefineElm (Proxy :: Proxy TableView)
    , DefineElm (Proxy :: Proxy GameView)
    , DefineElm (Proxy :: Proxy ServerMessage)
    , DefineElm (Proxy :: Proxy ClientMessage)
    ]