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

Trace.Hpc.Codecov.Discover

Description

Walk through directories and find hpc data.

Synopsis

Discover function and types

discover :: DiscoverArgs -> IO Report Source #

Walk thorugh directory and search for .mix directories, Haskell source code directories, and .tix file.

data DiscoverArgs Source #

Data type to hold arguments of discover function.

Constructors

DiscoverArgs 

Fields

data BuildTool Source #

Tool used for building Haskell package source codes.

Constructors

Cabal

For cabal-install.

Stack

For stack.

Instances

Instances details
Show BuildTool Source # 
Instance details

Defined in Trace.Hpc.Codecov.Discover

Eq BuildTool Source # 
Instance details

Defined in Trace.Hpc.Codecov.Discover

Auxiliary

foldDir :: (FilePath -> a -> IO a) -> a -> [FilePath] -> IO a Source #

defaultIgnored :: [String] Source #

Default directory base names to ignore.

foldDirWithIgnoring Source #

Arguments

:: [String]

Directory base names to skip.

-> (FilePath -> a -> IO a)

Accumulator function.

-> a

Initial accumulator value.

-> [FilePath]

Directories to walk through.

-> IO a 

Fold under given directory.