doctest-0.22.4: 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 

Fields

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

Methods

showsPrec :: Int -> DocTest -> ShowS

show :: DocTest -> String

showList :: [DocTest] -> ShowS

Eq DocTest Source # 
Instance details

Defined in Parse

Methods

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

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

type Expression = String Source #

data ExpectedLine Source #

Instances

Instances details
IsString ExpectedLine Source # 
Instance details

Defined in Parse

Methods

fromString :: String -> ExpectedLine

Show ExpectedLine Source # 
Instance details

Defined in Parse

Methods

showsPrec :: Int -> ExpectedLine -> ShowS

show :: ExpectedLine -> String

showList :: [ExpectedLine] -> ShowS

Eq ExpectedLine Source # 
Instance details

Defined in Parse

Methods

(==) :: ExpectedLine -> ExpectedLine -> Bool

(/=) :: ExpectedLine -> ExpectedLine -> Bool

data LineChunk Source #

Constructors

LineChunk String 
WildCardChunk 

Instances

Instances details
IsString LineChunk Source # 
Instance details

Defined in Parse

Methods

fromString :: String -> LineChunk

Show LineChunk Source # 
Instance details

Defined in Parse

Methods

showsPrec :: Int -> LineChunk -> ShowS

show :: LineChunk -> String

showList :: [LineChunk] -> ShowS

Eq LineChunk Source # 
Instance details

Defined in Parse

Methods

(==) :: LineChunk -> LineChunk -> Bool

(/=) :: LineChunk -> LineChunk -> Bool

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