Reintroduce typelevel root paths, turn current StorePath
into SomeStorePath
#148
Labels
core
`hnix-store-core` related
StorePath
into SomeStorePath
#148
While playing with
safe-money
library, I've realized that we don't need to commit onTypeLits
and type level onlyStorePath
and we can have both variants and couple of utility functions to turn one into other when/if needed.I've quickly drafted the following (quite similar to
Dense
andSomeDense
fromsafe-money
+ some questionable field duplication) and it looks plausible. After it compiled I went and checked prior implementation by @shlevy and it's quite similar, with the difference that this allowsSomeStorePaths
when we don't know/care about store root.The text was updated successfully, but these errors were encountered: