for hlint.

This commit is contained in:
Kazu Yamamoto 2014-03-27 16:28:27 +09:00
parent 7ccb4ab045
commit 99aeebfb6f
2 changed files with 6 additions and 2 deletions

View File

@ -127,7 +127,7 @@ main = flip E.catches handlers $ do
putStr res putStr res
where where
handlers = [Handler (handleThenExit handler1), Handler (handleThenExit handler2)] handlers = [Handler (handleThenExit handler1), Handler (handleThenExit handler2)]
handleThenExit handler = \e -> handler e >> exitFailure handleThenExit handler e = handler e >> exitFailure
handler1 :: ErrorCall -> IO () handler1 :: ErrorCall -> IO ()
handler1 = print -- for debug handler1 = print -- for debug
handler2 :: GHCModError -> IO () handler2 :: GHCModError -> IO ()

View File

@ -1,4 +1,4 @@
{-# LANGUAGE BangPatterns, CPP #-} {-# LANGUAGE CPP #-}
-- Commands: -- Commands:
-- check <file> -- check <file>
@ -11,6 +11,10 @@
module Main where module Main where
#ifndef MIN_VERSION_containers
#define MIN_VERSION_containers 1
#endif
import Control.Applicative ((<$>)) import Control.Applicative ((<$>))
import Control.Concurrent (forkIO, MVar, newEmptyMVar, putMVar, readMVar) import Control.Concurrent (forkIO, MVar, newEmptyMVar, putMVar, readMVar)
import Control.Exception (SomeException(..)) import Control.Exception (SomeException(..))