Trace.Hpc.Mix

Safe Haskell Safe
Language Haskell98

Description

Datatypes and file-access routines for the per-module (.mix) indexes used by Hpc.

data Mix Source

Mix is the information about a modules static properties, like location of Tix's in a file.

Tab stops are the size of a tab in the provided line:column values.

  • In GHC, this is 1 (a tab is just a character)
  • With hpc-tracer, this is 8 (a tab represents several spaces).

Constructors

Mix FilePath UTCTime Hash Int [MixEntry]
Instances
Instances details
Eq Mix
Instance details

Defined in Trace.Hpc.Mix

Methods

(==) :: Mix -> Mix -> Bool

(/=) :: Mix -> Mix -> Bool

Read Mix
Instance details

Defined in Trace.Hpc.Mix

Show Mix
Instance details

Defined in Trace.Hpc.Mix

Methods

showsPrec :: Int -> Mix -> ShowS Source

show :: Mix -> String Source

showList :: [Mix] -> ShowS Source

type MixEntry = (HpcPos, BoxLabel) Source

data BoxLabel Source

Instances
Instances details
Eq BoxLabel
Instance details

Defined in Trace.Hpc.Mix

Methods

(==) :: BoxLabel -> BoxLabel -> Bool

(/=) :: BoxLabel -> BoxLabel -> Bool

Ord BoxLabel
Instance details

Defined in Trace.Hpc.Mix

Read BoxLabel
Instance details

Defined in Trace.Hpc.Mix

Show BoxLabel
Instance details

Defined in Trace.Hpc.Mix

HpcHash BoxLabel
Instance details

Defined in Trace.Hpc.Mix

Methods

toHash :: BoxLabel -> Hash Source

data CondBox Source

Instances
Instances details
Eq CondBox
Instance details

Defined in Trace.Hpc.Mix

Methods

(==) :: CondBox -> CondBox -> Bool

(/=) :: CondBox -> CondBox -> Bool

Ord CondBox
Instance details

Defined in Trace.Hpc.Mix

Read CondBox
Instance details

Defined in Trace.Hpc.Mix

Show CondBox
Instance details

Defined in Trace.Hpc.Mix

HpcHash CondBox
Instance details

Defined in Trace.Hpc.Mix

Methods

toHash :: CondBox -> Hash Source

mixCreate Source

Arguments

:: String

Dir Name

-> String

module Name

-> Mix

Mix DataStructure

-> IO ()

Create is mix file.

readMix Source

Arguments

:: [String]

Dir Names

-> Either String TixModule

module wanted

-> IO Mix

Read a mix file.

createMixEntryDom :: Show a => [(HpcPos, a)] -> [MixEntryDom [a]] Source

type MixEntryDom a = Tree (HpcPos, a) Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/hpc-0.6.1.0/Trace-Hpc-Mix.html