[commit: base] master: GHC.Windows: more error support (guards, system error strings) (62c6793)

Joey Adams joeyadams at galois.com
Sun Nov 18 02:10:58 CET 2012


Repository : ssh://darcs.haskell.org//srv/darcs/packages/base

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/62c6793dfa242166206ad85c62d4296630756e61

>---------------------------------------------------------------

commit 62c6793dfa242166206ad85c62d4296630756e61
Author: Joey Adams <joeyadams3.14159 at gmail.com>
Date:   Mon Nov 12 21:48:08 2012 -0500

    GHC.Windows: more error support (guards, system error strings)
    
    This changes the output of throwGetLastError to include the system error
    message, rather than the message of our fictitious errno.
    
    It also adds several definitions to GHC.Windows, mostly from the Win32 package.
    The exceptions are:
    
     * getErrorMessage: returns a String, unlike in System.Win32.Types,
       where it returns an LPWSTR.
    
     * errCodeToIOError: new
    
     * c_maperrno_func: new

 GHC/Windows.hs        |  168 +++++++++++++++++++++++++++++++++++++++++++++----
 System/Environment.hs |    2 +-
 cbits/Win32Utils.c    |   69 ++++++++++++--------
 include/HsBase.h      |    1 +
 4 files changed, 200 insertions(+), 40 deletions(-)


Diff suppressed because of size. To see it, use:

    git show 62c6793dfa242166206ad85c62d4296630756e61



More information about the Cvs-libraries mailing list