packages feed

dump 0.1.1 → 0.1.2

raw patch · 4 files changed

+23/−7 lines, 4 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Debug.Dump: ($>) :: a -> (a -> c) -> c
- Debug.Dump: (.>) :: (a -> b) -> (b -> c) -> a -> c
- Debug.Dump: process :: String -> Q Exp

Files

+ README.md view
@@ -0,0 +1,15 @@+Example usage:++```haskell+{-# LANGUAGE QuasiQuotes #-}++import Debug.Dump++main = print [d|a, a+1, map (+a) [1..3]|]+  where a = 2+```+which prints:++    (a) = 2, (a+1) = 3, (map (+1) [1..3]) = [2,3,4]++
dump.cabal view
@@ -2,9 +2,9 @@ -- see http://haskell.org/cabal/users-guide/  name:               dump-version:            0.1.1+version:            0.1.2 synopsis:           Dumps the names and values of expressions to ease debugging.-description:        Example: `let a=1 in [d|a, a+1|] == "(a) = 1, (a+1) = 2"`+description:        Example: "let a=1 in [d|a, a+1|] == \"(a) = 1, (a+1) = 2\"" license:            MIT license-file:       LICENSE author:             Milán Nagy@@ -12,7 +12,7 @@ copyright:          ©2015 Milán Nagy category:           Development build-type:         Simple--- extra-source-files:+extra-source-files: README.md cabal-version:      >=1.10 homepage:           https://github.com/Wizek/dump 
src/Debug/Dump.hs view
@@ -1,6 +1,6 @@ {-# OPTIONS_GHC -fno-warn-missing-fields #-} -module Debug.Dump where+module Debug.Dump (d, dump) where  import Utils import Data.List@@ -9,9 +9,6 @@ import Language.Haskell.TH.Quote import Language.Haskell.Meta.Parse import Text.InterpolatedString.Perl6--(.>) = flip (.); infixl 9 .>-($>) = flip ($); infixl 0 $>  dump :: QuasiQuoter dump = QuasiQuoter {quoteExp = process}
src/Utils.hs view
@@ -3,6 +3,10 @@ import qualified Data.Text as T import Text.InterpolatedString.Perl6 +(.>) = flip (.); infixl 9 .>+($>) = flip ($); infixl 0 $>++ strip  = T.unpack . T.strip . T.pack  wrapInParens :: String -> String