HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulehpc-0.7.0.2Haskell98

Trace.Hpc.Mix

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

  • 5 types
  • 3 values
  • Packagehpc-0.7.0.2
  • Exports8
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceMix.hs
datadata 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).

Instances3Eq, Read, Show
  • Eq MixDefined in hpc-0.7.0.2 · Trace.Hpc.Mix
  • Read MixDefined in hpc-0.7.0.2 · Trace.Hpc.Mix
  • Show MixDefined in hpc-0.7.0.2 · Trace.Hpc.Mix
valuemixCreate
  1. :: FilePath

    Name of the target directory.

  2. -> String

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

  3. -> Mix

    The Mix data structure.

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