Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
A parser that takes a maximum line length as input, and emits warnings for any line that exceeds it.
Synopsis
- newtype LineLimit = LineLimit Int
- execParseLineLimits :: FilePath -> LineLimit -> String -> [LintMessage]
- lineLimitParser :: FilePath -> LineLimit -> Parser [LintMessage]
- recurse :: FilePath -> LineLimit -> Parser [LintMessage]
- notNewline :: Parser Char
- endOfLines :: Parser ()
- lineLimitWarning :: FilePath -> Parser LintMessage
- countAtMost :: Int -> Parser a -> Parser ()
Documentation
execParseLineLimits :: FilePath -> LineLimit -> String -> [LintMessage] Source #
lineLimitParser :: FilePath -> LineLimit -> Parser [LintMessage] Source #
Parser that produces warnings about lines being too long
recurse :: FilePath -> LineLimit -> Parser [LintMessage] Source #
Recursive case of lineLimitParser
,
notNewline :: Parser Char Source #
Succeeds when a character is not a line
endOfLines :: Parser () Source #
end of lines. Consumes all r and n characters it finds
lineLimitWarning :: FilePath -> Parser LintMessage Source #
Produces a line limit warning