r/purescript • u/bob-bins • Mar 23 '20
Best way to discover code in Purescript?
With Typescript, I am able to cmd+click on a type/property to jump to the type definition, allowing me to discover the code without consulting documentation on the internet. I'm also able to use the dot operator on objects to discover related properties/methods.
I'm very new to Purescript, but I have not yet come across similar ways to discover how to use a package I import. Does something similarly useful exist on any IDE?
6
Upvotes
View all comments
Show parent comment
3
u/nwolverson Mar 23 '20
You can jump to package source if things are set up right. If you check the settings, there should be some options around enabling psc-package or spago (or explicit config), which I'm guessing you will be using for your project, which basically tell the
purs ideserver the location of those sources, that will enable both navigation and documentation text in tab completion.