hpc-0.5.1.0: Code Coverage Library for Haskell

Trace.Hpc.Util

Description

Minor utilities for the HPC tools.

Synopsis

Documentation

data HpcPos

HpcPos is an Hpc local rendition of a Span.

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

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

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

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

insideHpcPos :: HpcPos -> HpcPos -> Bool

asks the question, is the first argument inside the second argument.

data Hash

Instances

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