Re: Correct parsers for bounded integral values

Jeff Clites via Haskell-Cafe <[email protected]> Sun, 20 Jul 2025 17:24:47 -0700
Newsgroups gmane.comp.lang.haskell.cafe
Message-ID <[email protected]>
> On Jul 20, 2025, at 9:43 AM, Brandon Allbery <[email protected]> wrote:
> 
> I would like to point out that if you want correctness, you should use `Integer`. If you are using a bounded `Integral` it is expected that you are doing so because you value speed over correctness. They are _not_ `Z/n`, they are hardware values that have little to do with formal mathematics.

But aren't they de-facto modular integers?

Jeff
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.