Extracting components of fractions.
Minimal complete definition: properFraction
RealWorld is deeply magical. It is primitive, but it is not unlifted (hence ptrArg). We never manipulate values of type RealWorld; it's only used in the type system, to parameterise State#.
Write a floating point value to a Builder.
general coercion to fractional types
Resize a memory area that was allocated with malloc or mallocBytes to the size needed to store values of type b. The returned pointer may refer to an entirely different memory area, but will be suitably aligned to hold values of type b. The contents of the referenced memory area will be the same as of the original pointer up to the minimum of the original size and the size of values of type b.
If the argument to realloc is nullPtr, realloc behaves like malloc.
Adjust the size of an array
Adjust the size of an array including an extra position for the end marker.
Resize a memory area that was allocated with malloc or mallocBytes to the given size. The returned pointer may refer to an entirely different memory area, but will be sufficiently aligned for any of the basic foreign types that fits into a memory block of the given size. The contents of the referenced memory area will be the same as of the original pointer up to the minimum of the original size and the given size.
If the pointer argument to reallocBytes is nullPtr, reallocBytes behaves like malloc. If the requested size is 0, reallocBytes behaves like free.
Extracts the real part of a complex number.
Show a signed RealFloat value to full precision, using standard decimal notation for arguments whose absolute value lies between 0.1 and 9,999,999, and scientific notation otherwise.
A really simple and trivial XML parser using the Parsec library
Adjust the storage area for an element in the pool to the given size of the required type.
Adjust the size of an array in the given pool.
Adjust the size of an array with an end marker in the given pool.
Adjust the storage area for an element in the pool to the given size.
GHC represents an IO action internally as a function from one state of the world to the next:
> State# RealWorld -> (# State# RealWorld, a #)
This module provides a very useful capability stemming directly from this representation: the ability to save the current state of the universe and restore it later. This provides a way to "undo" certain types of side effects in the IO monad:
> import Acme.Missiles
> import Acme.RealWorld
> main :: IO ()
> main = do
> -- Save the current state of the universe
> world_as_we_know_it <- getWorld
> -- Cause serious international side effects
> -- After realizing that was a terrible, terrible mistake, restore the
> -- pre-war state of the universe.
> putWorld world_as_we_know_it
Show more results