-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/


-- | Coveralls.io support for Haskell.
--   
--   This utility converts and sends Haskell projects hpc code coverage to
--   <a>coverall.io</a>.
--   
--   <i>Usage</i>
--   
--   Below is the simplest example of .travis.yml configuration to use with
--   Travis CI:
--   
--   <pre>
--   language: haskell
--   ghc: 7.8
--   script:
--     - cabal configure --enable-tests --enable-library-coverage &amp;&amp; cabal build &amp;&amp; cabal test
--   after_script:
--     - cabal install hpc-coveralls
--     - hpc-coveralls [options] [test-suite-names]
--   </pre>
--   
--   Further information can be found in the <a>README</a>.
@package hpc-coveralls
@version 1.0.10


-- | Types to represent hpc code coverage data.
module Trace.Hpc.Coveralls.Types
type CoverageEntry = ([MixEntry], [Integer], [String])
data Hit
Full :: Hit
Partial :: Hit
None :: Hit
Irrelevant :: Hit
type Lix = [Hit]
data CoverageMode
StrictlyFullLines :: CoverageMode
AllowPartialLines :: CoverageMode

-- | Result to the POST request to coveralls.io
data PostResult

-- | Coveralls job url
PostSuccess :: URLString -> PostResult

-- | error message
PostFailure :: String -> PostResult
instance GHC.Show.Show Trace.Hpc.Coveralls.Types.CoverageMode
instance GHC.Classes.Eq Trace.Hpc.Coveralls.Types.CoverageMode
instance Data.Data.Data Trace.Hpc.Coveralls.Types.CoverageMode
instance GHC.Show.Show Trace.Hpc.Coveralls.Types.Hit
instance GHC.Classes.Eq Trace.Hpc.Coveralls.Types.Hit
instance System.Console.CmdArgs.Default.Default Trace.Hpc.Coveralls.Types.CoverageMode


-- | Utility functions.
module Trace.Hpc.Coveralls.Util
fst3 :: (a, b, c) -> a
snd3 :: (a, b, c) -> b
trd3 :: (a, b, c) -> c
fst4 :: (a, b, c, d) -> a
toFirstAndRest :: (a, b, c, d) -> (a, (b, c, d))
listToMaybe :: [a] -> Maybe [a]
mcons :: Maybe a -> [a] -> [a]
matchAny :: [String] -> String -> Bool
mapFirst :: (a -> a) -> [a] -> [a]
mapLast :: (a -> a) -> [a] -> [a]
subSeq :: Int -> Int -> [a] -> [a]
subSubSeq :: Int -> Int -> [[a]] -> [[a]]
groupByIndex :: Int -> [(Int, a)] -> [[a]]


-- | Functions for converting hpc output to line-based code coverage data.
module Trace.Hpc.Coveralls.Lix
toHit :: [Bool] -> Hit
getLine :: MixEntry -> Int
toLineHit :: CoverageEntry -> (Int, Bool)
isOtherwiseEntry :: CoverageEntry -> Bool
adjust :: CoverageEntry -> CoverageEntry

-- | Convert hpc coverage entries into a line based coverage format
toLix :: Int -> [CoverageEntry] -> Lix


-- | Functions for converting and sending hpc output to coveralls.io.
module Trace.Hpc.Coveralls

-- | Generate coveralls json formatted code coverage from hpc coverage data
generateCoverallsFromTix :: String -> String -> GitInfo -> Config -> Maybe String -> IO Value
