doctest-0.23.0: Test interactive Haskell examples
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.DocTest.Internal.Parse

Synopsis

Documentation

data Module a Source #

Documentation for a module grouped together with the modules name.

Constructors

Module 

Instances

Instances details
Functor Module Source # 
Instance details

Defined in Extract

Methods

fmap :: (a -> b) -> Module a -> Module b #

(<$) :: a -> Module b -> Module a #

Show a => Show (Module a) Source # 
Instance details

Defined in Extract

Methods

showsPrec :: Int -> Module a -> ShowS #

show :: Module a -> String #

showList :: [Module a] -> ShowS #

NFData a => NFData (Module a) Source # 
Instance details

Defined in Extract

Methods

rnf :: Module a -> () #

Eq a => Eq (Module a) Source # 
Instance details

Defined in Extract

Methods

(==) :: Module a -> Module a -> Bool #

(/=) :: Module a -> Module a -> Bool #

data DocTest Source #

Instances

Instances details
Show DocTest Source # 
Instance details

Defined in Parse

Eq DocTest Source # 
Instance details

Defined in Parse

Methods

(==) :: DocTest -> DocTest -> Bool #

(/=) :: DocTest -> DocTest -> Bool #

data ExpectedLine Source #

Instances

Instances details
IsString ExpectedLine Source # 
Instance details

Defined in Parse

Show ExpectedLine Source # 
Instance details

Defined in Parse

Eq ExpectedLine Source # 
Instance details

Defined in Parse

data LineChunk Source #

Instances

Instances details
IsString LineChunk Source # 
Instance details

Defined in Parse

Show LineChunk Source # 
Instance details

Defined in Parse

Eq LineChunk Source # 
Instance details

Defined in Parse

extractDocTests Source #

Arguments

:: [String] 
-> IO [Module [Located DocTest]]

Extracted DocTests

Extract DocTests from all given modules and all modules included by the given modules.

extractDocTests = fmap parseModules . extract