Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@chrisdone
Created January 30, 2011 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdone/802377 to your computer and use it in GitHub Desktop.
Save chrisdone/802377 to your computer and use it in GitHub Desktop.
{-# OPTIONS -Wall #-}
module Main where
import Network
import System.Console.CmdArgs
import System.Posix
import Hulk.Config (getConfig)
import Hulk.Options (options,optionsConf)
import Hulk.Server (start)
import Hulk.Types ()
main :: IO ()
main = withSocketsDo $ do
_ <- installHandler sigPIPE Ignore Nothing
cmdArgs options >>= getConfig . optionsConf >>= start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment