pointfree 1.1.1.7 → 1.1.1.8
raw patch · 4 files changed
+19/−7 lines, 4 filesdep ~base
Dependency ranges changed: base
Files
- ChangeLog +4/−0
- Plugin/Pl/Parser.hs +8/−2
- pointfree.cabal +4/−4
- test/Test.hs +3/−1
ChangeLog view
@@ -1,3 +1,7 @@+v1.1.1.8:+* Dependency update for GHC 8.10+* Enable UnicodeSyntax+ v1.1.1.7: * Dependency update for GHC 8.8, HSE 1.23 * Updates to Cabal file to meet new Hackage constraints
Plugin/Pl/Parser.hs view
@@ -84,9 +84,15 @@ HSE.PWildCard _ -> PVar "_" _ -> todo pat +parseMode :: HSE.ParseMode+parseMode =+ HSE.defaultParseMode{+ HSE.extensions = [HSE.EnableExtension HSE.UnicodeSyntax]+ }+ parsePF :: String -> Either String TopLevel-parsePF inp = case HSE.parseExp inp of+parsePF inp = case HSE.parseExpWithMode parseMode inp of HSE.ParseOk e -> Right (TLE (hseToExpr e))- HSE.ParseFailed _ _ -> case HSE.parseDecl inp of+ HSE.ParseFailed _ _ -> case HSE.parseDeclWithMode parseMode inp of HSE.ParseOk d -> Right (TLD True (hseToDecl d)) HSE.ParseFailed _ err -> Left err
pointfree.cabal view
@@ -1,7 +1,7 @@ Cabal-Version: >= 1.10 Name: pointfree-Version: 1.1.1.7+Version: 1.1.1.8 Category: Tool Synopsis: Tool for refactoring expressions into pointfree form @@ -27,7 +27,7 @@ Exposed-modules: Pointfree Default-language: Haskell2010 - Build-depends: base >= 4.5 && < 4.14,+ Build-depends: base >= 4.5 && < 4.15, 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.14,+ Build-depends: base >= 4.5 && < 4.15, 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.14,+ base >= 4.5 && < 4.15, array >= 0.3 && < 0.6, containers >= 0.4 && < 0.7, haskell-src-exts >= 1.20 && < 1.24,
test/Test.hs view
@@ -189,7 +189,9 @@ ["flip (Control.Monad.>>=) . (Control.Applicative.pure .)"], unitTest "\\(x, y) -> z" ["const z"], unitTest "\\(x, y) -> a" ["const a"],- unitTest "\\x -> \\x y -> x" ["const const"]+ unitTest "\\x -> \\x y -> x" ["const const"],+ unitTest "\\x → x" ["id"],+ unitTest "f = \\x → x" ["f = id"] ] main :: IO ()