Hi. On Mon, Jul 30, 2012 at 8:47 AM, Евгений Пермяков <permea...@gmail.com> wrote: > Can someone tell me if there are any primitives, that used to detect machine > type overflows, in ghc haskell ? I perfectly understand, that I can build > something based on preconditioning of variables, but this will kill any > performance, if needed.
There's http://hackage.haskell.org/package/safeint/ It's not implemented quite as efficiently as it theoretically could be, but it might do more or less what you want. Cheers, Andres -- Andres Löh, Haskell Consultant Well-Typed LLP, http://www.well-typed.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe