<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>MarshalError</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[ window.onload = function () {pageLoad();setSynopsis("mini_MarshalError.html");}; //]]> </script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">haskell98-2.0.0.1: Compatibility with Haskell 98</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr></table><p class="caption">MarshalError</p></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short">module <a href="../base-4.5.1.0/Foreign-Marshal-Error.html">Foreign.Marshal.Error</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:IOErrorType">IOErrorType</a> </li><li class="src short"><a href="#v:mkIOError">mkIOError</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a> -> <a href="Prelude.html#t:String">String</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="IO.html#t:Handle">Handle</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="Prelude.html#t:FilePath">FilePath</a> -> <a href="Prelude.html#t:IOError">IOError</a></li><li class="src short"><a href="#v:alreadyExistsErrorType">alreadyExistsErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:doesNotExistErrorType">doesNotExistErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:alreadyInUseErrorType">alreadyInUseErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:fullErrorType">fullErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:eofErrorType">eofErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:illegalOperationErrorType">illegalOperationErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:permissionErrorType">permissionErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:userErrorType">userErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></li><li class="src short"><a href="#v:annotateIOError">annotateIOError</a> :: <a href="Prelude.html#t:IOError">IOError</a> -> <a href="Prelude.html#t:String">String</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="IO.html#t:Handle">Handle</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="Prelude.html#t:FilePath">FilePath</a> -> <a href="Prelude.html#t:IOError">IOError</a></li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src">module <a href="../base-4.5.1.0/Foreign-Marshal-Error.html">Foreign.Marshal.Error</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:IOErrorType" class="def">IOErrorType</a> <a href="../base-4.5.1.0/src/GHC-IO-Exception.html#IOErrorType" class="link">Source</a></p><div class="doc"><p>An abstract type that contains a value for each variant of <code><a href="Prelude.html#t:IOError">IOError</a></code>. </p></div><div class="subs instances"><p id="control.i:IOErrorType" class="caption collapser" onclick="toggleSection('i:IOErrorType')">Instances</p><div id="section.i:IOErrorType" class="show"><table><tr><td class="src"><a href="Prelude.html#t:Eq">Eq</a> <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="Prelude.html#t:Show">Show</a> <a href="MarshalError.html#t:IOErrorType">IOErrorType</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:mkIOError" class="def">mkIOError</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a> -> <a href="Prelude.html#t:String">String</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="IO.html#t:Handle">Handle</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="Prelude.html#t:FilePath">FilePath</a> -> <a href="Prelude.html#t:IOError">IOError</a><a href="../base-4.5.1.0/src/System-IO-Error.html#mkIOError" class="link">Source</a></p><div class="doc"><p>Construct an <code><a href="Prelude.html#t:IOError">IOError</a></code> of the given type where the second argument describes the error location and the third and fourth argument contain the file handle and file path of the file involved in the error if applicable. </p></div></div><div class="top"><p class="src"><a name="v:alreadyExistsErrorType" class="def">alreadyExistsErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#alreadyExistsErrorType" class="link">Source</a></p><div class="doc"><p>I/O error where the operation failed because one of its arguments already exists. </p></div></div><div class="top"><p class="src"><a name="v:doesNotExistErrorType" class="def">doesNotExistErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#doesNotExistErrorType" class="link">Source</a></p><div class="doc"><p>I/O error where the operation failed because one of its arguments does not exist. </p></div></div><div class="top"><p class="src"><a name="v:alreadyInUseErrorType" class="def">alreadyInUseErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#alreadyInUseErrorType" class="link">Source</a></p><div class="doc"><p>I/O error where the operation failed because one of its arguments is a single-use resource, which is already being used. </p></div></div><div class="top"><p class="src"><a name="v:fullErrorType" class="def">fullErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#fullErrorType" class="link">Source</a></p><div class="doc"><p>I/O error where the operation failed because the device is full. </p></div></div><div class="top"><p class="src"><a name="v:eofErrorType" class="def">eofErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#eofErrorType" class="link">Source</a></p><div class="doc"><p>I/O error where the operation failed because the end of file has been reached. </p></div></div><div class="top"><p class="src"><a name="v:illegalOperationErrorType" class="def">illegalOperationErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#illegalOperationErrorType" class="link">Source</a></p><div class="doc"><p>I/O error where the operation is not possible. </p></div></div><div class="top"><p class="src"><a name="v:permissionErrorType" class="def">permissionErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#permissionErrorType" class="link">Source</a></p><div class="doc"><p>I/O error where the operation failed because the user does not have sufficient operating system privilege to perform that operation. </p></div></div><div class="top"><p class="src"><a name="v:userErrorType" class="def">userErrorType</a> :: <a href="MarshalError.html#t:IOErrorType">IOErrorType</a><a href="../base-4.5.1.0/src/System-IO-Error.html#userErrorType" class="link">Source</a></p><div class="doc"><p>I/O error that is programmer-defined. </p></div></div><div class="top"><p class="src"><a name="v:annotateIOError" class="def">annotateIOError</a> :: <a href="Prelude.html#t:IOError">IOError</a> -> <a href="Prelude.html#t:String">String</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="IO.html#t:Handle">Handle</a> -> <a href="Prelude.html#t:Maybe">Maybe</a> <a href="Prelude.html#t:FilePath">FilePath</a> -> <a href="Prelude.html#t:IOError">IOError</a><a href="../base-4.5.1.0/src/System-IO-Error.html#annotateIOError" class="link">Source</a></p><div class="doc"><p>Adds a location description and maybe a file path and file handle to an <code><a href="Prelude.html#t:IOError">IOError</a></code>. If any of the file handle or file path is not given the corresponding value in the <code><a href="Prelude.html#t:IOError">IOError</a></code> remains unaltered. </p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.11.0</p></div></body></html>