Skip to content

Commit

Permalink
attempt at implementing automatic fayToJs case for actions, attempt 2 (
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmark committed Nov 18, 2013
1 parent f14e083 commit ffc04c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions js/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,9 @@ 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 Fay$$fayToJs(["automatic"],Fay$$_(fayObj,true).value);
}
else if(base == "automatic" || base == "user") {
fayObj = Fay$$_(fayObj);

Expand Down

0 comments on commit ffc04c0

Please sign in to comment.