W3cubDocs

/Haskell 9

Trace.Hpc.Mix

Safe Haskell None
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
Read Mix Source
Instance details

Defined in Trace.Hpc.Mix

Show Mix Source
Instance details

Defined in Trace.Hpc.Mix

Methods

showsPrec :: Int -> Mix -> ShowS

show :: Mix -> String

showList :: [Mix] -> ShowS

Eq Mix Source
Instance details

Defined in Trace.Hpc.Mix

Methods

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

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

type MixEntry = (HpcPos, BoxLabel) Source

data BoxLabel Source

Instances
Instances details
Read BoxLabel Source
Instance details

Defined in Trace.Hpc.Mix

Show BoxLabel Source
Instance details

Defined in Trace.Hpc.Mix

Eq BoxLabel Source
Instance details

Defined in Trace.Hpc.Mix

Methods

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

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

Ord BoxLabel Source
Instance details

Defined in Trace.Hpc.Mix

HpcHash BoxLabel Source
Instance details

Defined in Trace.Hpc.Mix

Methods

toHash :: BoxLabel -> Hash Source

data CondBox Source

Instances
Instances details
Read CondBox Source
Instance details

Defined in Trace.Hpc.Mix

Show CondBox Source
Instance details

Defined in Trace.Hpc.Mix

Methods

showsPrec :: Int -> CondBox -> ShowS

show :: CondBox -> String

showList :: [CondBox] -> ShowS

Eq CondBox Source
Instance details

Defined in Trace.Hpc.Mix

Methods

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

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

Ord CondBox Source
Instance details

Defined in Trace.Hpc.Mix

HpcHash CondBox Source
Instance details

Defined in Trace.Hpc.Mix

Methods

toHash :: CondBox -> Hash Source

mixCreate Source

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 Source

Arguments

:: [FilePath]

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/9.12.1/docs/libraries/hpc-0.7.0.1-78c9/Trace-Hpc-Mix.html