Trace.Hpc.Util

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.

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

Methods

toHash :: Bool -> Hash Source

HpcHash Char

Methods

toHash :: Char -> Hash Source

HpcHash Int

Methods

toHash :: Int -> Hash Source

HpcHash Integer

Methods

toHash :: Integer -> Hash Source

HpcHash HpcPos

Methods

toHash :: HpcPos -> Hash Source

HpcHash CondBox

Methods

toHash :: CondBox -> Hash Source

HpcHash BoxLabel

Methods

toHash :: BoxLabel -> Hash Source

HpcHash a => HpcHash [a]

Methods

toHash :: [a] -> Hash Source

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

Methods

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

data Hash Source

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.0.1/docs/html/libraries/hpc-0.6.0.3/Trace-Hpc-Util.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部