[sledge] Add: Iter library

Summary: For very lightweight and fast iterators.

Reviewed By: ngorogiannis

Differential Revision: D23459520

fbshipit-source-id: b1cba31cf
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent 60248165fd
commit edda611c9c

@ -22,6 +22,9 @@ include (
and type -'a return := 'a Core.return
end )
module Iter = Iter
include Iter.Import
external ( == ) : 'a -> 'a -> bool = "%eq"
external ( != ) : 'a -> 'a -> bool = "%noteq"

@ -6,7 +6,7 @@
(library
(name NS)
(public_name nonstdlib)
(libraries core core_kernel.fheap zarith trace)
(libraries core core_kernel.fheap iter zarith trace)
(flags (:standard))
(preprocess
(pps ppx_sledge ppx_trace))

@ -0,0 +1,12 @@
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
include IterLabels
module Import = struct
type 'a iter = 'a t
end

@ -0,0 +1,12 @@
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
include module type of IterLabels
module Import : sig
type 'a iter = 'a t
end

@ -18,6 +18,7 @@ depends: [
"ctypes-foreign"
"dune" {build & >= "2.7"}
"dune-build-info" {build}
"iter"
"llvm" {= "8.0.0"}
"ppx_compare"
"ppx_hash"

Loading…
Cancel
Save