Copyright | Anders Claesson 2015 2016 |
---|---|
Maintainer | Anders Claesson <anders.claesson@gmail.com> |
Safe Haskell | None |
Language | Haskell98 |
License : BSD-3
- type URL = String
- newtype ANum = ANum {}
- type Sequence = [Rational]
- packANum :: ANum -> ByteString
- parseStripped :: ByteString -> [(ANum, Sequence)]
- parseIntegerSeq :: ByteString -> Sequence
- aNumInt :: Parser Int
- tag :: Parser Int
Types
An A-number is the character 'A' followed by a six digit number. Here we represent that by an Int
packANum :: ANum -> ByteString Source #
Parse stripped.gz
parseStripped :: ByteString -> [(ANum, Sequence)] Source #
Parse a list of A-number-sequence pairs. It's purpose is to parse
lines of the stripped
file. A typical line of that file looks like
this:
A000108 ,1,1,2,5,14,42,132,429,1430,4862,16796,58786,208012,742900,
Parse sequences
parseIntegerSeq :: ByteString -> Sequence Source #
Parse a sequence of Integer
s.