Skip to content

Instantly share code, notes, and snippets.

@FrozenCow
Created June 9, 2014 12:22
Show Gist options
  • Select an option

  • Save FrozenCow/136f13b0bf9376ffdc1b to your computer and use it in GitHub Desktop.

Select an option

Save FrozenCow/136f13b0bf9376ffdc1b to your computer and use it in GitHub Desktop.

Revisions

  1. FrozenCow revised this gist Jun 9, 2014. No changes.
  2. FrozenCow created this gist Jun 9, 2014.
    6 changes: 6 additions & 0 deletions gistfile1.hs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    main = httpServe config site
    where
    config = setErrorHandler handleError defaultConfig
    handleError exception = liftIO $ do
    hPutStr stderr "Error: "
    hPrint stderr $ exception