{-# LANGUAGE Safe #-}-- |---- Module : Foreign.Marshal.Utils-- Copyright : (c) The FFI task force 2001-- License : BSD-style (see the file libraries/base/LICENSE)---- Maintainer : ffi@haskell.org-- Stability : provisional-- Portability : portable---- Utilities for primitive marshaling--moduleForeign.Marshal.Utils (-- * General marshalling utilities-- ** Combined allocation and marshallingwith ,new ,-- ** Marshalling of Boolean values (non-zero corresponds to 'True')fromBool ,toBool ,-- ** Marshalling of Maybe valuesmaybeNew ,maybeWith ,maybePeek ,-- ** Marshalling lists of storable objectswithMany ,-- ** Haskellish interface to memcpy and memmove-- | (argument order: destination, source)copyBytes ,moveBytes ,-- ** Filling up memory area with required valuesfillBytes )whereimportGHC.Internal.Foreign.Marshal.Utils