summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilMitchell <>2019-05-15 09:18:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2019-05-15 09:18:00 (GMT)
commitbbc003cbb4b2c7b851afabb64f36f955d2a152b7 (patch)
tree97ff83523f96483614a323beea52e4318db77ed6
parent0dfb8ca103bfc45a4878d125b494822c64b0055f (diff)
version 2.1.202.1.20
-rw-r--r--CHANGES.txt2
-rw-r--r--hlint.cabal2
-rw-r--r--src/HSE/All.hs2
3 files changed, 4 insertions, 2 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 6c58d23..858933d 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,7 @@
Changelog for HLint (* = breaking change)
+2.1.20, released 2019-05-15
+* Fix a dumb break in the API on parseModuleEx
2.1.19, released 2019-05-14
* Revert PVP breakage
2.1.18, released 2019-05-13
diff --git a/hlint.cabal b/hlint.cabal
index ab72f48..35f625c 100644
--- a/hlint.cabal
+++ b/hlint.cabal
@@ -1,7 +1,7 @@
cabal-version: >= 1.18
build-type: Simple
name: hlint
-version: 2.1.19
+version: 2.1.20
license: BSD3
license-file: LICENSE
category: Development
diff --git a/src/HSE/All.hs b/src/HSE/All.hs
index 4584ed2..fe13ea2 100644
--- a/src/HSE/All.hs
+++ b/src/HSE/All.hs
@@ -209,7 +209,7 @@ failOpParseModuleEx ppstr _ file str _ _ (Just ps) = do
-- This version uses both hs-src-exts AND ghc-lib. It's considered to be an unrecoverable error if one
-- parsing method succeeds whilst the other fails.
parseModuleEx :: ParseFlags -> FilePath -> Maybe String -> IO (Either ParseError (Module SrcSpanInfo, [Comment]))
-parseModuleEx flags file str = fmap undefined <$> parseModuleExInternal flags file str
+parseModuleEx flags file str = fmap pm_hsext <$> parseModuleExInternal flags file str
parseModuleExInternal :: ParseFlags -> FilePath -> Maybe String -> IO (Either ParseError ParsedModuleResults)
parseModuleExInternal flags file str = timedIO "Parse" file $ do