Safe Haskell | None |
---|---|
Language | Haskell2010 |
The tables imported with these functions are from ENA: https://www.ebi.ac.uk/ena/browse/translation-tables
Synopsis
- type TTParser = Parsec Void Text
- fromFile :: (MonadIO m, MonadError String m) => FilePath -> m [TranslationTable Char Char]
- fromByteString :: MonadError String m => ByteString -> m [TranslationTable Char Char]
- parseTranslationTable :: TTParser (TranslationTable Char Char)
- parseHeader :: TTParser (Int, Text)
- parseData :: Text -> TTParser String
Documentation
fromFile :: (MonadIO m, MonadError String m) => FilePath -> m [TranslationTable Char Char] Source #
Import translation tables from a given file. In case of parse error, print the error and exit with a failure.
fromByteString :: MonadError String m => ByteString -> m [TranslationTable Char Char] Source #
Parse a ByteString with translation tables.
parseTranslationTable :: TTParser (TranslationTable Char Char) Source #
Parses a single translation table.