oeis 0.3.0 → 0.3.1
raw patch · 2 files changed
+4/−4 lines, 2 files
Files
- oeis.cabal +1/−1
- src/Math/OEIS.hs +3/−3
oeis.cabal view
@@ -1,5 +1,5 @@ name: oeis-version: 0.3.0+version: 0.3.1 stability: experimental category: Math synopsis: Interface to the Online Encyclopedia of Integer Sequences
src/Math/OEIS.hs view
@@ -22,7 +22,7 @@ import Control.Arrow (second, (***)) import Data.Char (isDigit, isSpace, toUpper, toLower)-import Data.List (intersperse, isPrefixOf, tails, foldl')+import Data.List (intercalate, isPrefixOf, tails, foldl') import Data.Maybe (listToMaybe, fromMaybe) import Network.HTTP -- (simpleHTTP, rspBody, rspCode, rqBody, rqHeaders, rqMethod, rqURI, Request(..), GET) import Network.URI (escapeURIString, isAllowedInURI, parseURI, URI)@@ -159,7 +159,7 @@ idSearchURI n = baseSearchURI ++ "id:" ++ n seqSearchURI :: SequenceData -> String-seqSearchURI xs = baseSearchURI ++ (concat . intersperse "," . map show $ xs)+seqSearchURI xs = baseSearchURI ++ intercalate "," (map show xs) data LookupError = LookupError deriving Show @@ -196,7 +196,7 @@ -- | OEIS keywords. For more information on the meaning of each keyword, see -- <http://oeis.org/eishelp2.html#RK>.-data Keyword = Base | Bref | Cofr | Cons | Core | Dead | Dumb | Dupe |+data Keyword = Base | Bref | Changed | Cofr | Cons | Core | Dead | Dumb | Dupe | Easy | Eigen | Fini | Frac | Full | Hard | More | Mult | New | Nice | Nonn | Obsc | Sign | Tabf | Tabl | Uned | Unkn | Walk | Word