dev: lib: Hledger.Utils.Print -> Hledger.Utils.IO
This commit is contained in:
parent
6fcd85aac3
commit
fc8aa5253a
@ -76,7 +76,7 @@ module Hledger.Utils (
|
||||
-- * Other
|
||||
module Hledger.Utils.Debug,
|
||||
module Hledger.Utils.Parse,
|
||||
module Hledger.Utils.Print,
|
||||
module Hledger.Utils.IO,
|
||||
module Hledger.Utils.Regex,
|
||||
module Hledger.Utils.String,
|
||||
module Hledger.Utils.Text,
|
||||
@ -112,7 +112,7 @@ import System.IO
|
||||
|
||||
import Hledger.Utils.Debug
|
||||
import Hledger.Utils.Parse
|
||||
import Hledger.Utils.Print
|
||||
import Hledger.Utils.IO
|
||||
import Hledger.Utils.Regex
|
||||
import Hledger.Utils.String
|
||||
import Hledger.Utils.Text
|
||||
|
||||
@ -146,7 +146,7 @@ import System.Environment (getProgName)
|
||||
import System.Exit (exitFailure)
|
||||
import System.IO.Unsafe (unsafePerformIO)
|
||||
|
||||
import Hledger.Utils.Print (progArgs, pshow, pshow')
|
||||
import Hledger.Utils.IO (progArgs, pshow, pshow')
|
||||
|
||||
-- | The program name as returned by @getProgName@.
|
||||
-- It's best to set this explicitly at program startup with @withProgName@,
|
||||
|
||||
@ -1,16 +1,15 @@
|
||||
{- |
|
||||
Helpers for pretty-formatting haskell values, pretty-printing to console,
|
||||
deciding if ANSI colour should be used, and detecting an -o/--output-file option.
|
||||
Uses unsafePerformIO for simple program-wide read-only access to some common
|
||||
command-line flags/environment variables.
|
||||
Uses unsafePerformIO.
|
||||
|
||||
Limitations:
|
||||
When running in GHCI, this module must be reloaded to see a change (because of unsafePerformIO).
|
||||
When running in GHCI, this module must be reloaded to see environmental changes.
|
||||
The colour scheme may be somewhat hard-coded.
|
||||
|
||||
-}
|
||||
|
||||
module Hledger.Utils.Print (
|
||||
module Hledger.Utils.IO (
|
||||
-- * Pretty showing as a string
|
||||
pshow
|
||||
,pshow'
|
||||
@ -38,7 +38,7 @@ import Text.Megaparsec.Custom
|
||||
finalErrorBundlePretty,
|
||||
)
|
||||
|
||||
import Hledger.Utils.Print (pshow)
|
||||
import Hledger.Utils.IO (pshow)
|
||||
|
||||
-- * tasty helpers
|
||||
|
||||
|
||||
@ -83,8 +83,8 @@ library
|
||||
Hledger.Reports.PostingsReport
|
||||
Hledger.Utils
|
||||
Hledger.Utils.Debug
|
||||
Hledger.Utils.IO
|
||||
Hledger.Utils.Parse
|
||||
Hledger.Utils.Print
|
||||
Hledger.Utils.Regex
|
||||
Hledger.Utils.String
|
||||
Hledger.Utils.Test
|
||||
|
||||
@ -137,8 +137,8 @@ library:
|
||||
- Hledger.Reports.PostingsReport
|
||||
- Hledger.Utils
|
||||
- Hledger.Utils.Debug
|
||||
- Hledger.Utils.IO
|
||||
- Hledger.Utils.Parse
|
||||
- Hledger.Utils.Print
|
||||
- Hledger.Utils.Regex
|
||||
- Hledger.Utils.String
|
||||
- Hledger.Utils.Test
|
||||
|
||||
Loading…
Reference in New Issue
Block a user