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

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

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

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

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

insideHpcPos :: HpcPos -> HpcPos -> Bool

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

class HpcHash a where

Minimal complete definition

toHash

Methods

toHash :: a -> Hash

Instances

HpcHash Bool 

Methods

toHash :: Bool -> Hash

HpcHash Char 

Methods

toHash :: Char -> Hash

HpcHash Int 

Methods

toHash :: Int -> Hash

HpcHash Integer 

Methods

toHash :: Integer -> Hash

HpcHash HpcPos 

Methods

toHash :: HpcPos -> Hash

HpcHash CondBox 

Methods

toHash :: CondBox -> Hash

HpcHash BoxLabel 

Methods

toHash :: BoxLabel -> Hash

HpcHash a => HpcHash [a] 

Methods

toHash :: [a] -> Hash

(HpcHash a, HpcHash b) => HpcHash (a, b) 

Methods

toHash :: (a, b) -> Hash

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