rounded-0.1: Correctly-rounded arbitrary-precision floating-point arithmetic

Copyright(C) 2012-2014 Edward Kmett Daniel Peebles
(C) 2013-2017 Claude Heiland-Allen
LicenseLGPL
MaintainerClaude Heiland-Allen <claude@mathr.co.uk>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Numeric.MPFR.Raw

Description

This module contains FFI imports. In a future release they may switch at runtime between safe and unsafe calls depending on cost estimates, but for now thie module simply re-exports Safe.

Note: beware issues with the GHC threaded runtime if you need the MPFR status flags (which use OS thread local storage aka TLS). Even if you use forkOS to create a bound thread whose FFI will all be done by the same OS thread, sparks created with par may run on a different OS thread and lead to unpredictable behaviour.

Documentation