Skip to content

Commit

Permalink
attempt at implementing automatic fayToJs case for actions (faylang/f…
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmark committed Nov 18, 2013
1 parent f14e083 commit 2290492
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ function Fay$$fayToJs(type,fayObj){
else if(base == "automatic" && fayObj instanceof Function) {
return Fay$$fayToJs(["function", "automatic_function"], fayObj);
}
else if(base == "automatic" && fayObj instanceof Fay$$Monad) {
return function(){
return Fay$$fayToJs(["automatic"],Fay$$_(fayObj,true).value);
};
}
else if(base == "automatic" || base == "user") {
fayObj = Fay$$_(fayObj);

Expand Down

0 comments on commit 2290492

Please sign in to comment.