Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Minor utilities for the HPC tools.
Synopsis
Documentation
HpcPos
is an Hpc local rendition of a Span.
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.
Instances
HpcHash Bool # | |
Defined in Trace.Hpc.Util | |
HpcHash Char # | |
Defined in Trace.Hpc.Util | |
HpcHash Int # | |
Defined in Trace.Hpc.Util | |
HpcHash Integer # | |
Defined in Trace.Hpc.Util | |
HpcHash HpcPos # | |
Defined in Trace.Hpc.Util | |
HpcHash CondBox # | |
Defined in Trace.Hpc.Mix | |
HpcHash BoxLabel # | |
Defined in Trace.Hpc.Mix | |
HpcHash a => HpcHash [a] # | |
Defined in Trace.Hpc.Util | |
(HpcHash a, HpcHash b) => HpcHash (a, b) # | |
Defined in Trace.Hpc.Util |
readFileUtf8 :: FilePath -> IO String #
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 () #
Write file in UTF-8 encoding. Parent directory will be created if missing.