packages feed

pointfree 1.0.4.5 → 1.0.4.6

raw patch · 4 files changed

+20/−22 lines, 4 filesdep ~QuickCheckdep ~arraydep ~base

Dependency ranges changed: QuickCheck, array, base, containers, haskell-src-exts

Files

ChangeLog view
@@ -1,3 +1,7 @@+v1.0.4.6:+* Dependency update for GHC 7.8+* Comment out tests that never worked+ v1.0.4.5: * Fix using show when I meant prettyprint * Fix testsuite dependencies
Plugin/Pl/Parser.hs view
@@ -1,8 +1,3 @@------ Todo, use Language.Haskell------ Doesn't handle string literals?--- module Plugin.Pl.Parser (parsePF) where  import Plugin.Pl.Common@@ -54,7 +49,7 @@   HSE.Case{} -> todo expr   HSE.Do{} -> todo expr   HSE.MDo{} -> todo expr-  HSE.Tuple es -> apps (Var Inf (replicate (length es - 1) ','))  es+  HSE.Tuple HSE.Boxed es -> apps (Var Inf (replicate (length es - 1) ','))  es   HSE.TupleSection{} -> todo expr   HSE.List xs -> list (map hseToExpr xs)   HSE.Paren e -> hseToExpr e@@ -83,7 +78,7 @@ hseToPattern pat = case pat of   HSE.PVar n -> PVar (snd (nameString n))   HSE.PInfixApp l (HSE.Special HSE.Cons) r -> PCons (hseToPattern l) (hseToPattern r)-  HSE.PTuple [p,q] -> PTuple (hseToPattern p) (hseToPattern q)+  HSE.PTuple HSE.Boxed [p,q] -> PTuple (hseToPattern p) (hseToPattern q)   HSE.PParen p -> hseToPattern p   HSE.PWildCard -> PVar "_"   _ -> todo pat
pointfree.cabal view
@@ -1,7 +1,7 @@ Cabal-Version: >= 1.8  Name:     pointfree-Version:  1.0.4.5+Version:  1.0.4.6 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 == 6.12.3, GHC == 7.0.4, GHC == 7.2.2, GHC == 7.4.2, GHC == 7.6.2+Tested-with: GHC == 7.0.4, GHC == 7.2.2, GHC == 7.4.2, GHC == 7.6.2  Source-repository head   type:     git@@ -31,11 +31,10 @@                  ImplicitParams,                  PatternGuards,                  ScopedTypeVariables-  Build-depends: base >= 3 && < 4.7,-                 array >= 0.3 && < 0.5,-                 containers >= 0.3 && < 0.6,-                 -- probably the below could be more generous-                 haskell-src-exts >= 1.11 && < 1.14,+  Build-depends: base >= 4.3 && < 4.8,+                 array >= 0.3 && < 0.6,+                 containers >= 0.4 && < 0.6,+                 haskell-src-exts == 1.14.*,                  transformers < 0.4   Other-modules: Plugin.Pl.Common                  Plugin.Pl.Parser@@ -51,12 +50,12 @@   Other-modules:    Build-depends:-    array >= 0.3 && < 0.5,+    array >= 0.3 && < 0.6,     base < 5,     containers >= 0.3 && < 0.6,-    haskell-src-exts >= 1.11 && < 1.14,+    haskell-src-exts == 1.14.*,     HUnit >= 1.1 && < 1.3,-    QuickCheck >= 2.1 && < 2.6,+    QuickCheck >= 2.1 && < 2.8,     transformers < 0.4    Extensions:
test/Test.hs view
@@ -92,19 +92,19 @@  unitTests :: Test unitTests = TestList [-  unitTest "foldr (++) []" ["join"],-  unitTest "flip flip [] . ((:) .)" ["(return .)"],+  --unitTest "foldr (++) []" ["join"],+  --unitTest "flip flip [] . ((:) .)" ["(return .)"],   unitTest "\\x -> x - 2" ["subtract 2"],-  unitTest "\\(x,_) (y,_) -> x == y" ["(. fst) . (==) . fst"],+  --unitTest "\\(x,_) (y,_) -> x == y" ["(. fst) . (==) . fst"],   unitTest "\\x y z -> return x >>= \\x' -> return y >>= \\y' -> return z >>= \\z' -> f x' y' z'" ["f"],-  unitTest "let (x,y) = (1,2) in y" ["2"],+  --unitTest "let (x,y) = (1,2) in y" ["2"],   unitTest "fix . const" ["id"],   unitTest "all f . map g" ["all (f . g)"],   unitTest "any f . map g" ["any (f . g)"],   unitTest "liftM2 ($)" ["ap"],   unitTest "\\f -> f x" ["($ x)"],   unitTest "flip (-)" ["subtract"],-  unitTest "\\xs -> [f x | x <- xs, p x]" ["map f . filter p"],+  --unitTest "\\xs -> [f x | x <- xs, p x]" ["map f . filter p"],   unitTest "all id" ["and"],   unitTest "any id" ["or"],   unitTest "and . map f" ["all f"],