Closed milesfrain closed 4 years ago
This might be because of the following
https://pursuit.purescript.org/builtins/docs/Prim.Row
The Prim.Row module is embedded in the PureScript compiler. Unlike Prim, it is not imported implicitly. It contains automatically solved type classes for working with row types.
It makes enough sense to not implicitly import these modules, but that doesn't mean they should be precluded from suggested imports when you start typing them out
I had to check, but this should at least be possible with the current purs ide
. Here's Emacs:
OK, this is because for whatever reason we filter module completion by the set of available modules. Not sure why we explicitly filter including all modules in this case, but ignoring that historic oddness for now, I've included the current Prim.*
modules in the completion for
Apparently this was implemented in f886e8ee4887f160fff9c1ece553af2a43efd06c - not sure why I didn't close this at the time
Not sure if this is a duplicate, or if this is even the right repo to report this issue.
I noticed that automatic import with completion in my IDE (vscode) doesn't work on
Prim
classes. For example, I can typegetBody
, press tab, and then this line is inserted:But typing
RowToList
doesn't bring up any autocomplete options, and I need to manually add this import: