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

Trace.Hpc.Tix

Description

Datatypes and file-access routines for the tick data file (.tix) used by Hpc.

Synopsis

Documentation

data Tix #

Tix is the storage format for our dynamic information about what boxes are ticked.

Constructors

Tix [TixModule] 

Instances

Instances details
NFData Tix #

Since: hpc-0.6.2.0

Instance details

Defined in Trace.Hpc.Tix

Methods

rnf :: Tix -> () Source #

Eq Tix # 
Instance details

Defined in Trace.Hpc.Tix

Methods

(==) :: Tix -> Tix -> Bool #

(/=) :: Tix -> Tix -> Bool #

Generic Tix # 
Instance details

Defined in Trace.Hpc.Tix

Associated Types

type Rep Tix

Since: hpc-0.6.2.0

Instance details

Defined in Trace.Hpc.Tix

type Rep Tix = D1 ('MetaData "Tix" "Trace.Hpc.Tix" "hpc-0.7.0.2-7eca" 'False) (C1 ('MetaCons "Tix" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TixModule])))

Methods

from :: Tix -> Rep Tix x #

to :: Rep Tix x -> Tix #

Read Tix # 
Instance details

Defined in Trace.Hpc.Tix

Show Tix # 
Instance details

Defined in Trace.Hpc.Tix

Methods

showsPrec :: Int -> Tix -> ShowS #

show :: Tix -> String #

showList :: [Tix] -> ShowS #

type Rep Tix #

Since: hpc-0.6.2.0

Instance details

Defined in Trace.Hpc.Tix

type Rep Tix = D1 ('MetaData "Tix" "Trace.Hpc.Tix" "hpc-0.7.0.2-7eca" 'False) (C1 ('MetaCons "Tix" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TixModule])))

data TixModule #

Constructors

TixModule String Hash Int [Integer] 

Instances

Instances details
NFData TixModule #

Since: hpc-0.6.2.0

Instance details

Defined in Trace.Hpc.Tix

Methods

rnf :: TixModule -> () Source #

Eq TixModule # 
Instance details

Defined in Trace.Hpc.Tix

Generic TixModule # 
Instance details

Defined in Trace.Hpc.Tix

Read TixModule # 
Instance details

Defined in Trace.Hpc.Tix

Show TixModule # 
Instance details

Defined in Trace.Hpc.Tix

type Rep TixModule #

Since: hpc-0.6.2.0

Instance details

Defined in Trace.Hpc.Tix

readTix :: FilePath -> IO (Maybe Tix) #

Read a .tix File.

writeTix :: FilePath -> Tix -> IO () #

Write a .tix File.

getTixFileName :: FilePath -> FilePath #

getTixFullName takes a binary or .tix-file name, and normalizes it into a .tix-file name.

getTixFileName "example.hs" == "example.tix"
getTixFileName "example.tar.gz" == "example.tar.tix"
getTixFileName "example.tix" == "example.tix"