Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exponentiation for Integers #592

Closed
thomasdziedzic opened this issue Aug 24, 2020 · 2 comments
Closed

Add exponentiation for Integers #592

thomasdziedzic opened this issue Aug 24, 2020 · 2 comments

Comments

@thomasdziedzic
Copy link
Contributor

thomasdziedzic commented Aug 24, 2020

I would like to write something like:
2^64 and get back 18446744073709551616 like in haskell

I know about the Nat version;
Nats have a power function defined under Data.Nat but this is slow for power 2 64

@ohad mentioned I should link this issue to #29 as it might be easy to add this feature along with the Double constants.

@mr-infty
Copy link
Contributor

I've made a draft PR (#1084) that fixes this issue. I've chosen to ignore issue #29, as it seems unrelated. Incidentally, I'm still working on fixing the latter issue, but this will take a bit more time.

@gallais gallais self-assigned this Feb 19, 2021
@gallais
Copy link
Member

gallais commented Feb 22, 2021

Fixed by #1063 (cf. Data.Monoid.Exponentiation)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants