hpc-0.6.2.0: Code Coverage Library for Haskell

Safe Haskell | Safe
Language | Haskell98

Trace.Hpc.Tix

Description

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

Synopsis

- data Tix = Tix [TixModule]
- data TixModule = TixModule String Hash Int [Integer]
- tixModuleName :: TixModule -> String
- tixModuleHash :: TixModule -> Hash
- tixModuleTixs :: TixModule -> [Integer]
- readTix :: String -> IO (Maybe Tix)
- writeTix :: String -> Tix -> IO ()
- getTixFileName :: String -> String

# Documentation

data Tix Source #

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

Constructors

Tix [TixModule] |

#### Instances

Instances details

Generic Tix Source # |
Instance details Defined in Trace.Hpc.Tix Associated Types type Rep Tix :: Type -> Type Source # Methods from :: Tix -> Rep Tix x Source # to :: Rep Tix x -> Tix Source #
Read Tix Source # |
Instance details Defined in Trace.Hpc.Tix Methods readsPrec :: Int -> ReadS Tix Source # readList :: ReadS [Tix] Source # readPrec :: ReadPrec Tix Source # readListPrec :: ReadPrec [Tix] Source #
Show Tix Source # |
Instance details Defined in Trace.Hpc.Tix Methods showsPrec :: Int -> Tix -> ShowS Source # show :: Tix -> String Source # showList :: [Tix] -> ShowS Source #
NFData Tix Source # | Since: hpc-0.6.2.0
Instance details Defined in Trace.Hpc.Tix Methods rnf :: Tix -> () Source #
Eq Tix Source # |
Instance details Defined in Trace.Hpc.Tix Methods (==) :: Tix -> Tix -> Bool # (/=) :: Tix -> Tix -> Bool #
type Rep Tix Source # | Since: hpc-0.6.2.0
Instance details Defined in Trace.Hpc.Tix type Rep Tix = D1 ('MetaData "Tix" "Trace.Hpc.Tix" "hpc-0.6.2.0" 'False) (C1 ('MetaCons "Tix" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TixModule])))

data TixModule Source #

Constructors

TixModule String Hash Int [Integer] |

#### Instances

Instances details

Generic TixModule Source # |
Instance details Defined in Trace.Hpc.Tix Associated Types type Rep TixModule :: Type -> Type Source # Methods from :: TixModule -> Rep TixModule x Source # to :: Rep TixModule x -> TixModule Source #
Read TixModule Source # |
Instance details Defined in Trace.Hpc.Tix Methods readsPrec :: Int -> ReadS TixModule Source # readList :: ReadS [TixModule] Source # readPrec :: ReadPrec TixModule Source # readListPrec :: ReadPrec [TixModule] Source #
Show TixModule Source # |
Instance details Defined in Trace.Hpc.Tix Methods showsPrec :: Int -> TixModule -> ShowS Source # show :: TixModule -> String Source # showList :: [TixModule] -> ShowS Source #
NFData TixModule Source # | Since: hpc-0.6.2.0
Instance details Defined in Trace.Hpc.Tix Methods rnf :: TixModule -> () Source #
Eq TixModule Source # |
Instance details Defined in Trace.Hpc.Tix Methods (==) :: TixModule -> TixModule -> Bool # (/=) :: TixModule -> TixModule -> Bool #
type Rep TixModule Source # | Since: hpc-0.6.2.0

Instance details

Defined in Trace.Hpc.Tix

type Rep TixModule = D1 ('MetaData "TixModule" "Trace.Hpc.Tix" "hpc-0.6.2.0" 'False) (C1 ('MetaCons "TixModule" 'PrefixI 'False) ((S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Hash)) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Integer]))))

tixModuleName :: TixModule -> String Source #

tixModuleHash :: TixModule -> Hash Source #

tixModuleTixs :: TixModule -> [Integer] Source #

readTix :: String -> IO (Maybe Tix) Source #

Read a `.tix` File.

writeTix :: String -> Tix -> IO () Source #

Write a `.tix` File.

getTixFileName :: String -> String Source #

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