mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 02:08:01 +03:00
lib: Debug: breakpoint doesn't support windows yet, drop for now
This commit is contained in:
parent
8fddc1e528
commit
fa8f6ae302
@ -10,8 +10,6 @@ Here are fancier versions of Debug.Trace, with these features:
|
|||||||
- sending debug output to stderr or to a log file
|
- sending debug output to stderr or to a log file
|
||||||
- enabling logging based on program name
|
- enabling logging based on program name
|
||||||
|
|
||||||
This module also exports Debug.Trace and the breakpoint package's Debug.Breakpoint.
|
|
||||||
|
|
||||||
The basic "trace" functions print to stderr.
|
The basic "trace" functions print to stderr.
|
||||||
This debug output will be interleaved with the program's normal output, which can be
|
This debug output will be interleaved with the program's normal output, which can be
|
||||||
useful for understanding when code executes.
|
useful for understanding when code executes.
|
||||||
@ -68,6 +66,9 @@ Debug level: What to show:
|
|||||||
|
|
||||||
-}
|
-}
|
||||||
|
|
||||||
|
-- Disabled until 0.1.2.0 is released with windows support
|
||||||
|
-- This module also exports Debug.Trace and the breakpoint package's Debug.Breakpoint.
|
||||||
|
|
||||||
-- more:
|
-- more:
|
||||||
-- http://hackage.haskell.org/packages/archive/TraceUtils/0.1.0.2/doc/html/Debug-TraceUtils.html
|
-- http://hackage.haskell.org/packages/archive/TraceUtils/0.1.0.2/doc/html/Debug-TraceUtils.html
|
||||||
-- http://hackage.haskell.org/packages/archive/trace-call/0.1/doc/html/Debug-TraceCall.html
|
-- http://hackage.haskell.org/packages/archive/trace-call/0.1/doc/html/Debug-TraceCall.html
|
||||||
@ -142,7 +143,7 @@ module Hledger.Utils.Debug (
|
|||||||
,dbg9With
|
,dbg9With
|
||||||
|
|
||||||
-- * Re-exports
|
-- * Re-exports
|
||||||
,module Debug.Breakpoint
|
-- ,module Debug.Breakpoint
|
||||||
,module Debug.Trace
|
,module Debug.Trace
|
||||||
|
|
||||||
)
|
)
|
||||||
@ -152,7 +153,7 @@ import Control.DeepSeq (force)
|
|||||||
import Control.Exception (evaluate)
|
import Control.Exception (evaluate)
|
||||||
import Control.Monad.IO.Class (MonadIO, liftIO)
|
import Control.Monad.IO.Class (MonadIO, liftIO)
|
||||||
import Data.List hiding (uncons)
|
import Data.List hiding (uncons)
|
||||||
import Debug.Breakpoint
|
-- import Debug.Breakpoint
|
||||||
import Debug.Trace (trace, traceIO, traceShowId)
|
import Debug.Trace (trace, traceIO, traceShowId)
|
||||||
import Safe (readDef)
|
import Safe (readDef)
|
||||||
import System.Environment (getProgName)
|
import System.Environment (getProgName)
|
||||||
|
@ -38,7 +38,7 @@ dependencies:
|
|||||||
- ansi-terminal >=0.9
|
- ansi-terminal >=0.9
|
||||||
- array
|
- array
|
||||||
- blaze-markup >=0.5.1
|
- blaze-markup >=0.5.1
|
||||||
- breakpoint
|
# - breakpoint >=0.1.2.0
|
||||||
- bytestring
|
- bytestring
|
||||||
- call-stack
|
- call-stack
|
||||||
- cmdargs >=0.10
|
- cmdargs >=0.10
|
||||||
|
@ -54,7 +54,7 @@ dependencies:
|
|||||||
- hledger >=1.27.99 && <1.28
|
- hledger >=1.27.99 && <1.28
|
||||||
- ansi-terminal >=0.9
|
- ansi-terminal >=0.9
|
||||||
- async
|
- async
|
||||||
- breakpoint
|
# - breakpoint >=0.1.2.0
|
||||||
- cmdargs >=0.8
|
- cmdargs >=0.8
|
||||||
- containers >=0.5.9
|
- containers >=0.5.9
|
||||||
- data-default
|
- data-default
|
||||||
|
@ -79,7 +79,7 @@ when:
|
|||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- base >=4.14 && <4.18
|
- base >=4.14 && <4.18
|
||||||
- breakpoint
|
# - breakpoint >=0.1.2.0
|
||||||
|
|
||||||
library:
|
library:
|
||||||
source-dirs: .
|
source-dirs: .
|
||||||
|
@ -100,7 +100,7 @@ dependencies:
|
|||||||
- hledger-lib >=1.27.99 && <1.28
|
- hledger-lib >=1.27.99 && <1.28
|
||||||
- aeson >=1
|
- aeson >=1
|
||||||
- ansi-terminal >=0.9
|
- ansi-terminal >=0.9
|
||||||
- breakpoint
|
# - breakpoint >=0.1.2.0
|
||||||
- bytestring
|
- bytestring
|
||||||
- cmdargs >=0.10
|
- cmdargs >=0.10
|
||||||
- containers >=0.5.9
|
- containers >=0.5.9
|
||||||
|
@ -10,6 +10,7 @@ packages:
|
|||||||
|
|
||||||
extra-deps:
|
extra-deps:
|
||||||
# for hledger-lib:
|
# for hledger-lib:
|
||||||
|
# - breakpoint-0.1.2.0
|
||||||
# for hledger:
|
# for hledger:
|
||||||
# for hledger-ui:
|
# for hledger-ui:
|
||||||
- brick-1.5
|
- brick-1.5
|
||||||
@ -21,8 +22,8 @@ nix:
|
|||||||
pure: false
|
pure: false
|
||||||
packages: [perl gmp ncurses zlib]
|
packages: [perl gmp ncurses zlib]
|
||||||
|
|
||||||
ghc-options:
|
# ghc-options:
|
||||||
"$locals": -fplugin Debug.Breakpoint
|
# "$locals": -fplugin Debug.Breakpoint
|
||||||
|
|
||||||
# # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
# # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
||||||
# # apply-ghc-options: everything
|
# # apply-ghc-options: everything
|
||||||
|
@ -14,7 +14,7 @@ packages:
|
|||||||
|
|
||||||
extra-deps:
|
extra-deps:
|
||||||
# for hledger-lib:
|
# for hledger-lib:
|
||||||
- breakpoint-0.1.0.0
|
# - breakpoint-0.1.2.0
|
||||||
- doctest-0.20.0
|
- doctest-0.20.0
|
||||||
# for hledger:
|
# for hledger:
|
||||||
# for hledger-ui:
|
# for hledger-ui:
|
||||||
@ -26,8 +26,8 @@ extra-deps:
|
|||||||
# for hledger-web:
|
# for hledger-web:
|
||||||
# for Shake.hs:
|
# for Shake.hs:
|
||||||
|
|
||||||
ghc-options:
|
# ghc-options:
|
||||||
"$locals": -fplugin Debug.Breakpoint
|
# "$locals": -fplugin Debug.Breakpoint
|
||||||
|
|
||||||
# for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
# for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
||||||
# apply-ghc-options: everything
|
# apply-ghc-options: everything
|
||||||
|
@ -18,7 +18,7 @@ packages:
|
|||||||
|
|
||||||
extra-deps:
|
extra-deps:
|
||||||
# for hledger-lib:
|
# for hledger-lib:
|
||||||
- breakpoint-0.1.0.0
|
# - breakpoint-0.1.2.0
|
||||||
# for hledger:
|
# for hledger:
|
||||||
# for hledger-ui:
|
# for hledger-ui:
|
||||||
- brick-1.5
|
- brick-1.5
|
||||||
@ -29,8 +29,8 @@ extra-deps:
|
|||||||
# for hledger-web:
|
# for hledger-web:
|
||||||
# for Shake.hs:
|
# for Shake.hs:
|
||||||
|
|
||||||
ghc-options:
|
# ghc-options:
|
||||||
"$locals": -fplugin Debug.Breakpoint
|
# "$locals": -fplugin Debug.Breakpoint
|
||||||
|
|
||||||
# for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
# for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
||||||
# apply-ghc-options: everything
|
# apply-ghc-options: everything
|
||||||
|
@ -10,6 +10,7 @@ packages:
|
|||||||
|
|
||||||
extra-deps:
|
extra-deps:
|
||||||
# for hledger-lib:
|
# for hledger-lib:
|
||||||
|
# - breakpoint-0.1.2.0
|
||||||
# for hledger:
|
# for hledger:
|
||||||
# for hledger-ui:
|
# for hledger-ui:
|
||||||
# for hledger-web:
|
# for hledger-web:
|
||||||
@ -24,8 +25,8 @@ nix:
|
|||||||
pure: false
|
pure: false
|
||||||
packages: [perl gmp ncurses zlib]
|
packages: [perl gmp ncurses zlib]
|
||||||
|
|
||||||
ghc-options:
|
# ghc-options:
|
||||||
"$locals": -fplugin Debug.Breakpoint
|
# "$locals": -fplugin Debug.Breakpoint
|
||||||
|
|
||||||
# # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
# # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
|
||||||
# # apply-ghc-options: everything
|
# # apply-ghc-options: everything
|
||||||
|
Loading…
Reference in New Issue
Block a user