Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
This module is used as the prelude module inside Caramia.
Documentation
safeFromIntegral :: forall a b. (Num a, Integral a, Num b, Integral b) => a -> b Source
Similar to fromIntegral
but raises a user error if the source
integer cannot be represented in the target type.
This cannot turn an integral into a non-integral type.
atomicModifyIORef_' :: IORef a -> (a -> a) -> IO () Source
Same as atomicModifyIORef'
but does not return a value.