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
- parseEvidence :: Parser Text
- optional :: Parser a -> Parser (Maybe a)
- parseNodes :: Text -> Char -> Char -> Parser [Text]
- parseTillEnd :: Parser String
- parseMultiLineComment :: Text -> Int -> Parser String
- parseMultiLine :: Text -> Int -> Parser [String]
- parseBreak :: Text -> Parser ()
- parseDefItem :: Text -> Parser Text
- parseTillChar :: Char -> Parser String
- 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
:: Text | Start 2-letter mark. |
-> Char | Delimeter char, that splits the nodes. |
-> Char | Terminal char, that ends the node list. |
-> Parser [Text] |
Parses lines, that contain nodes splitted by del
and ended by end
.
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.
parseTillChar :: Char -> Parser String Source #
Parses line till specific char (e.g. semicolon or dot) before spaceendOfLineendOfInput.
hyphenConcat :: [String] -> String Source #
Delete needless space after hyphen on concat.