Nix recipes for Haskellers - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Sridhar Ratnakumar

Hello, if you are looking to use Nix, I'd appreciate your feedback on this article: https://www.srid.ca/haskell-nix.html

Ben Kolera

+ :100: Use of Oswald .

Ben Kolera

My biggest feedback is that it doesn't explain why I may want to do all of this extra effort. For someone that hasn't drunk the kool aid yet, this is important. It's probably worth mentioning something like obelisk thunks, because you end up needing something like that pretty quickly and it's nice to get told a pattern for it.

Sridhar Ratnakumar

Thanks! I'll add a short intro paragraph briefing on the why, with an external link to full rationale.

Sridhar Ratnakumar

@Ben Kolera Can you elaborate on the obelisk thunk thing? I've used obelisk thunks, but this article uses source-overrides and builtins.fetchTarball - is there more than can be talked about here?

Ben Kolera

That's really not fun to bump things when they need bumping. I often find I want something like https://github.com/benkolera/nix/tree/master/home-manager/home-overlays/stylish-haskell even when I don't have obelisk.

Contribute to benkolera/nix development by creating an account on GitHub.
Ben Kolera

It's also github specific to use the tarball, lol.

Sridhar Ratnakumar

I think obelisk thunks would be overkill for non-reflex users. Is there a recommended tool/library to do this ? Maybe this? https://github.com/nmattia/niv

Easy dependency management for Nix projects. Contribute to nmattia/niv development by creating an account on GitHub.
Ben Kolera

I dunno. I want obelisk thunk everywhere. ob thunk unpack is so handy!!

Sridhar Ratnakumar

But it is good that you bring this POV, as I never thought of it! At minimum, I will modify the article to mention this pain point linking to some proposed solutions.

Sridhar Ratnakumar

Time to create an open source project (like niv) that extracts hackGet out of reflex-platform, and ob thunk .. out of obelisk :working_on_it:

Rizary

Time to create an open source project (like niv) that extracts hackGet out of reflex-platform, and ob thunk .. out of obelisk :working_on_it:

This hackGet is really handy. one thing that I still try to understand is re ob thunk