dev: Hledger.Utils.IO: cleanup
This commit is contained in:
parent
1dabccfb46
commit
5d2259d942
@ -1,12 +1,7 @@
|
|||||||
{- |
|
{- |
|
||||||
Helpers for pretty-printing haskell values, reading command line arguments,
|
General and hledger-specific input/output-related helpers for
|
||||||
working with ANSI colours, files, and time.
|
pretty-printing haskell values, error reporting, time, files, command line parsing,
|
||||||
Uses unsafePerformIO.
|
terminals, pager output, ANSI colour/styles, etc.
|
||||||
|
|
||||||
Limitations:
|
|
||||||
When running in GHCI, this module must be reloaded to see environmental changes.
|
|
||||||
The colour scheme may be somewhat hard-coded.
|
|
||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
{-# LANGUAGE LambdaCase #-}
|
{-# LANGUAGE LambdaCase #-}
|
||||||
@ -158,7 +153,6 @@ prettyopts =
|
|||||||
-- , outputOptionsCompact = True -- fills lines, but does not respect page width (https://github.com/cdepillabout/pretty-simple/issues/126)
|
-- , outputOptionsCompact = True -- fills lines, but does not respect page width (https://github.com/cdepillabout/pretty-simple/issues/126)
|
||||||
-- , outputOptionsPageWidth = fromMaybe 80 $ unsafePerformIO getTerminalWidth
|
-- , outputOptionsPageWidth = fromMaybe 80 $ unsafePerformIO getTerminalWidth
|
||||||
}
|
}
|
||||||
-- XXX unsafe detection of color option for debug output, does not respect config file (perhaps evaluated before withArgs ?)
|
|
||||||
|
|
||||||
-- | pretty-simple options with colour disabled.
|
-- | pretty-simple options with colour disabled.
|
||||||
prettyoptsNoColor =
|
prettyoptsNoColor =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user