packages feed

TraceUtils 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+13/−4 lines, 2 filesPVP: minor bump suggested

API additions: PVP suggests at least a minor version bump

API changes (from Hackage documentation)

+ Debug.TraceUtils: trace :: String -> a -> a
+ Debug.TraceUtils: tracePrint :: (Show a, Monad m) => a -> m ()
+ Debug.TraceUtils: tracePutStrLn :: Monad m => String -> m ()

Files

TraceUtils.cabal view
@@ -3,7 +3,7 @@ -- http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html#pkg-descr. -- The name of the package. Name:                TraceUtils-Version:             0.1.0.1+Version:             0.1.0.2 Synopsis:            Functions that should have been in Debug.Trace Description:         Functions that should have been in Debug.Trace Homepage:            https://github.com/Peaker/TraceUtils
src/Debug/TraceUtils.hs view
@@ -8,12 +8,21 @@ -- dependency.  module Debug.TraceUtils(-  traceId- ,traceIdVia- ,traceAround+    traceId+  , traceIdVia+  , traceAround+  , tracePutStrLn+  , tracePrint+  , trace ) where  import Debug.Trace(trace)++tracePutStrLn :: Monad m => String -> m ()+tracePutStrLn x = trace x $ return ()++tracePrint :: (Show a, Monad m) => a -> m ()+tracePrint = tracePutStrLn . show  -- | Generate an identity function that has the side-effect of tracing -- the value that passes through it by first processing it and then