W3cubDocs

/Haskell 8

Trace.Hpc.Util

Safe Haskell Safe
Language Haskell98

Description

Minor utilities for the HPC tools.

data HpcPos Source

HpcPos is an Hpc local rendition of a Span.

Instances
Eq HpcPos
Instance details

Defined in Trace.Hpc.Util

Methods

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

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

Ord HpcPos
Instance details

Defined in Trace.Hpc.Util

Methods

compare :: HpcPos -> HpcPos -> Ordering

(<) :: HpcPos -> HpcPos -> Bool

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

(>) :: HpcPos -> HpcPos -> Bool

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

max :: HpcPos -> HpcPos -> HpcPos

min :: HpcPos -> HpcPos -> HpcPos

Read HpcPos
Instance details

Defined in Trace.Hpc.Util

Show HpcPos
Instance details

Defined in Trace.Hpc.Util

HpcHash HpcPos
Instance details

Defined in Trace.Hpc.Util

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

Methods

toHash :: a -> Hash Source

Instances
HpcHash Bool
Instance details

Defined in Trace.Hpc.Util

Methods

toHash :: Bool -> Hash Source

HpcHash Char
Instance details

Defined in Trace.Hpc.Util

Methods

toHash :: Char -> Hash Source

HpcHash Int
Instance details

Defined in Trace.Hpc.Util

Methods

toHash :: Int -> Hash Source

HpcHash Integer
Instance details

Defined in Trace.Hpc.Util

Methods

toHash :: Integer -> Hash Source

HpcHash HpcPos
Instance details

Defined in Trace.Hpc.Util

Methods

toHash :: HpcPos -> Hash Source

HpcHash CondBox
Instance details

Defined in Trace.Hpc.Mix

Methods

toHash :: CondBox -> Hash Source

HpcHash BoxLabel
Instance details

Defined in Trace.Hpc.Mix

Methods

toHash :: BoxLabel -> Hash Source

HpcHash a => HpcHash [a]
Instance details

Defined in Trace.Hpc.Util

Methods

toHash :: [a] -> Hash Source

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

Defined in Trace.Hpc.Util

Methods

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

data Hash Source

Instances
Eq Hash
Instance details

Defined in Trace.Hpc.Util

Methods

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

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

Num Hash
Instance details

Defined in Trace.Hpc.Util

Read Hash
Instance details

Defined in Trace.Hpc.Util

Show Hash
Instance details

Defined in Trace.Hpc.Util

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

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.6.1/docs/html/libraries/hpc-0.6.0.3/Trace-Hpc-Util.html