Skip to content

Commit bc45bb5

Browse files
committed
fix tests for GHC 7.8.
1 parent 6db9696 commit bc45bb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/Network/Test/Common.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,18 @@ module Network.Test.Common
2626
, lazyTestMsg
2727
) where
2828

29+
#if __GLASGOW_HASKELL__ < 709
30+
import Control.Applicative ((<$>))
31+
#endif
2932
import Control.Concurrent (ThreadId, forkIO, myThreadId)
3033
import Control.Concurrent.MVar (MVar, newEmptyMVar, putMVar, takeMVar, readMVar)
3134
import qualified Control.Exception as E
3235
import Control.Monad
3336
import Data.ByteString (ByteString)
37+
import qualified Data.ByteString.Lazy as L
3438
import Network.Socket
3539
import System.Directory
36-
import qualified Data.ByteString.Lazy as L
3740
import System.Timeout (timeout)
38-
3941
import Test.Hspec
4042

4143
serverAddr :: String

0 commit comments

Comments
 (0)