hpc-0.6.0.3: Code Coverage Library for Haskell

Safe HaskellSafe
LanguageHaskell98

Trace.Hpc.Util

Description

Minor utilities for the HPC tools.

Synopsis

Documentation

data HpcPos Source #

HpcPos is an Hpc local rendition of a Span.

Instances
Eq HpcPos Source # 
Instance details

Methods

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

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

Ord HpcPos Source # 
Instance details
Read HpcPos Source # 
Instance details
Show HpcPos Source # 
Instance details
HpcHash HpcPos Source # 
Instance details

Methods

toHash :: HpcPos -> Hash Source #

fromHpcPos :: HpcPos -> (Int, Int, Int, Int) Source #

fromHpcPos explodes the HpcPos into line:column-line:column

toHpcPos :: (Int, Int, Int, Int) -> HpcPos Source #

toHpcPos implodes to HpcPos, from line:column-line:column

insideHpcPos :: HpcPos -> HpcPos -> Bool Source #

Predicate determining whether the first argument is inside the second argument.

class HpcHash a where Source #

Minimal complete definition

toHash

Methods

toHash :: a -> Hash Source #

Instances
HpcHash Bool Source # 
Instance details

Methods

toHash :: Bool -> Hash Source #

HpcHash Char Source # 
Instance details

Methods

toHash :: Char -> Hash Source #

HpcHash Int Source # 
Instance details

Methods

toHash :: Int -> Hash Source #

HpcHash Integer Source # 
Instance details

Methods

toHash :: Integer -> Hash Source #

HpcHash HpcPos Source # 
Instance details

Methods

toHash :: HpcPos -> Hash Source #

HpcHash CondBox Source # 
Instance details

Methods

toHash :: CondBox -> Hash Source #

HpcHash BoxLabel Source # 
Instance details

Methods

toHash :: BoxLabel -> Hash Source #

HpcHash a => HpcHash [a] Source # 
Instance details

Methods

toHash :: [a] -> Hash Source #

(HpcHash a, HpcHash b) => HpcHash (a, b) Source # 
Instance details

Methods

toHash :: (a, b) -> Hash Source #

data Hash Source #

Instances
Eq Hash Source # 
Instance details

Methods

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

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

Num Hash Source # 
Instance details
Read Hash Source # 
Instance details
Show Hash Source # 
Instance details

catchIO :: IO a -> (IOException -> IO a) -> IO a Source #