doctest-parallel-0.2.6: 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 #

Generic (Module a) Source # 
Instance details

Defined in Test.DocTest.Internal.Extract

Associated Types

type Rep (Module a) :: Type -> Type #

Methods

from :: Module a -> Rep (Module a) x #

to :: Rep (Module a) x -> Module a #

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

Defined in Test.DocTest.Internal.Extract

Methods

rnf :: Module a -> () #

type Rep (Module a) Source # 
Instance details

Defined in Test.DocTest.Internal.Extract

type Rep (Module a) = D1 ('MetaData "Module" "Test.DocTest.Internal.Extract" "doctest-parallel-0.2.6-inplace" 'False) (C1 ('MetaCons "Module" 'PrefixI 'True) ((S1 ('MetaSel ('Just "moduleName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "moduleSetup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a))) :*: (S1 ('MetaSel ('Just "moduleContent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [a]) :*: S1 ('MetaSel ('Just "moduleConfig") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Located String]))))

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.