Open ckoparkar opened 5 years ago
Thanks for pointing these out. I would very much prefer to get rid of these altogether where possible. For example: how is performance affected if we implement intersectionWithKey
using merge
instead of mergeWithKey'
? For Data.Sequence.{inits,tails}
, I'm pretty sure it should be possible to avoid any hint of partiality. Is it worth the extra complication? How does it affect performance? Until that's been worked out, I suppose it would be best to use case
and error
.
@treeowl ah, good points to keep in mind. Should we also record this comment in it's own ticket? It'll be easy to forget after these warnings are suppressed. Or we can just leave this open.
There are a few
incomplete-uni-patterns
in this library. Since this warning will soon be enabled by -Wall, we should either a) use-Wno-...
, or b) case+error.(1) Data.Sequence.Internal:L3692
(2)
Data.Sequence.Internal:L3707
(3)
Data.IntMap.Internal:L1049
(4)
Data.IntMap.Internal:L1246
(5) Data.IntMap.Internal:L1292