module Main where
import Devel
import Devel.CmdArgs
import Options.Applicative
main :: IO ()
main = do
cmdArgs' <- execParser opts
let isReverseProxy' = isReverseProxy cmdArgs'
buildFile' = buildFile cmdArgs'
runFunction' = runFunction cmdArgs'
buildAndRun buildFile' runFunction' isReverseProxy'
where opts :: ParserInfo CmdArgs
opts = info (helper <*> cmdArgs)
(fullDesc
<> progDesc "For WAI complaint haskell web applications"
<> header "wai-devel: development server for haskell web applications." )