aboutsummaryrefslogtreecommitdiff
path: root/hoogle-test/Main.hs
diff options
context:
space:
mode:
authorYuji Yamamoto <whosekiteneverfly@gmail.com>2017-07-04 05:37:58 +0900
committerAlex Biehl <alexbiehl@gmail.com>2017-07-03 22:37:58 +0200
commit58edf9f5757daadeeaa7879785c48363fa154996 (patch)
treef09972ba98497c06dccea65f513877efb10ba848 /hoogle-test/Main.hs
parenta330da5297106ff214cbb5e74965d9d1ef9dab7b (diff)
Fix test failures on Windows (#564)
* Ignore .stack-work * Fix for windows: use nul instead of /dev/null * Fix for windows: canonicalize line separator * Also normalize osx line endings
Diffstat (limited to 'hoogle-test/Main.hs')
-rw-r--r--hoogle-test/Main.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/hoogle-test/Main.hs b/hoogle-test/Main.hs
index 59a98fd0..d19ae585 100644
--- a/hoogle-test/Main.hs
+++ b/hoogle-test/Main.hs
@@ -1,10 +1,12 @@
{-# LANGUAGE CPP #-}
+import Data.Function
import System.Environment
import System.FilePath
import Test.Haddock
+import Test.Haddock.Utils
checkConfig :: CheckConfig String
@@ -12,7 +14,7 @@ checkConfig = CheckConfig
{ ccfgRead = Just
, ccfgClean = \_ -> id
, ccfgDump = id
- , ccfgEqual = (==)
+ , ccfgEqual = (==) `on` crlfToLf
}