-
Notifications
You must be signed in to change notification settings - Fork 40
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
Reason behind Math.NumberTheory.Powers.Modular deprecation? #219
Comments
As described in documentation, |
I see - wasn't aware of I also just noticed that |
I believe that type level numbers provide a less error-prone way of doing modular arithmetic, and API should encourage users into this route. A PR, adding a mention of
|
I understand the benefit of having it on type level, probably wouldn't commit to it though - my major concern are (1) the machinery is a bit much converting between type and term level (as demostrated in OP) (2) some constrants tend to spread everywhere, in this case it's I'll see if I can find time to do a PR, probably also refer to this issue should |
I see the module is deprecated in 77e70a1 but I'm not really sure about the rationale, nor do I find any migration guide on this.
Tell me if I'm not using
Data.Mod.Word
right, but it becomes painfully verbose whenm
is only available at runtime, for examplepowModWod
becomes this:Not to mention language pragmas one has to enable.
The text was updated successfully, but these errors were encountered: