Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Module a = Module {
- moduleName :: String
- moduleSetup :: Maybe a
- moduleContent :: [a]
- data DocTest
- type Expression = String
- type ExpectedResult = [ExpectedLine]
- data ExpectedLine
- data LineChunk
- extractDocTests :: [String] -> IO [Module [Located DocTest]]
- parseModules :: [Module (Located String)] -> [Module [Located DocTest]]
Documentation
Documentation for a module grouped together with the modules name.
Module | |
|
type Expression = String Source #
type ExpectedResult = [ExpectedLine] Source #
data ExpectedLine Source #
Instances
IsString ExpectedLine Source # | |
Defined in Parse fromString :: String -> ExpectedLine # | |
Show ExpectedLine Source # | |
Defined in Parse showsPrec :: Int -> ExpectedLine -> ShowS # show :: ExpectedLine -> String # showList :: [ExpectedLine] -> ShowS # | |
Eq ExpectedLine Source # | |
Defined in Parse (==) :: ExpectedLine -> ExpectedLine -> Bool # (/=) :: ExpectedLine -> ExpectedLine -> Bool # |
Extract DocTest
s from all given modules and all modules included by the
given modules.
extractDocTests = fmapparseModules
.extract