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

import           Uplcg.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 PlayerView)
    , DefineElm (Proxy :: Proxy VotedView)
    , DefineElm (Proxy :: Proxy TableView)
    , DefineElm (Proxy :: Proxy GameView)
    , DefineElm (Proxy :: Proxy ServerMessage)
    , DefineElm (Proxy :: Proxy ClientMessage)
    ]