I've come across the use of :>>=
in the Haxl library that I am using. I'm unsure how this is different from the >>=
operator?
For example:
data MyType a = MyType a :>>= (a -> Int)
What exactly is this operation doing in MyType
?
This is the context of it's using in Haxl:
newtype GenHaxl u a = GenHaxl { unHaxl :: Env u -> IORef (RequestStore u) -> IO (Result u a) } --|| u is the env, a is the result
data Result u a
= Done a
| Throw SomeException
| Blocked (Cont u a)
data Cont u a
= Cont (GenHaxl u a)
| forall b. Cont u b :>>= (b -> GenHaxl u a)
| forall b. (Cont u (b -> a)) :<*> (Cont u b)
| forall b. (b -> a) :<$> (Cont u b)