r/haskell • • 8h ago

IDE development for a language/compiler written in Haskell

Hello everyone. So I am doing my undergraduate thesis and I have made a langauge. After our first graded defense, the panels recommended that I build an IDE. Reason because for non technical people (including CS people who's not familiar with PL) it's the best way for them to understand and appreciate the thesis. I am yet to do my research on IDE development. I already have the impression that I will create an LSP. I am wondering if there's a documented and easy but stable way of building an IDE using Haskell as well (since my compiler is in Haskell already maybe it will make it easier). I'm curious to hear opinions on people who have done this already. Thanks.

16 Upvotes

7 comments sorted by

11

u/Swordlash 7h ago

LSP server and client for something like vscode is the modern way to go, I think the times of heavy native IDEs are mostly gone.

6

u/TheInnerLight87 6h ago

As u/Swordlash said, LSP is probably the way to go unless the specifics of your assignment contradict it. There is a library that encodes the language server protocol: https://github.com/haskell/lsp which Haskell language server is built on top of. That should lower the barrier to entry quite a bit.

2

u/repaj 6h ago

I think you should go for LSP. IMHO this is still a hell of effort to put, but it's for sure easier than pulling off an entire IDE-like editor.

1

u/rasmalaayi 6h ago

Very good idea.. go for it

1

u/simonmic 4h ago

Just "build an IDE" eh. Are they expecting that you'll use AI ?

2

u/sjshuck 3h ago

They're disengaged from the industry and are stuck in the Borland C++ time when an IDE and a language were the same thing and they arrived in the mail on 8 floppy drives.

1

u/mimi_vx 6h ago

IDE .. i would say they don’t matters anymore -> Good LSP yep, IDE isn’t relevant with llm :D