purescript/purescript-in-purescript

Implement the optimizer

paf31 opened this issue · 4 comments

  • src/Language/PureScript/Optimizer/Blocks.hs
  • src/Language/PureScript/Optimizer/Common.hs
  • src/Language/PureScript/Optimizer/Inliner.hs
  • src/Language/PureScript/Optimizer/MagicDo.hs
  • src/Language/PureScript/Optimizer/TCO.hs
  • src/Language/PureScript/Optimizer/Unused.hs
  • src/Language/PureScript/Optimizer.hs

All these are done now, but the unchecked items need some stuff uncommenting (and then perhaps fixing) when purescript/purescript#427 is fixed.

Also I must admit I've not checked if it actually works, but I have to leave this for now. I'll be back later to test things and fix the referenced issue.

I've uncommented the commented code, and things compile, but there are issues with TCO. There are JSFunctions whose arguments lists are undefined.

This is great by the way 👍