Menu

1 / 2

Nix + pnpm + Parcel + lydell/elm-safe-virtual-dom

DEV Community·Dwayne Crooks·7 months ago
#xAOqI3cn
#nix#elm#comment#pnpm#parcel
Reading 0:00
15s threshold

On January 12th, Flavio Corpa ( kvothe ) reached out on the #nix channel of the Elm Slack asking for help to make Nix and Parcel work together since he really wanted to use Simon Lydell's elm-safe-virtual-dom in his projects. Presumably, he read Juliano Solanho 's ( omnibs ) post , on NoRedInk's blog, about adopting lydell/elm-safe-virtual-dom that got him excited about the prospects. He had some issues with browsers and auto translation of content that lydell/elm-safe-virtual-dom might be able to fix.

I had recently finished rewriting elm2nix and was on the lookout for opportunities to apply my freshly acquired knowledge so I felt it was fortuitous timing for me that his request was made when I was most able to help.

I approached my solution in two parts:

Rewriting the project to use dwayne/elm2nix .

Adopting lydell/elm-safe-virtual-dom .

If you have Nix installed, you can try out the final result by executing:

nix run github:dwayne/elm-countries-quiz

Enter fullscreen mode

Exit fullscreen…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.