Safe Haskell | None |
---|---|
Language | Haskell2010 |
GHC.Debugger.Runtime
Synopsis
- obtainTerm :: TermKey -> Debugger Term
- expandTerm :: HscEnv -> Term -> IO Term
- isBoringTy :: Type -> Bool
Documentation
expandTerm :: HscEnv -> Term -> IO Term Source #
Before returning a Term
we want to expand its heap representation up to the defaultDepth
For Id
s, this is done by obtainTermFromId
. For other TermKey
s this function should be used
isBoringTy :: Type -> Bool Source #
A boring type is one for which we don't care about the structure and would rather see "whole" when being inspected. Strings and literals are a good example, because it's more useful to see the string value than it is to see a linked list of characters where each has to be forced individually.