"Deep" Coding Support in Haskell

Dear Café, let me allow quite naive question, is there any library/tool/plugin supporting rapid application development in Haskell? I mean something that supports code completion, hints, help, code refactoring etc. Similar to Java support in e.g. Eclipse or IntelliJ IDEA. So far, I've found support for Vim, Eclipse. Nevertheless, my question goes farther - for implicit GUI editor/application development environment like Eclipse. Several years ago, I was able to run something in Eclipse, but not with good results. These days it seems dead (since 2015). Similarly, for IntelliJ IDEA - installed community version, downloaded Haskell plugin, tried to install additional plugins inside IntelliJ IDE, but after that no support for Haskell project (I'm on Arch linux, IDE from AUR, plugin install inside failed, downloaded it from https://plugins.jetbrains.com/plugin/8258-intellij-haskell/ versions[1] and it worked, at least installation, other plugins installed inside IDE worked partially - some of them were disabled by GUI after error). I'm sorry if I'm asking natural question. I've not found any additional how-tos to make it work... Best regards, Dusan -------- [1] https://plugins.jetbrains.com/plugin/8258-intellij-haskell/versions

Part of your problem is that Arch deliberately hobbles its Haskell
ecosystem, favoring its maintainers over users, so if you install Haskell
and IntelliJ from AUR you need to make sure to build all Haskell projects
or IntelliJ plugins fully dynamic instead of the default static or they
will be broken (and this will cause problems later as upgrades can require
manually rebuilding any dependents). It's generally better to install
anything Haskell-related from scratch on Arch instead of relying on AUR.
On Fri, Dec 6, 2019 at 9:34 AM Dušan Kolář
Dear Café,
let me allow quite naive question, is there any library/tool/plugin supporting rapid application development in Haskell? I mean something that supports code completion, hints, help, code refactoring etc. Similar to Java support in e.g. Eclipse or IntelliJ IDEA.
So far, I've found support for Vim, Eclipse. Nevertheless, my question goes farther - for implicit GUI editor/application development environment like Eclipse. Several years ago, I was able to run something in Eclipse, but not with good results. These days it seems dead (since 2015).
Similarly, for IntelliJ IDEA - installed community version, downloaded Haskell plugin, tried to install additional plugins inside IntelliJ IDE, but after that no support for Haskell project (I'm on Arch linux, IDE from AUR, plugin install inside failed, downloaded it from https://plugins.jetbrains.com/plugin/8258-intellij-haskell/versions and it worked, at least installation, other plugins installed inside IDE worked partially - some of them were disabled by GUI after error).
I'm sorry if I'm asking natural question. I've not found any additional how-tos to make it work...
Best regards,
Dusan
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
-- brandon s allbery kf8nh allbery.b@gmail.com

Hi, There is no IDE for Haskell on par with the high-quality IDEs you have for Java. There are various basic editor integrations that you have to set up manually, and there are various newer efforts to build more integrated tools (such as haskell-ide-engine), but they are still a long shot from what you'd expect as an Eclipse, IntelliJ, or Visual Studio user. Most people currently use one of these integrations together with their editors of choice. For example, I currently mainly use Sublime with ghcid (https://github.com/nh2/ghcid-sublime). The need for and benefit of IDEs in Haskell is less pronounced than in e.g. Java, so you can still develop things very rapidly in Haskell without an IDE. That said, if we had high-quality IDEs available, it would certainly be a further improvement. Also relevant: https://ro-che.info/ccc/26 All attempts to build a successful and economically viable IDE for Haskell, on any platform, seem to have failed so far. Making a good IDE takes years of work, people expect all developer tooling to be open-source (which is a good thing, but extremely few people seem to want to contribute monetarily then), and so things in this space are are moving slowly, driven by people's free time contributions, as they did 8 years ago when I started with Haskell. (Background: I have contributed to various such tools, maintained SublimeHaskell for a while, and have tried out most available Haskell tooling.) Niklas

Am 06.12.19 um 21:12 schrieb Niklas Hambüchen:
All attempts to build a successful and economically viable IDE for Haskell, on any platform, seem to have failed so far. Making a good IDE takes years of work, people expect all developer tooling to be open-source (which is a good thing, but extremely few people seem to want to contribute monetarily then), and so things in this space are are moving slowly, driven by people's free time contributions, as they did 8 years ago when I started with Haskell.
I see that Alan Zimmerman maintains an LSP server (haskell-ide-engine). LSP is supported by most if not all modern IDEs. See https://microsoft.github.io/language-server-protocol/ Disclaimer: I have no idea how stable, complete, or practically useful this all is. I'd expect the LSP support in modern IDEs to be pretty complete but I wouldn't be surprised if there were a bad surprise there, and I have no idea what haskell-ide-engien covers. Regards, Jo

Thank all of you for responses, I've finally given up with IntelliJ IDEA. The Haskell plugins stick on unsupported tools. Moreover, it requires direct installation, no way to make it work with stack. The IDE is not working at all. I'll try your suggestions, thanks a lot. Dusan On sobota 7. prosince 2019 11:37:33 CET Joachim Durchholz wrote:
Am 06.12.19 um 21:12 schrieb Niklas Hambüchen:
All attempts to build a successful and economically viable IDE for Haskell, on any platform, seem to have failed so far. Making a good IDE takes years of work, people expect all developer tooling to be open-source (which is a good thing, but extremely few people seem to want to contribute monetarily then), and so things in this space are are moving slowly, driven by people's free time contributions, as they did 8 years ago when I started with Haskell. I see that Alan Zimmerman maintains an LSP server (haskell-ide-engine). LSP is supported by most if not all modern IDEs. See https://microsoft.github.io/language-server-protocol/
Disclaimer: I have no idea how stable, complete, or practically useful this all is. I'd expect the LSP support in modern IDEs to be pretty complete but I wouldn't be surprised if there were a bad surprise there, and I have no idea what haskell-ide-engien covers.
Regards, Jo _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

I’m using spacemacs with emacs from AUR and find it pretty feature full. It took a bit of configuration but I got basically everythibb I would want out of an IDE: code completion, on the fly syntax checking, code refactoring with hlint, a nice repl, choice of stack or cabal integration, etc Curtis D’Alves
On Dec 10, 2019, at 9:46 AM, Dušan Kolář
wrote: Thank all of you for responses, I've finally given up with IntelliJ IDEA. The Haskell plugins stick on unsupported tools. Moreover, it requires direct installation, no way to make it work with stack. The IDE is not working at all.
I'll try your suggestions, thanks a lot.
Dusan
On sobota 7. prosince 2019 11:37:33 CET Joachim Durchholz wrote:
Am 06.12.19 um 21:12 schrieb Niklas Hambüchen:
All attempts to build a successful and economically viable IDE for Haskell, on any platform, seem to have failed so far. Making a good IDE takes years of work, people expect all developer tooling to be open-source (which is a good thing, but extremely few people seem to want to contribute monetarily then), and so things in this space are are moving slowly, driven by people's free time contributions, as they did 8 years ago when I started with Haskell. I see that Alan Zimmerman maintains an LSP server (haskell-ide-engine). LSP is supported by most if not all modern IDEs. See https://microsoft.github.io/language-server-protocol/
Disclaimer: I have no idea how stable, complete, or practically useful this all is. I'd expect the LSP support in modern IDEs to be pretty complete but I wouldn't be surprised if there were a bad surprise there, and I have no idea what haskell-ide-engien covers.
Regards, Jo _______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.
_______________________________________________ Haskell-Cafe mailing list To (un)subscribe, modify options or view archives go to: http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe Only members subscribed via the mailman list are allowed to post.

On 06-12-19 11:34, Dušan Kolář wrote:
So far, I've found support for Vim, Eclipse. Nevertheless, my question goes farther - for implicit GUI editor/application development environment like Eclipse.
For the UI builder, if you are using gi-gtk, you can use glade to create a UI and load the xml generated with gi-gtk. -- Ruben -- PGP: 4EE9 28F7 932E F4AD

On Fri, Dec 6, 2019, 20:05 Dušan Kolář
Dear Café,
let me allow quite naive question, is there any library/tool/plugin supporting rapid application development in Haskell? I mean something that supports code completion, hints, help, code refactoring etc. Similar to Java support in e.g. Eclipse or IntelliJ IDEA.
So far, I've found support for Vim, Eclipse. Nevertheless, my question goes farther - for implicit GUI editor/application development environment like Eclipse. Several years ago, I was able to run something in Eclipse, but not with good results. These days it seems dead (since 2015).
Old but still worth reading: https://blog.osteele.com/2004/11/ides
participants (7)
-
Brandon Allbery
-
Curtis D'Alves
-
Dušan Kolář
-
Joachim Durchholz
-
Niklas Hambüchen
-
Ruben Astudillo
-
Rustom Mody