aboutsummaryrefslogtreecommitdiff
path: root/latex-test
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 /latex-test
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 'latex-test')
-rwxr-xr-xlatex-test/Main.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/latex-test/Main.hs b/latex-test/Main.hs
index 5989410b..8d2a4922 100755
--- a/latex-test/Main.hs
+++ b/latex-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
}