luqui / data-memocombinators

Pure memoization combinators for Haskell
37 stars 7 forks source link

Add enum combinator? #8

Closed nh2 closed 10 years ago

nh2 commented 10 years ago
enum :: Enum a => Memo a
enum = wrap toEnum fromEnum integral

This allows to memo everything that is an Enum.

Works for own custom data types, and also for Int etc.

luqui commented 10 years ago

I am very busy right now. If you would like to make a pull request and bump the version according to the PVP, I will pull and upload.

nh2 commented 10 years ago

Sure!

luqui commented 10 years ago

Thanks, uploaded!