Open Gurkenglas opened 8 years ago
I am currently making a typeclass that relates Alternatives and Alts that are differing by their empty for laziness and profit. Maybe belongs to Identity, but Identity doesn't have an Alt instance yet. It should have one, where (<!>) = const.
Alternative
Alt
empty
Maybe
Identity
(<!>) = const
I have asked Edward in #haskell-lens whether such an instance would make sense – waiting for a response.
I am currently making a typeclass that relates
Alternative
s andAlt
s that are differing by theirempty
for laziness and profit.Maybe
belongs toIdentity
, butIdentity
doesn't have anAlt
instance yet. It should have one, where(<!>) = const
.