You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be nice to approach this in the same way you approach using GHC.Generics to implement instances. Some definitions for trieEnum, untrieEnum, and enumerateEnum could be provided. Instances would then use newtype a :-> b = SomeTrie (Int :-> b)
Hey,
it would be nice if MemoTrie could handle
Enum
s.An
instance Enum a => HasTrie a
would probably be overlapping, but maybe a newtype or custom function can make it convenient enough.The text was updated successfully, but these errors were encountered: