Created
January 30, 2011 00:38
-
-
Save chrisdone/802377 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# 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