#7365: rem function in ghci changes result when using the Int type -----------------------------------------+---------------------------------- Reporter: leonardo | Owner: Type: bug | Status: new Priority: normal | Component: GHCi Version: 7.4.1 | Keywords: Os: Windows | Architecture: x86 Failure: Incorrect result at runtime | Testcase: Blockedby: | Blocking: Related: | -----------------------------------------+----------------------------------
Comment(by michalt): I might be missing something but, I don't really see a bug here. ```3^112``` is way too big to fit into an ```Int```, so it will overflow. On the other hand ```Integer``` is an arbitrary-precision integer and should be able to represent this number correctly... -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7365#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs