Closed soulomoon closed 2 years ago
It poped up in discussions in the past.
I've not yet internalized the design semantics of all types of PatternSynonyms application in the code, but probably it is just the time to do so.
Liking the result in #1046.
work is done for bidirectional patterns
In
Value.hs
It is really cool to have the correspondence between nix and haskell.These are how the conversion between nix and haskell currently are.
mkNV*
.NV*
.But it seems superfluous since these two can actually be merged together by switching the PatternSynonyms from unidirectional to bidirectional. We would have unified constructor and destructor for values.
(Comonad f, Applicative f)
to make it work.I have a working draft here #1046, hope you guys could review it and give advices.