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 overflow
The 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 9
Details 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
Hi there!
Many thanks for making this library.
I encountered the following issue while experimenting within
ghci:The issue seems to be related to the cardinality of the key type, since:
Additionally:
(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:
Details of my environment:
universe-base == 1.1.3Let me know if you need me to provide any more details, am happy to help.
Many thanks again!
Jonathan