[commit: packages/Win32] Mistuke-fix-build, depend-os-windows, fix-appveyor-curl-ussue, master, win32-2.5.4.1-ghc-8.2: tests: Remove defintion of SetLastError (2da0a49)

git at git.haskell.org git at git.haskell.org
Mon Apr 17 21:28:20 UTC 2017


Repository : ssh://git@git.haskell.org/Win32

On branches: Mistuke-fix-build,depend-os-windows,fix-appveyor-curl-ussue,master,win32-2.5.4.1-ghc-8.2
Link       : http://git.haskell.org/packages/Win32.git/commitdiff/2da0a493acf84e1dd2936b4cca668483cba08032

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

commit 2da0a493acf84e1dd2936b4cca668483cba08032
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Tue Jan 24 14:04:39 2017 -0500

    tests: Remove defintion of SetLastError
    
    It is now provided by System.Win32.Types.


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

2da0a493acf84e1dd2936b4cca668483cba08032
 tests/lasterror.hs | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/lasterror.hs b/tests/lasterror.hs
index 0b57985..21fcbae 100644
--- a/tests/lasterror.hs
+++ b/tests/lasterror.hs
@@ -14,6 +14,3 @@ main = do
   takeMVar m
   r <- getLastError
   when (r /= 42) $ fail ("wrong: " ++ show r)
-
-foreign import stdcall unsafe "windows.h SetLastError"
-  setLastError :: ErrCode -> IO ()



More information about the ghc-commits mailing list