Safe Haskell | None |
---|---|
Language | Haskell98 |
Datatypes and file-access routines for the per-module (.mix
)
indexes used by Hpc.
Synopsis
- data Mix = Mix FilePath UTCTime Hash Int [MixEntry]
- type MixEntry = (HpcPos, BoxLabel)
- data BoxLabel
- data CondBox
- mixCreate :: FilePath -> String -> Mix -> IO ()
- readMix :: [FilePath] -> Either String TixModule -> IO Mix
- createMixEntryDom :: Show a => [(HpcPos, a)] -> [MixEntryDom [a]]
- type MixEntryDom a = Tree (HpcPos, a)
Documentation
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).
:: 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
Read a mix file.
createMixEntryDom :: Show a => [(HpcPos, a)] -> [MixEntryDom [a]] Source #
type MixEntryDom a = Tree (HpcPos, a) Source #