r/purescript • • May 08 '14

AMD modules and PureScript

Does PureScript support AMD modules?

The only mention I can find to AMD is this 3 months old issue.

5 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/protestor May 08 '14

I was thinking, if you can eventually have plain Javascript all in one file, couldn't you just wrap it into a define() and be done?

The only thing would be, how to gather the dependencies, from what I'm seeing you can't gather them from the FFI.

What about the language itself be changed to say from where a given foreign import is coming? (just like you can import values from a certain module) - in that case, just let / in the name of those "foreign modules".

Actually. How psc-make discover foreign modules for the CommonJS case?