Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- type Name = Text
- type Path = Text
- type Indent = Int
- data Package = Package Name [Component]
- data CompType
- data Component = Comp CompType Name Path
- parsePackage' :: Text -> Either String Package
- parsePackage :: Parser Package
- componentHeader :: Indent -> Text -> Parser Name
- parseComponent :: Indent -> Parser [Component]
- parseLib :: Indent -> Parser [Component]
- parseTestSuite :: Indent -> Parser [Component]
- parseExe :: Indent -> Parser [Component]
- parseBench :: Indent -> Parser [Component]
- parseSecMain :: (Name -> Path -> Component) -> Text -> Indent -> Parser [Component]
- parseQuoted :: Parser Text
- parseString :: Parser Name
- unqualName :: Parser Text
- optSkipToNextLine :: Indent -> Parser ()
- parseList :: Indent -> Parser [Text]
- pathMain :: Indent -> [Text] -> Text -> [Text] -> [Text] -> Parser [Text]
- (<//>) :: Text -> Text -> Text
- parseSec :: Indent -> Text -> (Name -> Path -> Component) -> Parser [Component]
- skipToNextLine :: Parser ()
- skipBlock :: Indent -> Parser ()
- comment :: Parser ()
- skipBlockLine :: Indent -> Parser ()
- emptyOrComLine :: Parser ()
- tabOrSpace :: Parser Char
- hsSourceDir :: Indent -> Parser [Text]
- field :: Indent -> Text -> (Indent -> Parser a) -> Parser a
- extractPath :: Indent -> [Path] -> Parser [Path]
- indent :: Indent -> Parser Int
- extractPkgs :: Parser [Text]
Documentation
parseQuoted :: Parser Text Source #
parseString :: Parser Name Source #
unqualName :: Parser Text Source #
optSkipToNextLine :: Indent -> Parser () Source #
Skip spaces and if enf of line is reached, skip it as well and require that next one starts with indent.
Used for parsing fields.
parseList :: Indent -> Parser [Text] Source #
Comma or space separated list, with optional new lines.
skipToNextLine :: Parser () Source #
skipBlockLine :: Indent -> Parser () Source #
emptyOrComLine :: Parser () Source #
tabOrSpace :: Parser Char Source #
extractPkgs :: Parser [Text] Source #