Created
August 5, 2019 19:18
-
-
Save hcarty/ca271c917df3c6b5274d8b8ff6c52a7c to your computer and use it in GitHub Desktop.
GADT to wrap steps when using lwt_pipeline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ('a, 'b) pipeline = | |
| [] : ('a, 'a) pipeline | |
| ( :: ) : ('a, 'b) Pipeline.step * ('b, 'c) pipeline -> ('a, 'c) pipeline | |
let pointless_pipeline = [Pipeline.sync sin; Pipeline.sync cos; Pipeline.sync Float.to_string] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment