Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data NameType
- parseID :: Parser ID
- parseAC :: Parser AC
- parseDT :: Parser DT
- parseDE :: Parser DE
- parseGN :: Parser [GN]
- parseOS :: Parser OS
- parseOG :: Parser OG
- parseOC :: Parser OC
- parseOX :: Parser OX
- parseOH :: Parser OH
- parseRef :: Parser Reference
- parseCC :: Parser CC
- parseDR :: Parser DR
- parsePE :: Parser PE
- parseKW :: Parser KW
- parseFT :: Parser FT
- parseSQ :: Parser SQ
- parseEnd :: Parser ()
- parseRecord :: Parser Record
- optional :: Parser a -> Parser (Maybe a)
- parseNodes :: Char -> Char -> Text -> ([Text] -> a) -> Parser a
- parseTillEnd :: Parser String
- parseMultiLineComment :: Text -> Int -> Parser String
- parseBreak :: Text -> Parser ()
- parseDefItem :: Text -> (Parser Text -> Parser a) -> Parser a
- hyphenConcat :: [String] -> String
Documentation
Describes possible name type of DE section.
parseRef :: Parser Reference Source #
Parses RN, RP, RC, RX, RG, RA, RT and RL lines of UniProt-KB text file.
parseRecord :: Parser Record Source #
Parses whole UniProt-KB record.
optional :: Parser a -> Parser (Maybe a) Source #
Transforms any parser to a parser of maybe value.
>>>
parseOnly (optional digit) "1"
Right (Just 1)
>>>
parseOnly (optional digit) ""
Right Nothing
:: Char | Delimeter char, that splits the nodes. |
-> Char | Terminal char, that ends the node list. |
-> Text | Start 2-letter mark. |
-> ([Text] -> a) | Text modifier |
-> Parser a |
Parses lines, that contain nodes splitted by ';' and ended by .
.
parseTillEnd :: Parser String Source #
Parses line till the end.
parseMultiLineComment :: Text -> Int -> Parser String Source #
Parses multiline comment as one string.
parseBreak :: Text -> Parser () Source #
Parses line break for multiline section.
parseDefItem :: Text -> (Parser Text -> Parser a) -> Parser a Source #
Parses one item like "Something=Something else;"
hyphenConcat :: [String] -> String Source #
Delete needless space after hyphen on concat.