Prevent hlint crash on unicode chars
authorMichele Tartara <mtartara@google.com>
Mon, 19 Nov 2012 09:30:20 +0000 (10:30 +0100)
committerGuido Trotter <ultrotter@google.com>
Mon, 19 Nov 2012 09:49:05 +0000 (10:49 +0100)
Some versions of hlint crash on the Attoparsec test file because they
are not able to correctly handle unicode characters if the proper encoding
(--utf8) is not specified.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>

Makefile.am

index 8c2fe23..d486841 100644 (file)
@@ -1514,7 +1514,7 @@ pep8: $(GENERATED_FILES)
 hlint: $(HS_BUILT_SRCS) htools/lint-hints.hs
        @test -n "$(HLINT)" || { echo 'hlint' not found during configure; exit 1; }
        if tty -s; then C="-c"; else C=""; fi; \
-       $(HLINT) --report=doc/hs-lint.html --cross $$C \
+       $(HLINT) --utf8 --report=doc/hs-lint.html --cross $$C \
          --ignore "Use first" \
          --ignore "Use comparing" \
          --ignore "Use on" \