HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulebreakpoint-0.1.4.0Haskell2010

Debug.Breakpoint

  • 17 values

Plugin

1 declaration

API

7 declarations
valuebreakpoint :: a -> a
#

Sets a breakpoint in pure code

valuequeryVars :: a -> a
#

When evaluated, displays the names of variables visible from the callsite and starts a prompt where entering a variable will display its value. You may want to use this instead of breakpoint if there are value which should stay unevaluated or you are only interested in certain values. Only the current thread is blocked while the prompt is active. To resume execution, press enter with a blank prompt.

valueexcludeVars :: [String] -> a -> a
#

Excludes the given variable names from appearing in the output of any breakpoints occurring in the given expression.

Internals

10 declarations

Constructs a lazy Map from the names of all visible variables at the call site to a string representation of their value. Does not include any variables whose definitions contain it. Be careful not to assign multiple variables to captureVars in the same scope as this will result in an infinite recursion.

valuegetSrcLoc :: String
#

Pretty prints the source code location of its call site