Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

How about integrating this code genertor with psc-ide? #13

Closed
sudhirvkumar opened this issue Mar 15, 2017 · 8 comments
Closed

How about integrating this code genertor with psc-ide? #13

sudhirvkumar opened this issue Mar 15, 2017 · 8 comments

Comments

@sudhirvkumar
Copy link

@paf31 @kritzcreek @nwolverson

How about we integrate this generator with psc-ide & editor plugins? so that we can access this functionality from within the editor? without having to jump to the command line?

@kritzcreek
Copy link

Since this just amounts to calling a shell script I'd prefer for this to be added to whatever editor plugin you're using instead of psc-ide. With Emacs for example it's trivial to set this up and if I find some time later I could show you how.

@sudhirvkumar
Copy link
Author

@kritzcreek would love that... thanks a ton!

@sudhirvkumar
Copy link
Author

@kritzcreek thinking a bit more about it...

If it was part of psc-ide... then we will have access to AST and we will be able to selectively generate lenses for the type under the cursor. Just like we do the apply suggestion... what is your thought on that?

@kritzcreek
Copy link

I think that should happen through either Template PureScript purescript/purescript#140

or a plugin system for psc-ide, but I wouldn't want to special case Profunctor Lenses in the compiler repo just for convenience.

@sudhirvkumar
Copy link
Author

@kritzcreek plugin system for psc-ide sounds great... Is there any plan for a plugin system?

@nwolverson
Copy link

I guess any editor should have capability to fire off a command on the current buffer, but maybe there's a place for a standard code generation/preprocess hook somewhere

@paf31
Copy link
Owner

paf31 commented Mar 16, 2017

I agree that this should be accomplished using editor key bindings, or one day, possibly Template PureScript.

@paf31 paf31 closed this as completed Mar 16, 2017
@sudhirvkumar
Copy link
Author

@paf31 Template PureScript sounds good... I am not a big fan of Template Haskell mainly because... I am not sure what code will be generated behind the scenes...

What if... we can write Template PureScript and psc-ide generates the code and then comments out the Template PureScript!

I would prefer seeing the code and using Template PureScript as a helper during development!

Thanks for your time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants