Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.

Union implementation #10

Closed
niteria opened this issue Nov 30, 2016 · 1 comment
Closed

Union implementation #10

niteria opened this issue Nov 30, 2016 · 1 comment

Comments

@niteria
Copy link

niteria commented Nov 30, 2016

You're probably aware of this, but just in case you weren't.

Your union implementation overflows Int for:

iterate (\a -> union a a) a

I needed to implement something like your package for GHC and that's what I ended up with:

https://phabricator.haskell.org/diffusion/GHC/browse/master/compiler/utils/UniqDFM.hs;20c06143a7bfc6548351e610350a8e1c0d8a0bb9$128-136

@phadej
Copy link
Owner

phadej commented Apr 5, 2017

Hmm I guess I can fix it by re-indexing after union.

phadej added a commit that referenced this issue Apr 5, 2017
@phadej phadej closed this as completed in 0fa521e Apr 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants