lib/kleisli/maybe.rb in kleisli-0.0.6 vs lib/kleisli/maybe.rb in kleisli-0.1.0
- old
+ new
@@ -48,11 +48,13 @@
end
end
end
end
+Maybe = Kleisli::Maybe.method(:lift)
+
def Maybe(v)
- Kleisli::Maybe.lift(v)
+ Maybe.(v)
end
def None()
Maybe(nil)
end