r/dailyprogrammer • u/Coder_d00d 1 3 • Aug 18 '14
[Weekly #7] Programming Tools -- The Editors
Weekly 7:
For the most part at the core of programming you need a text editor. Then you might run your program through a compiler/linker/etc. Over time we have been merging these into 1 program. So now you edit your program and link your libraries in and compile it and debug your program all in one nice program.
What are your development tools/process? Are they language dependent? What are some tools that you don't use often but would like to give a shout out too with a link for people to see?
Last Week's Topic:
62
Upvotes
View all comments
Show parent comment
3
u/ruicoder Aug 20 '14 edited Aug 20 '14
Cabal is pretty much the defacto package manager for installing third party libraries. If you're familiar with Python, then it serves the same function as pip.
For autocompletion I use company, which can be installed via emacs' package manager. auto-complete is another one that's popular.
I would recommend company. For Haskell, company (and auto-complete) alone will only provide local completions (i.e., anything that exists in the buffer can be autocompleted). If you want more than that than you need to install ghc-mod via cabal and then install company-ghc via emacs' package manager.
To give a clear list of steps:
M-x package-install, hit ENTER, write company, hit ENTER.In your .emacs or init.el, add the following:
cabal updatefrom the command line.cabal install ghc-modfrom the command line.In your .emacs or init.el, add the following:
Add the following to your .emacs or init.el:
Anything past the second step is unecessary if you just need buffer-local completion.