doctest-parallel-0.1: Test interactive Haskell examples
Safe HaskellNone
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 Test.DocTest.Internal.Extract

Methods

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

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

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

Defined in Test.DocTest.Internal.Extract

Methods

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

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

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

Defined in Test.DocTest.Internal.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 Test.DocTest.Internal.Extract

Methods

rnf :: Module a -> () #

data DocTest Source #

Instances

Instances details
Eq DocTest Source # 
Instance details

Defined in Test.DocTest.Internal.Parse

Methods

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

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

Show DocTest Source # 
Instance details

Defined in Test.DocTest.Internal.Parse

data LineChunk Source #

Instances

Instances details
Eq LineChunk Source # 
Instance details

Defined in Test.DocTest.Internal.Parse

Show LineChunk Source # 
Instance details

Defined in Test.DocTest.Internal.Parse

IsString LineChunk Source # 
Instance details

Defined in Test.DocTest.Internal.Parse

getDocTests Source #

Arguments

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

Extracted DocTests

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

exported for testing

parseInteractions :: Located String -> [Located Interaction] Source #

Extract all interactions from given Haddock comment.

parseProperties :: Located String -> [Located Expression] Source #

Extract all properties from given Haddock comment.