Created
April 26, 2015 14:10
-
-
Save SteveGilham/ec4bc63b293169995b46 to your computer and use it in GitHub Desktop.
Hypothetical typeclass definition of monad Bind
This file contains hidden or 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
let __binder__<'T, 'U, 'M when 'M : (static member bind : ('T -> 'U 'M ) -> 'T 'M -> 'U 'M)> (x: 'T 'M) (f : 'T -> 'U 'M) = | |
x |> 'M.bind f;; | |
let (>>=) = __binder__;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment