oeis2 0.1.0 → 1.0.0
raw patch · 5 files changed
+26/−38 lines, 5 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
- Math.OEIS: Formla :: Text -> SearchStatus
- Math.OEIS.Types: Formla :: Text -> SearchStatus
+ Math.OEIS: Formula :: Text -> SearchStatus
+ Math.OEIS.Types: Formula :: Text -> SearchStatus
Files
- LICENSE +2/−2
- README.md +0/−4
- oeis2.cabal +12/−11
- src/Math/OEIS.hs +11/−11
- src/Math/OEIS/Types.hs +1/−10
LICENSE view
@@ -1,4 +1,4 @@-Copyright Okkey (c) 2018+Copyright Taisuke Hikawa (c) 2018 All rights reserved. @@ -13,7 +13,7 @@ disclaimer in the documentation and/or other materials provided with the distribution. - * Neither the name of Okkey nor the names of other+ * Neither the name of Taisuke Hikawa nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission.
README.md view
@@ -59,7 +59,3 @@ ghci>lookupSeq (ID "1145141919893") Nothing ```--## ToDo--- Could use other functions of the searching system written in [here](https://oeis.org/hints.html).
oeis2.cabal view
@@ -1,30 +1,31 @@--- This file has been generated from package.yaml by hpack version 0.28.2.+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.31.1. -- -- see: https://github.com/sol/hpack ----- hash: dfea261a0cd8b7a597f5717df1093a6c7c1acf8250c469966c4c360b62652f15+-- hash: a38920cd4910bd65d44f33dc4e93231bd7f1caa84141668368c05653a9d72af5 name: oeis2-version: 0.1.0+version: 1.0.0 synopsis: Interface for Online Encyclopedia of Integer Sequences (OEIS).-description: Please see the README on GitHub at <https://github.com/23_prime/oeis2#readme>+description: Please see the README on GitHub at <https://github.com/23prime/oeis2#readme> category: Math-homepage: https://github.com/23_prime/oeis2#readme-bug-reports: https://github.com/23_prime/oeis2/issues-author: okkey+homepage: https://github.com/23prime/oeis2#readme+bug-reports: https://github.com/23prime/oeis2/issues+author: Taisuke Hikawa maintainer: a23b23c23d23e@gmail.com-copyright: 2018 okkey+copyright: 2018 Taisuke Hikawa license: BSD3 license-file: LICENSE build-type: Simple-cabal-version: >= 1.10 extra-source-files:- ChangeLog.md README.md+ ChangeLog.md source-repository head type: git- location: https://github.com/23_prime/oeis2+ location: https://github.com/23prime/oeis2 library exposed-modules:
src/Math/OEIS.hs view
@@ -1,18 +1,17 @@ {-# LANGUAGE OverloadedLists #-} module Math.OEIS (+ -- * Functions+ searchSeq, searchSeq',+ lookupSeq, lookupSeq',+ getSeqData, getSeqData',+ extendSeq, extendSeq',+ -- * Types SeqData, SearchStatus(..),--- Language(..), Keyword(..),- OEISSeq(..),-- -- * Functions- searchSeq', searchSeq,- lookupSeq', lookupSeq,- getSeqData', getSeqData,- extendSeq', extendSeq+ OEISSeq(..) ) where import Data.List@@ -42,6 +41,10 @@ -- -- > ghci>searchSeq (SubSeq [1,1,4,5,1,4,1,9,1,9,8,9,3]) 0 -- > []+searchSeq :: SearchStatus -> Int -> V.Vector OEISSeq+searchSeq ss = unsafePerformIO . searchSeq' ss++-- | searchSeq in IO searchSeq' :: SearchStatus -> Int -> IO (V.Vector OEISSeq) searchSeq' ss bound = do results' <- getResults ss 0 bound []@@ -49,9 +52,6 @@ | V.null results' = [] | otherwise = parseOEIS <$> results' return seqs--searchSeq :: SearchStatus -> Int -> V.Vector OEISSeq-searchSeq ss = unsafePerformIO . searchSeq' ss -- | Look up a sequence on OEIS.
src/Math/OEIS/Types.hs view
@@ -5,15 +5,6 @@ type SeqData = [Integer] type Texts = [T.Text] --- Prefixes-{--id: ref: program:-seq: link: xref:-signed: formula: keyword:-name: example: author:-offset: maple: extension:-comment: mathematica:--} data SearchStatus = ID T.Text | SubSeq SeqData | Signed T.Text@@ -21,7 +12,7 @@ | Comment T.Text | Ref T.Text | Link T.Text- | Formla T.Text+ | Formula T.Text | Example T.Text | Maple T.Text | Mathematica T.Text