This is how the require the lambda_streams
package and test the output.
Try changing the toplevel output to unit Sync.input
:
# #require "lambda_streams";;
# open Lambda_streams;;
# let foo = Sync.pure 123;;
val foo : int Sync.input = <fun>
Get mdx to check it by running dune runtest
.
Mdx will check shell files too. To make get it to ignore things like installation instructions,
just don't specify that it's sh
in the code block.
For example, this will try to run opam install lambda_streams
and will rightly fail:
opam install lambda_streams
You need to avoid the sh
to make sure mdx ignores it:
opam install lambda_streams