add all agora types

This commit is contained in:
fanghr 2022-05-13 20:03:17 +08:00
parent 9a26439397
commit 538e809d2c
No known key found for this signature in database
GPG key ID: 35CD9A71CD5D5870
8 changed files with 145 additions and 7 deletions

View file

@ -1,4 +1,28 @@
module Main (main) where
import Language.PureScript.Bridge (
buildBridge,
defaultBridge,
writePSTypes,
)
--------------------------------------------------------------------------------
import Control.Monad (unless)
--------------------------------------------------------------------------------
import AgoraTypes (agoraTypes)
import Options (Options (..), parseOptions)
--------------------------------------------------------------------------------
main :: IO ()
main = return ()
main = do
options <- parseOptions
unless options.quiet $ do
putStrLn $ "Writing purescript stuff to " <> options.output
putStrLn ""
writePSTypes options.output (buildBridge defaultBridge) agoraTypes