hpc-0.7.0.2: Code Coverage Library for Haskell
Safe HaskellNone
LanguageHaskell98

Trace.Hpc.Mix

Description

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

Synopsis

Documentation

data Mix #

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).

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 #

show :: Mix -> String #

showList :: [Mix] -> ShowS #

data BoxLabel #

Instances

Instances details
Eq BoxLabel # 
Instance details

Defined in Trace.Hpc.Mix

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 #

data CondBox #

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 #

mixCreate #

Arguments

:: FilePath

Name of the target directory.

-> String

Name of the module for which the mix file is created.

-> Mix

The Mix data structure.

-> IO () 

Write a mix file to disk.

The following command creates the mix file under the location "/home/user/main/Main.mix"

mixCreate "/home/user/main" "Main" mix

readMix #

Arguments

:: [FilePath]

Dir Names

-> Either String TixModule

module wanted

-> IO Mix 

Read a mix file.

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

type MixEntryDom a = Tree (HpcPos, a) #