Detangle ghc-mod and hlint

The hlint patch fixes #317.