summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilMitchell <>2019-05-19 18:52:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-05-19 18:52:00 (GMT)
commit42cbe485876ec5232d9e7c8ea7c4eab5e162c750 (patch)
tree9c8ac2355e62af6ac3f1faadb954ee40099e9780
parentbbc003cbb4b2c7b851afabb64f36f955d2a152b7 (diff)
version 2.1.212.1.21
-rw-r--r--CHANGES.txt2
-rw-r--r--hlint.cabal2
-rw-r--r--src/HSE/All.hs7
3 files changed, 8 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 858933d..f483119 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
Changelog for HLint (* = breaking change)
+2.1.21, released 2019-05-19
+ #637, temporary workaround for GHC parser segfaults
2.1.20, released 2019-05-15
* Fix a dumb break in the API on parseModuleEx
2.1.19, released 2019-05-14
diff --git a/hlint.cabal b/hlint.cabal
index 35f625c..eed65d1 100644
--- a/hlint.cabal
+++ b/hlint.cabal
@@ -1,7 +1,7 @@
cabal-version: >= 1.18
build-type: Simple
name: hlint
-version: 2.1.20
+version: 2.1.21
license: BSD3
license-file: LICENSE
category: Development
diff --git a/src/HSE/All.hs b/src/HSE/All.hs
index fe13ea2..47eddc6 100644
--- a/src/HSE/All.hs
+++ b/src/HSE/All.hs
@@ -225,10 +225,13 @@ parseModuleExInternal flags file str = timedIO "Parse" file $ do
(ParseFailed sl msg, pfailed) ->
failOpParseModuleEx ppstr flags file str sl msg $ fromPFailed pfailed
where
- fromPFailed (PFailed x) = Just x
+ -- TEMPORARY HACK TO AVOID EVALUATING parseFileGhcLib
+ -- see https://github.com/ndmitchell/hlint/issues/637
+ -- fromPFailed (PFailed x) = Just x
fromPFailed _ = Nothing
- fromPOk (POk _ x) = Just x
+ -- TEMPORARY HACK
+ -- fromPOk (POk _ x) = Just x
fromPOk _ = Nothing
fixity = fromMaybe [] $ fixities $ hseFlags flags