Initial commit

This commit is contained in:
2018-09-24 23:36:26 +03:00
commit 3441ab2bbb
13 changed files with 263 additions and 0 deletions

8
executables/api.hs Normal file
View File

@ -0,0 +1,8 @@
module Main where
import Server
import Network.Wai.Handler.Warp
import Network.Wai.Middleware.Cors (simpleCors)
main :: IO ()
main = run 8081 (simpleCors application)

11
executables/generator.hs Normal file
View File

@ -0,0 +1,11 @@
{-# Language TypeApplications #-}
{-# Language NoImplicitPrelude #-}
module Main where
import API
import Servant.JS
import Data.Proxy (Proxy(..))
import ClassyPrelude
main :: IO ()
main = putStrLn $ jsForAPI (Proxy @API) vanillaJS