ku-fpg / sunroof-compiler

Monadic Javascript Compiler
BSD 3-Clause "New" or "Revised" License
73 stars 6 forks source link

Fix compiler API #27

Closed andygill closed 11 years ago

andygill commented 11 years ago

Right now we have compileJSI :: CompilerOpts -> Uniq -> Program (JSI t) () -> IO ([Stmt], Uniq) extractProgramJS :: (a -> JS t ()) -> JS t a -> Program (JSI t) ()

This can be collapsed into a single function, with a cleaner API.

It is only used inside the Comet / Server stuff.

jbracker commented 11 years ago

Done.