packages feed

lambdabot-haskell-plugins 5.0 → 5.0.1

raw patch · 3 files changed

+24/−9 lines, 3 filesdep ~lambdabot-coredep ~lambdabot-reference-pluginsPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: lambdabot-core, lambdabot-reference-plugins

API changes (from Hackage documentation)

Files

lambdabot-haskell-plugins.cabal view
@@ -1,5 +1,5 @@ name:                   lambdabot-haskell-plugins-version:                5.0+version:                5.0.1  license:                GPL license-file:           LICENSE@@ -15,18 +15,31 @@                         Provided plugins:                         .                         [check] Quick, check!+                        .                         [djinn] Derive implementations from types intuitinistically.+                        .                         [eval] Run Haskell code.+                        .                         [free] Theorems for free.+                        .                         [haddock] Find modules implementing a function.+                        .                         [hoogle] Search for functions by type using hoogle.+                        .                         [instances] Query instances of type classes.+                        .                         [pl] Produce point-less code.+                        .                         [pointful] Produce point-ful code.+                        .                         [pretty] Print code prettily.+                        .                         [source] Show implementations of standard functions.+                        .                         [type] Query type of expressions.+                        .                         [undo] Unfold do notation.+                        .                         [unmtl] Expand monad transformers stacks.  homepage:               http://haskell.org/haskellwiki/Lambdabot@@ -86,8 +99,8 @@                         directory               >= 1.1,                         filepath                >= 1.3,                         haskell-src-exts        >= 1.16.0,-                        lambdabot-core          >= 5 && < 5.1,-                        lambdabot-reference-plugins >= 5 && < 5.1,+                        lambdabot-core          >= 5.0.1 && < 5.1,+                        lambdabot-reference-plugins >= 5.0.1 && < 5.1,                         lifted-base             >= 0.2,                         mtl                     >= 2,                         oeis                    >= 0.3.1,
src/Lambdabot/Plugin/Haskell/Eval.hs view
@@ -81,8 +81,8 @@     case (out,err) of         ([],[]) -> return "Terminated\n"         _       -> do-            let o = munge out-                e = munge err+            let o = mungeEnc out+                e = mungeEnc err             return $ case () of {_                 | null o && null e -> "Terminated\n"                 | null o           -> e@@ -163,7 +163,7 @@                     io (removeFile ".L.hs")                     return "Error."                 | otherwise -> do-                    l <- lb (findOrCreateLBFile "L.hs")+                    l <- lb (findLBFileForWriting "L.hs")                     io (renameFile ".L.hs" l)                     return "Defined."         (ee,[]) -> return ee@@ -203,6 +203,8 @@  reset :: MonadLB m => m () reset = do-    l <- lb (findOrCreateLBFile "L.hs")+    -- Note: We use `findOrCreateLBFile` instead of `findLBFileForReading`+    -- here to make @Pristine.hs@ easier to find.     p <- lb (findOrCreateLBFile "Pristine.hs")+    l <- lb (findLBFileForWriting "L.hs")     io (copyFile p l)
src/Lambdabot/Plugin/Haskell/Instances.hs view
@@ -134,9 +134,9 @@ --   the parser. fetchInstances' :: MonadLB m => String -> [ModuleName] -> m String fetchInstances' cls mdls = do-    stateDir <- getConfig outputDir+    load <- lb $ findOrCreateLBFile "L.hs"     let s = unlines $ map unwords-            [ [":l", show (stateDir </> "L")]+            [ [":l", load]             ,  ":m" : "+" : mdls             , [":i", cls]             ]