packages feed

pointfree 1.1.1.9 → 1.1.1.10

raw patch · 3 files changed

+18/−7 lines, 3 filesdep ~basePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: base

API changes (from Hackage documentation)

Files

ChangeLog view
@@ -1,3 +1,8 @@+v1.1.1.10:+* When parsing as an expression and as a declaration both fail, show both errors (PR #39, thanks 1in1)+* GitHub Action for CI+* Dependency update for base 4.16, GHC 9.2.5 (PR #39, thanks Andreas Ländle)+ v1.1.1.9: * Dependency update for base 4.15, QC 2.14 * Fix 'return x y' being incorrectly written to 'y' (instead of 'x')
Plugin/Pl/Parser.hs view
@@ -93,6 +93,12 @@ parsePF :: String -> Either String TopLevel parsePF inp = case HSE.parseExpWithMode parseMode inp of   HSE.ParseOk e -> Right (TLE (hseToExpr e))-  HSE.ParseFailed _ _ -> case HSE.parseDeclWithMode parseMode inp of+  HSE.ParseFailed _ expParseErr -> case HSE.parseDeclWithMode parseMode inp of     HSE.ParseOk d -> Right (TLD True (hseToDecl d))-    HSE.ParseFailed _ err -> Left err+    HSE.ParseFailed _ declParseErr -> Left jointErrorMessage where+      jointErrorMessage = join+        [ "Parsing input as an expression failed with \"", expParseErr,  "\""+        , "\n"+        , "Parsing input as an declaration failed with \"", declParseErr, "\""+        ]+
pointfree.cabal view
@@ -1,7 +1,7 @@ Cabal-Version: >= 1.10  Name:     pointfree-Version:  1.1.1.9+Version:  1.1.1.10 Category: Tool Synopsis: Tool for refactoring expressions into pointfree form @@ -17,7 +17,7 @@ Extra-source-files: ChangeLog README test/Test.hs  Build-type:  Simple-Tested-with: GHC == 9.0.2+Tested-with: GHC == 9.0.2, GHC == 9.2.5  Source-repository head   type:     git@@ -27,7 +27,7 @@   Exposed-modules: Pointfree   Default-language: Haskell2010 -  Build-depends: base >= 4.5 && < 4.16,+  Build-depends: base >= 4.5 && < 4.17,                  array >= 0.3 && < 0.6,                  containers >= 0.4 && < 0.7,                  haskell-src-exts >= 1.20 && < 1.24,@@ -44,7 +44,7 @@   Main-is:       Main.hs   Default-language: Haskell2010   GHC-options:   -W-  Build-depends: base >= 4.5 && < 4.16,+  Build-depends: base >= 4.5 && < 4.17,                  array >= 0.3 && < 0.6,                  containers >= 0.4 && < 0.7,                  haskell-src-exts >= 1.20 && < 1.24,@@ -68,7 +68,7 @@                  Plugin.Pl.Transform    Build-depends:-    base >= 4.5 && < 4.16,+    base >= 4.5 && < 4.17,     array >= 0.3 && < 0.6,     containers >= 0.4 && < 0.7,     haskell-src-exts >= 1.20 && < 1.24,