How to replace a core package (elm/url) with a fork?

Given what I am reading, it sounds like the best path is to create a USER/url that depends on elm/url and reexports everything except for the functions you want to change.

As noted earlier, the function in question is a pure function, so you can the define it however you want.

I would like to fix this, but there are a great deal of projects going on right now that make it hard for core team folks to look into this right this second. Steps I’ll need to do are (1) verify with standards the behavior and (2) figure out if this is a MAJOR change. I also am trying to do 0.19.1 and unblock some work in elm/core. I understand that it’s frustrating that things that look easy can actually be very difficult in practice.

I hope that the solution I mention here (i.e. a USER/url package with re-exports) is the path you will take for now.

8 Likes