Re:More Good Programming Quotes (2016)
by joncampbelldev on Monday July 24, 2017 @09:00AM
(#14838034)
How easily extendable is that without the original source (e.g. when using as a library)? From what I can see it looks like if you can't edit the case statements you can't extend the functionality (e.g. expression problem stuff).
However, I'm not a haskell pro, so I don't know if I'm just missing the obvious here.
Re:More Good Programming Quotes (2016)
by tome on Friday July 28, 2017 @05:54AM
(#14873130)
Very easy! And that's (one reason) why it's written the way it is. Any PrimQueryFold can be extended to a fold on a type which extends PrimQuery with additional constructors.
However, I'm not a haskell pro, so I don't know if I'm just missing the obvious here.