mirror of
https://github.com/c-cube/iter.git
synced 2025-12-06 19:25:30 -05:00
prepare for 0.5.5
This commit is contained in:
parent
14736aa8d9
commit
d2b6c03e3d
7 changed files with 73 additions and 6 deletions
32
CHANGELOG.md
32
CHANGELOG.md
|
|
@ -1,5 +1,33 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 0.5.5
|
||||||
|
|
||||||
|
- new module `SequenceLabels`
|
||||||
|
- `fold_while` fun
|
||||||
|
- implement `Set.Adapt.of_list` for `< 4.02`
|
||||||
|
- removed many warnings, fix tests
|
||||||
|
- change name of `IO` functions (keep compat)
|
||||||
|
|
||||||
|
## 0.5.4
|
||||||
|
|
||||||
|
- depend on `bytes`
|
||||||
|
- compliance with `-safe-string`
|
||||||
|
- `sequence.bigarray`
|
||||||
|
|
||||||
|
## 0.5.3
|
||||||
|
|
||||||
|
- bugfix: interaction between `take` and `is_empty`
|
||||||
|
|
||||||
|
## 0.5.2
|
||||||
|
|
||||||
|
- bugfix in `take`
|
||||||
|
- `on_list` for mapping lists through sequences
|
||||||
|
|
||||||
|
## 0.5.1
|
||||||
|
|
||||||
|
- `Sequence.IO` module, a very very simple way to read/write files
|
||||||
|
- options: `to_opt/of_opt/head/head_exn`
|
||||||
|
|
||||||
## 0.5
|
## 0.5
|
||||||
|
|
||||||
- conversion with `klist`
|
- conversion with `klist`
|
||||||
|
|
@ -20,7 +48,7 @@
|
||||||
## 0.4.1
|
## 0.4.1
|
||||||
|
|
||||||
- `persistent_lazy`
|
- `persistent_lazy`
|
||||||
- use bin_annot
|
- use `bin_annot`
|
||||||
|
|
||||||
## 0.4
|
## 0.4
|
||||||
|
|
||||||
|
|
@ -62,4 +90,4 @@
|
||||||
- `zip`, `unzip` and `zip_i` to convert between `t` and `t2`
|
- `zip`, `unzip` and `zip_i` to convert between `t` and `t2`
|
||||||
- added `scan` combinator
|
- added `scan` combinator
|
||||||
|
|
||||||
note: git log --no-merges previous_version..HEAD --pretty=%s
|
note: `git log --no-merges previous_version..HEAD --pretty=%s`
|
||||||
|
|
|
||||||
14
Makefile
14
Makefile
|
|
@ -57,11 +57,23 @@ push_stable: all
|
||||||
git push origin
|
git push origin
|
||||||
git checkout master
|
git checkout master
|
||||||
|
|
||||||
VERSION=$(shell awk '^/Version:/ {print $$2}' _oasis)
|
VERSION=$(shell awk '/^Version:/ {print $$2}' _oasis)
|
||||||
|
|
||||||
update_next_tag:
|
update_next_tag:
|
||||||
@echo "update version to $(VERSION)..."
|
@echo "update version to $(VERSION)..."
|
||||||
sed -i "s/NEXT_VERSION/$(VERSION)/g" *.ml *.mli
|
sed -i "s/NEXT_VERSION/$(VERSION)/g" *.ml *.mli
|
||||||
sed -i "s/NEXT_RELEASE/$(VERSION)/g" *.ml *.mli
|
sed -i "s/NEXT_RELEASE/$(VERSION)/g" *.ml *.mli
|
||||||
|
|
||||||
|
NAME_VERSION := sequence.$(VERSION)
|
||||||
|
URL := https://github.com/c-cube/sequence/archive/$(VERSION).tar.gz
|
||||||
|
|
||||||
|
release:
|
||||||
|
git tag -a $(VERSION) -m "Version $(VERSION)."
|
||||||
|
git push origin $(VERSION)
|
||||||
|
opam publish prepare $(NAME_VERSION) $(URL)
|
||||||
|
cp descr $(NAME_VERSION)
|
||||||
|
echo "submit?"
|
||||||
|
@read
|
||||||
|
opam publish submit $(NAME_VERSION)
|
||||||
|
|
||||||
.PHONY: benchs tests examples update_next_tag push_doc push_stable
|
.PHONY: benchs tests examples update_next_tag push_doc push_stable
|
||||||
|
|
|
||||||
2
_oasis
2
_oasis
|
|
@ -1,6 +1,6 @@
|
||||||
OASISFormat: 0.4
|
OASISFormat: 0.4
|
||||||
Name: sequence
|
Name: sequence
|
||||||
Version: dev
|
Version: 0.5.5
|
||||||
Homepage: https://github.com/c-cube/sequence
|
Homepage: https://github.com/c-cube/sequence
|
||||||
Authors: Simon Cruanes
|
Authors: Simon Cruanes
|
||||||
License: BSD-2-clause
|
License: BSD-2-clause
|
||||||
|
|
|
||||||
6
descr
Normal file
6
descr
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
Simple and lightweight sequence abstract data type.
|
||||||
|
|
||||||
|
Simple sequence abstract data type, intended to transfer a finite number of
|
||||||
|
elements from one data structure to another. Some transformations on sequences,
|
||||||
|
like `filter`, `map`, `take`, `drop` and `append` can be performed before the
|
||||||
|
sequence is iterated/folded on.
|
||||||
21
opam
Normal file
21
opam
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
opam-version: "1.2"
|
||||||
|
author: "Simon Cruanes"
|
||||||
|
maintainer: "simon.cruanes@inria.fr"
|
||||||
|
build: [
|
||||||
|
["./configure" "--disable-docs"
|
||||||
|
"--%{delimcc:enable}%-invert"
|
||||||
|
"--%{base-bigarray:enable}%-bigarray"
|
||||||
|
]
|
||||||
|
[make "build"]
|
||||||
|
]
|
||||||
|
install: [make "install"]
|
||||||
|
remove: [
|
||||||
|
["ocamlfind" "remove" "sequence"]
|
||||||
|
]
|
||||||
|
depends: ["ocamlfind" "base-bytes"]
|
||||||
|
tags: [ "sequence" "iterator" "iter" "fold" ]
|
||||||
|
homepage: "https://github.com/c-cube/sequence/"
|
||||||
|
depopts: ["delimcc" "base-bigarray"]
|
||||||
|
doc: "http://cedeela.fr/~simon/software/sequence/Sequence.html"
|
||||||
|
bug-reports: "https://github.com/c-cube/sequence/issues"
|
||||||
|
dev-repo: "https://github.com/c-cube/sequence.git"
|
||||||
|
|
@ -275,7 +275,7 @@ val take_while : ('a -> bool) -> 'a t -> 'a t
|
||||||
val fold_while : ('a -> 'b -> 'a * [`Stop | `Continue]) -> 'a -> 'b t -> 'a
|
val fold_while : ('a -> 'b -> 'a * [`Stop | `Continue]) -> 'a -> 'b t -> 'a
|
||||||
(** Folds over elements of the sequence, stopping early if the accumulator
|
(** Folds over elements of the sequence, stopping early if the accumulator
|
||||||
returns [('a, `Stop)]
|
returns [('a, `Stop)]
|
||||||
@since NEXT_RELEASE *)
|
@since 0.5.5 *)
|
||||||
|
|
||||||
val drop : int -> 'a t -> 'a t
|
val drop : int -> 'a t -> 'a t
|
||||||
(** Drop the [n] first elements of the sequence. Lazy. *)
|
(** Drop the [n] first elements of the sequence. Lazy. *)
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
Version of {!Sequence} with labels
|
Version of {!Sequence} with labels
|
||||||
|
|
||||||
@since NEXT_RELEASE *)
|
@since 0.5.5 *)
|
||||||
|
|
||||||
type +'a t = ('a -> unit) -> unit
|
type +'a t = ('a -> unit) -> unit
|
||||||
(** A sequence of values of type ['a]. If you give it a function ['a -> unit]
|
(** A sequence of values of type ['a]. If you give it a function ['a -> unit]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue