X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Fmain%2FHscTypes.lhs;h=1101e8627b4388178b2e7654591aa9a4ee95eb9c;hb=38e7ac3ffa32d75c1922e7247a910e06d9957116;hp=c7926e3c236362a76cad8a31b08d86764e6a2c48;hpb=cdce647711c0f46f5799b24de087622cb77e647f;p=ghc-hetmet.git diff --git a/compiler/main/HscTypes.lhs b/compiler/main/HscTypes.lhs index c7926e3..1101e86 100644 --- a/compiler/main/HscTypes.lhs +++ b/compiler/main/HscTypes.lhs @@ -62,7 +62,7 @@ module HscTypes ( HpcInfo, noHpcInfo, -- Breakpoints - ModBreaks (..), emptyModBreaks + ModBreaks (..), BreakIndex, emptyModBreaks ) where #include "HsVersions.h" @@ -1243,18 +1243,22 @@ byteCodeOfObject other = pprPanic "byteCodeOfObject" (ppr other) %************************************************************************ \begin{code} --- all the information about the breakpoints for a given module +type BreakIndex = Int + +-- | all the information about the breakpoints for a given module data ModBreaks = ModBreaks - { modBreaks_array :: BreakArray - -- the array of breakpoint flags indexed by tick number - , modBreaks_ticks :: !(Array Int SrcSpan) + { modBreaks_flags :: BreakArray + -- The array of flags, one per breakpoint, + -- indicating which breakpoints are enabled. + , modBreaks_locs :: !(Array BreakIndex SrcSpan) + -- An array giving the source span of each breakpoint. } emptyModBreaks :: ModBreaks emptyModBreaks = ModBreaks - { modBreaks_array = error "ModBreaks.modBreaks_array not initialised" + { modBreaks_flags = error "ModBreaks.modBreaks_array not initialised" -- Todo: can we avoid this? - , modBreaks_ticks = array (0,-1) [] + , modBreaks_locs = array (0,-1) [] } \end{code}