-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hi there!
Many thanks for making this library.
I encountered the following issue while experimenting within ghci:
> :set -XTypeApplications
> import Data.Map.Strict (Map)
> import Data.Universe.Class
> take 1 $ universe @(Map Word Word)
*** Exception: stack overflowThe issue seems to be related to the cardinality of the key type, since:
> take 1 $ universe @(Map Word ())
*** Exception: stack overflow Additionally:
> cardinality @(Map Word Word)
Tagged(does not terminate, and CPU spins at 100%)
Perhaps I'm using the library incorrectly?
Using a type with a much smaller cardinality works as I would expect:
> cardinality @(Map Bool Bool)
Tagged 9Details of my environment:
universe-base == 1.1.3- GHC 8.10.7
Let me know if you need me to provide any more details, am happy to help.
Many thanks again!
Jonathan
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels