hops-0.7.1: Handy Operations on Power Series

CopyrightAnders Claesson 2015 2016
MaintainerAnders Claesson <anders.claesson@gmail.com>
Safe HaskellNone
LanguageHaskell98

HOPS.OEIS

Contents

Description

License : BSD-3

Synopsis

Types

type URL = String Source #

A URL is currently just a synonym for String.

newtype ANum Source #

An A-number is the character 'A' followed by a six digit number. Here we represent that by an Int

Constructors

ANum 

Fields

Instances

type Sequence = [Rational] Source #

A sequence of rational numbers.

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 Integers.

Parse A-numbers and TAGs

aNumInt :: Parser Int Source #

A parser for A-numbers as Ints.

tag :: Parser Int Source #

A parser for tags (B-numbers) as Ints.