Skip to content

Instantly share code, notes, and snippets.

@acowley
acowley / Compiler.hs
Created December 22, 2015 18:17
Use the GHC API to time the type checker
import Control.Arrow ((***))
import Control.Monad (replicateM_)
import Control.Monad.IO.Class
import Data.List (isPrefixOf)
import Data.Time.Clock
import DynFlags (defaultFatalMessager, defaultFlushOut, PkgConfRef(PkgConfFile))
import GHC
import GHC.Paths (libdir)
import System.FilePath (takeBaseName, splitExtension, addExtension)
import Text.Printf

TODO list for Snap 1.0

  • add remaining repositories to buildbot
  • cleanup/refactor command-line config stuff
  • kill warnings
  • release io-streams-haproxy
    • one more cleanup TODO re: passing in SockAddrs
  • cleanup docs
    • io-streams-style tutorial material and usage examples for most of the api
  • clean up the tutorial material on the website (second priority to the api docstrings)