<div dir="auto">toEnum and fromEnum will be coercions for the types you're talking about anyway.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jun 29, 2019, 1:06 PM Georg Rudoy <<a href="mailto:0xd34df00d@gmail.com">0xd34df00d@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">сб, 29 июн. 2019 г. в 13:01, Henning Thielemann <<a href="mailto:lemming@henning-thielemann.de" target="_blank" rel="noreferrer">lemming@henning-thielemann.de</a>>:<br>
> There is already the enummapset package.<br>
<br>
Isn't it using fromEnum/toEnum under the hood, which might have bigger<br>
performance penalty than `coerce`?<br>
<br>
On the other hand, sure, the original suggestion can also be made as a<br>
separate library wrapping IntMap/IntSet and all the calls to coerce.<br>
I'm happy with that approach too.<br>
<br>
-- <br>
  Georg Rudoy<br>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank" rel="noreferrer">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>