bastet_lwt

Lwt implementations for bastet
README

Lwt implementations for bastet

Installation

opam install bastet_lwt

Documentation

See documentation

Example

# #require "bastet";;
# #require "bastet_lwt";;

# let foo = Bastet_lwt.Monad.pure "foo"
  and bar = Bastet_lwt.Monad.pure "bar"
  and baz = Bastet_lwt.Monad.pure "baz";;
val foo : string Lwt.t = <abstr>
val bar : string Lwt.t = <abstr>
val baz : string Lwt.t = <abstr>

# let list_of_promises = [foo; bar; baz];;
val list_of_promises : string Lwt.t list = [<abstr>; <abstr>; <abstr>]

# Bastet_lwt.List.Traversable.sequence;;
- : 'a Lwt.t list -> 'a list Lwt.t = <fun>

# Bastet_lwt.List.Traversable.sequence list_of_promises;;
- : string list = ["foo"; "bar"; "baz"]

License

See LICENSE

Install
Published
27 Mar 2020
Maintainers
Sources
0.1.0.tar.gz
md5=4aef3007a0050ca5ec7de2a5cd91f9ee
sha512=f749201895759847acae88ae215668a704b91babe28555763ae6003725b730ba5031639348527eccf31610ee9e214b2270e72aeca1ce4987bd2a629b497296f4
Dependencies
dune
>= "2.4.0"
odoc
>= "1.5.0" & with-doc
mdx
>= "1.6.0" & with-test
alcotest-lwt
= "1.0.1" & with-test
alcotest
>= "1.0.1" & with-test
lwt
>= "5.2.0"
bastet
>= "1.2.5"
ocaml
>= "4.06.1"
Reverse Dependencies