| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Minor utilities for the HPC tools.
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.
| HpcHash BoxLabel Source | |
Defined in Trace.Hpc.Mix | |
| HpcHash CondBox Source | |
Defined in Trace.Hpc.Mix | |
| HpcHash HpcPos Source | |
Defined in Trace.Hpc.Util | |
| HpcHash Integer Source | |
Defined in Trace.Hpc.Util | |
| HpcHash Bool Source | |
Defined in Trace.Hpc.Util | |
| HpcHash Char Source | |
Defined in Trace.Hpc.Util | |
| HpcHash Int Source | |
Defined in Trace.Hpc.Util | |
| HpcHash a => HpcHash [a] Source | |
Defined in Trace.Hpc.Util | |
| (HpcHash a, HpcHash b) => HpcHash (a, b) Source | |
Defined in Trace.Hpc.Util | |
| NFData Hash Source | Since: hpc-0.6.2.0 |
||||
Defined in Trace.Hpc.Util | |||||
| Generic Hash Source | |||||
Defined in Trace.Hpc.Util Associated Types
| |||||
| Num Hash Source | |||||
| Read Hash Source | |||||
| Show Hash Source | |||||
| Eq Hash Source | |||||
| type Rep Hash Source | Since: hpc-0.6.2.0 |
||||
Defined in Trace.Hpc.Util | |||||
catchIO :: IO a -> (IOException -> IO a) -> IO a Source
readFileUtf8 :: FilePath -> IO String Source
Read a file strictly, as opposed to how readFile does it using lazy IO, but also disregard system locale and assume that the file is encoded in UTF-8. Haskell source files are expected to be encoded in UTF-8 by GHC.
writeFileUtf8 :: FilePath -> String -> IO () Source
Write file in UTF-8 encoding. Parent directory will be created if missing.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.12.1/docs/libraries/hpc-0.7.0.1-78c9/Trace-Hpc-Util.html