drop data-pprint for now, does not support ghc 7.8
The data-pprint and pretty-show packages used for debugging tend to be poorly supported, drop one of them for now.
This commit is contained in:
parent
7d36789b74
commit
59cbc230d8
@ -21,7 +21,7 @@ module Hledger.Utils (---- provide these frequently used modules - or not, for c
|
|||||||
---- all of this one:
|
---- all of this one:
|
||||||
module Hledger.Utils,
|
module Hledger.Utils,
|
||||||
Debug.Trace.trace,
|
Debug.Trace.trace,
|
||||||
module Data.PPrint,
|
-- module Data.PPrint,
|
||||||
-- module Hledger.Utils.UTF8IOCompat
|
-- module Hledger.Utils.UTF8IOCompat
|
||||||
SystemString,fromSystemString,toSystemString,error',userError',
|
SystemString,fromSystemString,toSystemString,error',userError',
|
||||||
ppShow
|
ppShow
|
||||||
@ -36,7 +36,7 @@ import Data.Data
|
|||||||
import Data.List
|
import Data.List
|
||||||
import qualified Data.Map as M
|
import qualified Data.Map as M
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Data.PPrint
|
-- import Data.PPrint
|
||||||
import Data.Time.Clock
|
import Data.Time.Clock
|
||||||
import Data.Time.LocalTime
|
import Data.Time.LocalTime
|
||||||
import Data.Tree
|
import Data.Tree
|
||||||
@ -418,18 +418,18 @@ dbgppshow level
|
|||||||
| debugLevel >= level = \s -> traceWith (((s++": ")++) . ppShow)
|
| debugLevel >= level = \s -> traceWith (((s++": ")++) . ppShow)
|
||||||
| otherwise = flip const
|
| otherwise = flip const
|
||||||
|
|
||||||
-- | Print a showable value to the console, with a message, if the
|
-- -- | Print a showable value to the console, with a message, if the
|
||||||
-- debug level is at or above the specified level (uses
|
-- -- debug level is at or above the specified level (uses
|
||||||
-- unsafePerformIO).
|
-- -- unsafePerformIO).
|
||||||
-- Values are displayed with pprint. Field names are not shown, but the
|
-- -- Values are displayed with pprint. Field names are not shown, but the
|
||||||
-- output is compact with smart line wrapping, long data elided,
|
-- -- output is compact with smart line wrapping, long data elided,
|
||||||
-- and slow calculations timed out.
|
-- -- and slow calculations timed out.
|
||||||
dbgpprint :: Data a => Int -> String -> a -> a
|
-- dbgpprint :: Data a => Int -> String -> a -> a
|
||||||
dbgpprint level msg a
|
-- dbgpprint level msg a
|
||||||
| debugLevel >= level = unsafePerformIO $ do
|
-- | debugLevel >= level = unsafePerformIO $ do
|
||||||
pprint a >>= putStrLn . ((msg++": \n") ++) . show
|
-- pprint a >>= putStrLn . ((msg++": \n") ++) . show
|
||||||
return a
|
-- return a
|
||||||
| otherwise = a
|
-- | otherwise = a
|
||||||
|
|
||||||
|
|
||||||
-- | Like dbg, then exit the program. Uses unsafePerformIO.
|
-- | Like dbg, then exit the program. Uses unsafePerformIO.
|
||||||
|
|||||||
@ -60,7 +60,7 @@ library
|
|||||||
,cmdargs >= 0.10 && < 0.11
|
,cmdargs >= 0.10 && < 0.11
|
||||||
,containers
|
,containers
|
||||||
,csv
|
,csv
|
||||||
,data-pprint >= 0.2.3 && < 0.3
|
-- ,data-pprint >= 0.2.3 && < 0.3
|
||||||
,directory
|
,directory
|
||||||
,filepath
|
,filepath
|
||||||
,mtl
|
,mtl
|
||||||
@ -91,7 +91,7 @@ test-suite tests
|
|||||||
, cmdargs
|
, cmdargs
|
||||||
, containers
|
, containers
|
||||||
, csv
|
, csv
|
||||||
, data-pprint >= 0.2.3 && < 0.3
|
-- , data-pprint >= 0.2.3 && < 0.3
|
||||||
, directory
|
, directory
|
||||||
, filepath
|
, filepath
|
||||||
, HUnit
|
, HUnit
|
||||||
|
|||||||
@ -67,7 +67,7 @@ library
|
|||||||
-- ,cabal-file-th
|
-- ,cabal-file-th
|
||||||
,containers
|
,containers
|
||||||
,cmdargs >= 0.10 && < 0.11
|
,cmdargs >= 0.10 && < 0.11
|
||||||
,data-pprint >= 0.2.1 && < 0.3
|
-- ,data-pprint >= 0.2.1 && < 0.3
|
||||||
,directory
|
,directory
|
||||||
,filepath
|
,filepath
|
||||||
,haskeline >= 0.6 && <= 0.8
|
,haskeline >= 0.6 && <= 0.8
|
||||||
@ -124,7 +124,7 @@ executable hledger
|
|||||||
,base >= 4.3 && < 5
|
,base >= 4.3 && < 5
|
||||||
,containers
|
,containers
|
||||||
,cmdargs >= 0.10 && < 0.11
|
,cmdargs >= 0.10 && < 0.11
|
||||||
,data-pprint >= 0.2.1 && < 0.3
|
-- ,data-pprint >= 0.2.1 && < 0.3
|
||||||
,directory
|
,directory
|
||||||
,filepath
|
,filepath
|
||||||
,haskeline >= 0.6 && <= 0.8
|
,haskeline >= 0.6 && <= 0.8
|
||||||
@ -155,7 +155,7 @@ test-suite tests
|
|||||||
, cmdargs
|
, cmdargs
|
||||||
, containers
|
, containers
|
||||||
, csv
|
, csv
|
||||||
, data-pprint >= 0.2.1 && < 0.3
|
-- , data-pprint >= 0.2.1 && < 0.3
|
||||||
, directory
|
, directory
|
||||||
, filepath
|
, filepath
|
||||||
, haskeline
|
, haskeline
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user