hpc-codecov-0.2.0.2: Generate codecov report from hpc data
Copyright(c) 2020 8c6794b6
LicenseBSD3
Maintainer8c6794b6 <8c6794b6@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Trace.Hpc.Codecov.Error

Description

Error and exception related codes.

Synopsis

Exception data type and handler

data HpcCodecovError Source #

Exceptions thrown during coverage report generation.

Constructors

NoTixFile

Tix file path was not given.

TixNotFound FilePath

Tix file path was given, but not found.

MixNotFound FilePath [FilePath]

Mix file not found. The first field is the path specified by a tix file. The second is the searched paths.

SrcNotFound FilePath [FilePath]

Like MixNotFound, but for source code specified by a mix file.

InvalidArgs [String]

Some errors in command line argument, e.g., required value not specified.

withBriefUsageOnError Source #

Arguments

:: IO a

Action to perform.

-> IO a 

Run the given action with a handler for HpcCodecovError.

The handler will show a brief usage and call exitFailure when an exception was caught.