GHC issueshttps://gitlab.haskell.org/ghc/ghc/-/issues2019-07-07T19:05:31Zhttps://gitlab.haskell.org/ghc/ghc/-/issues/3070floor(0/0) should not be defined2019-07-07T19:05:31Zcarettefloor(0/0) should not be definedfloor(0/0) returns some giant negative integer - it should return NaN or undefined.
The bug appears to be in some implementation of 'properFraction' in the standard library.
\[from Andrej Bauer, from Barak Pearlmutter (from ???)\]
<de...floor(0/0) returns some giant negative integer - it should return NaN or undefined.
The bug appears to be in some implementation of 'properFraction' in the standard library.
\[from Andrej Bauer, from Barak Pearlmutter (from ???)\]
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 6.10.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Prelude |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"floor(0/0) should not be defined","status":"New","operating_system":"","component":"Prelude","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.10.1","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"floor(0/0) returns some giant negative integer - it should return NaN or undefined.\r\n\r\nThe bug appears to be in some implementation of 'properFraction' in the standard library.\r\n\r\n[from Andrej Bauer, from Barak Pearlmutter (from ???)]","type_of_failure":"OtherFailure","blocking":[]} -->8.0.1squadettesquadette