Closed
Description
We now have a Or datatype in -data which is mostly lifted straight out of scalaz.
Right now it is
data Or a = LOr a | Ror a
We thought about -Or and Or- for constructors but the compiler seemed unhappy about. I don't think anyone loves the name LOr or ROr, but nobody seems to have a slam-dunk replacement. We're going to move on for now, but the discussion around this raised several questions we should revisit:
- What are good names for these constructors, some suggestions i've heard:
Bad | Good
\Or | Or/
Dead | Alive - do we want public constructors at all on these? Can we have just a catamorphism? Can we have smart constructors and extractors so that we can still pattern match?
- Do we want to tend not to just lift code out of scalaz, perhaps we would re-think some of the decisions made in scalaz and tend to have a better chance of improving things if we are writing everything new
Metadata
Metadata
Assignees
Labels
No labels