You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if, when you loaded a file, all the imports in the file would be in scope in the repl, so you could access anything that code in that file could also access. So if it imported Prelude, then when you loaded that file, all the functions in prelude would be available to use. However, it seems to only load the functions and types that are declared within that actual module. Is there a way to do that?
The text was updated successfully, but these errors were encountered:
@mpdairy I ran into the same annoyance and hacked together this bit of elisp, which seems to do what we both want, although I've barely tested it and it may have some unintended side effects:
Edit: Reconsidered my assumption that people would be using psc-ide-emacs and replaced psc-ide-import-regex with the actual regex from psc-ide.el for matching imports.
Edit 2: This isn't quite right, as it doesn't properly respect multi-line imports.
Edit 3: Revised the regex to handle multi-line imports.
One week later, my above hack seems to be working as expected, although I'm not doing anything more complicated than the exercises in PureScript by Example.
It would be nice if, when you loaded a file, all the imports in the file would be in scope in the repl, so you could access anything that code in that file could also access. So if it imported Prelude, then when you loaded that file, all the functions in prelude would be available to use. However, it seems to only load the functions and types that are declared within that actual module. Is there a way to do that?
The text was updated successfully, but these errors were encountered: