Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Message = Message {}
- data ValidationResult = ValidationResult {}
- decodeResult :: ByteString -> Maybe ValidationResult
- getMessages :: ValidationResult -> [Message]
- countErrors :: Maybe ValidationResult -> Int
- isError :: Message -> Bool
- showMessage :: Bool -> Bool -> Message -> String
- showMessageInClassic :: Message -> String
- showMessageInClassicWithColor :: Message -> String
- showMessageInClassic' :: (Message -> Maybe String) -> (Message -> Maybe String) -> (Message -> Maybe String) -> Message -> String
- showMessageInOneLine :: Message -> String
- showMessageInOneLineWithColor :: Message -> String
- showMessageInOneLine' :: (Message -> Maybe String) -> Message -> String
- getType :: Message -> Maybe String
- getTypeWithColor :: Message -> Maybe String
- getMessage :: Message -> Maybe String
- getPoint :: Message -> Maybe String
- getExtract :: Message -> Maybe String
- getExtractWithColor :: Message -> Maybe String
- getHilite :: Message -> Maybe String
- getHiliteWithColor :: Message -> Maybe String
- unescapeSomeSpecialChar :: String -> String
- goBold :: String -> String
- goRed :: String -> String
- goYellow :: String -> String
- goBlue :: String -> String
- goCyan :: String -> String
Documentation
data ValidationResult Source #
Instances
Eq ValidationResult Source # | |
Defined in Service.HtmlChecker.Response (==) :: ValidationResult -> ValidationResult -> Bool # (/=) :: ValidationResult -> ValidationResult -> Bool # | |
Read ValidationResult Source # | |
Defined in Service.HtmlChecker.Response | |
Show ValidationResult Source # | |
Defined in Service.HtmlChecker.Response showsPrec :: Int -> ValidationResult -> ShowS # show :: ValidationResult -> String # showList :: [ValidationResult] -> ShowS # | |
ToJSON ValidationResult Source # | |
Defined in Service.HtmlChecker.Response toJSON :: ValidationResult -> Value # toEncoding :: ValidationResult -> Encoding # toJSONList :: [ValidationResult] -> Value # toEncodingList :: [ValidationResult] -> Encoding # | |
FromJSON ValidationResult Source # | |
Defined in Service.HtmlChecker.Response parseJSON :: Value -> Parser ValidationResult # parseJSONList :: Value -> Parser [ValidationResult] # |
getMessages :: ValidationResult -> [Message] Source #
countErrors :: Maybe ValidationResult -> Int Source #
showMessageInClassic :: Message -> String Source #
showMessageInClassic' :: (Message -> Maybe String) -> (Message -> Maybe String) -> (Message -> Maybe String) -> Message -> String Source #
showMessageInOneLine :: Message -> String Source #
getExtract :: Message -> Maybe String Source #
Get "extract" valude from message.
The return value is unescaped to display without line break
unescapeSomeSpecialChar :: String -> String Source #
Convert some control chars to a whitespace.
To keep alingment, replace \?
with ' ' instead of "\?".
>>>
unescapeSomeSpecialChar "Line1\nLine2\nLine3\n"
"Line1 Line2 Line3 ">>>
unescapeSomeSpecialChar "HEADER\r\n\r\nBODY"
"HEADER BODY">>>
unescapeSomeSpecialChar "\a\b\t\n\v\f\r"
"\a\b \v\f "