3 ms·
Not really. Python doesnt have typeclasses so liftM would be a fucntion receiving the monad dictionary as an explicit parameter. At that point, you can pass tha
by ufo 14y ago
Not really. Python doesnt have typeclasses so liftM would be a fucntion receiving the monad dictionary as an explicit parameter. At that point, you can pass that dictionary to the decorator:
def liftM(m, f, x):
@do(m)
def doNotationBody():
...
...