Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cope with haxe changes

  • Loading branch information...
commit 37a028b5294b8920bcb2ca6871525492eea3d688 1 parent 53296ce
Stéphane Le Dorze authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/com/mindrocks/monads/Monad.hx
4 src/com/mindrocks/monads/Monad.hx
View
@@ -69,6 +69,7 @@ class Monad {
#end
@:macro public static function dO(exp : Expr) {
+ #if macro
function mk(e : ExprDef) return { pos : Context.currentPos(), expr : e };
switch (exp.expr) {
case EBlock(exprs):
@@ -88,7 +89,8 @@ class Monad {
default:
}
- return exp;
+ #end
+ return exp;
}
static var validNames : Hash<Bool> = new Hash<Bool>();
Please sign in to comment.
Something went wrong with that request. Please try again.