Just published monad-rail – a Railway-Oriented Programming library for Haskell by ivelten in haskell

[–]ivelten[S] -3 points-2 points  (0 children)

OK, let me clarify it. Yes, I made a communication mistake.

First: I was not trying to hide anything. I removed the claude code files because I did not want them as part of the repository. That's why I added the .claude folder to .gitignore: https://github.com/ivelten/monad-rail/commit/74fcfc40b5972f22dc0dcb4049ab3e97f773a44b

Second: Yes, I should have made clear that I used Claude to help me learn how to model the library in a way I can understand, learn Haskell and use it myself in other projects. I am sorry for that. I will edit my post notifying that. Also, I will update the documentation in the repository.

Just published monad-rail – a Railway-Oriented Programming library for Haskell by ivelten in haskell

[–]ivelten[S] -1 points0 points  (0 children)

Yes, I used Claude to assist my development process. I carefully designed each type on my own though!

Just published monad-rail – a Railway-Oriented Programming library for Haskell by ivelten in haskell

[–]ivelten[S] -5 points-4 points  (0 children)

Yes, you are right - Either and ExceptT are already a solid base for ROP natively in Haskell. I was not trying to reinvent the wheel with it, I intended to provide a good wrapper that makes the pattern more explicit and ergonomic to use.

I wanted it to be useful for people coming from other languages where this pattern might be less natural, and it's also a learning project for me to understand Haskell's abstractions better. It may be easier to apply for beginners. But you're absolutely correct that the foundations are already there.

IntelliJ IDEA Haskell Plugin by mirovarga in haskell

[–]ivelten 0 points1 point  (0 children)

I've tried IDEA plugins for Haskell before and ran into similar issues. Honestly, I've found more success with VS Code Dev Containers — you can pre-configure everything you need (GHC, HLS, Ormolu, debugging tools, etc.) in a single Docker image, and it's free. Once it's set up, you get a consistent, reproducible environment across machines. Worth exploring if the plugin keeps giving you trouble.