Skip to content

Commit

Permalink
lib: Debug: breakpoint doesn't support windows yet, drop for now
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Dec 1, 2022
1 parent 4ddb933 commit d78c5d3
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 18 deletions.
9 changes: 5 additions & 4 deletions hledger-lib/Hledger/Utils/Debug.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ Here are fancier versions of Debug.Trace, with these features:
- sending debug output to stderr or to a log file
- 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.
This debug output will be interleaved with the program's normal output, which can be
useful for understanding when code executes.
Expand Down Expand Up @@ -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:
-- 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
Expand Down Expand Up @@ -142,7 +143,7 @@ module Hledger.Utils.Debug (
,dbg9With

-- * Re-exports
,module Debug.Breakpoint
-- ,module Debug.Breakpoint
,module Debug.Trace

)
Expand All @@ -152,7 +153,7 @@ import Control.DeepSeq (force)
import Control.Exception (evaluate)
import Control.Monad.IO.Class (MonadIO, liftIO)
import Data.List hiding (uncons)
import Debug.Breakpoint
-- import Debug.Breakpoint
import Debug.Trace (trace, traceIO, traceShowId)
import Safe (readDef)
import System.Environment (getProgName)
Expand Down
2 changes: 1 addition & 1 deletion hledger-lib/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies:
- ansi-terminal >=0.9
- array
- blaze-markup >=0.5.1
- breakpoint
# - breakpoint >=0.1.2.0
- bytestring
- call-stack
- cmdargs >=0.10
Expand Down
2 changes: 1 addition & 1 deletion hledger-ui/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies:
- hledger >=1.28 && <1.29
- ansi-terminal >=0.9
- async
- breakpoint
# - breakpoint >=0.1.2.0
- cmdargs >=0.8
- containers >=0.5.9
- data-default
Expand Down
2 changes: 1 addition & 1 deletion hledger-web/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ when:

dependencies:
- base >=4.14 && <4.18
- breakpoint
# - breakpoint >=0.1.2.0

library:
source-dirs: .
Expand Down
2 changes: 1 addition & 1 deletion hledger/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ dependencies:
- hledger-lib >=1.28 && <1.29
- aeson >=1
- ansi-terminal >=0.9
- breakpoint
# - breakpoint >=0.1.2.0
- bytestring
- cmdargs >=0.10
- containers >=0.5.9
Expand Down
5 changes: 3 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ packages:

extra-deps:
# for hledger-lib:
# - breakpoint-0.1.2.0
# for hledger:
# for hledger-ui:
- brick-1.5
Expand All @@ -21,8 +22,8 @@ nix:
pure: false
packages: [perl gmp ncurses zlib]

ghc-options:
"$locals": -fplugin Debug.Breakpoint
# ghc-options:
# "$locals": -fplugin Debug.Breakpoint

# # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
# # apply-ghc-options: everything
Expand Down
6 changes: 3 additions & 3 deletions stack8.10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ packages:

extra-deps:
# for hledger-lib:
- breakpoint-0.1.0.0
# - breakpoint-0.1.2.0
- doctest-0.20.0
# for hledger:
# for hledger-ui:
Expand All @@ -26,8 +26,8 @@ extra-deps:
# for hledger-web:
# for Shake.hs:

ghc-options:
"$locals": -fplugin Debug.Breakpoint
# ghc-options:
# "$locals": -fplugin Debug.Breakpoint

# for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
# apply-ghc-options: everything
Expand Down
6 changes: 3 additions & 3 deletions stack9.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ packages:

extra-deps:
# for hledger-lib:
- breakpoint-0.1.0.0
# - breakpoint-0.1.2.0
# for hledger:
# for hledger-ui:
- brick-1.5
Expand All @@ -29,8 +29,8 @@ extra-deps:
# for hledger-web:
# for Shake.hs:

ghc-options:
"$locals": -fplugin Debug.Breakpoint
# ghc-options:
# "$locals": -fplugin Debug.Breakpoint

# for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
# apply-ghc-options: everything
Expand Down
5 changes: 3 additions & 2 deletions stack9.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ packages:

extra-deps:
# for hledger-lib:
# - breakpoint-0.1.2.0
# for hledger:
# for hledger-ui:
# for hledger-web:
Expand All @@ -24,8 +25,8 @@ nix:
pure: false
packages: [perl gmp ncurses zlib]

ghc-options:
"$locals": -fplugin Debug.Breakpoint
# ghc-options:
# "$locals": -fplugin Debug.Breakpoint

# # for precise profiling, per https://www.tweag.io/posts/2020-01-30-haskell-profiling.html:
# # apply-ghc-options: everything
Expand Down

0 comments on commit d78c5d3

Please sign in to comment.