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
Hi! I was wondering if we could provide an orphan instance for Numeric.Natural? At the moment, I am using something naive like:
fToMemoize :: Natural -> a
fToMemoize = ...
fToMemoizeI :: Integer -> a
fToMemoizeI = fToMemoize . fromIntegral
fMemoized :: Natural -> a
fMemoized = memoize fToMemoizeI . fromIntegral
I had a look at the definition of Natural, and it is either a simple WordXX, or a big natural. The big natural is, as far as I can see, similarly built as 'Integers, and could be converted to a list (like it is done for the Memoizableinstance ofInteger`). Could you please help out here? Thank you!
The text was updated successfully, but these errors were encountered:
Hi! I was wondering if we could provide an orphan instance for
Numeric.Natural
? At the moment, I am using something naive like:I had a look at the definition of
Natural
, and it is either a simpleWordXX
, or a big natural. The big natural is, as far as I can see, similarly built as 'Integers, and could be converted to a list (like it is done for the
Memoizableinstance of
Integer`). Could you please help out here? Thank you!The text was updated successfully, but these errors were encountered: