Skip to content

Restore compatibility with older GHC #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions System/Win32/NamedPipes.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
{-# LANGUAGE CPP #-}
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE MultiWayIf #-}
{-# LANGUAGE NumericUnderscores #-}

-- | For full details on the Windows named pipes API see
-- <https://docs.microsoft.com/en-us/windows/desktop/ipc/named-pipes>
Expand Down Expand Up @@ -261,7 +260,7 @@ connect fileName dwDesiredAccess dwSharedMode lpSecurityAttributes dwCreationDis
$ throwIO e
-- all pipe instance were busy, wait 20s and retry; we ignore the
-- result
_ <- waitNamedPipe fileName 5_000
_ <- waitNamedPipe fileName 5000
connectLoop

Right h -> pure h
Expand Down
2 changes: 1 addition & 1 deletion include/tlhelp32_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* tlhelp32.h is not included in MinGW, which was shipped with the 32-bit
* Windows version of GHC prior to the 7.10.3 release.
*/
#if __GLASGOW_HASKELL__ > 708
#if __GLASGOW_HASKELL__ >= 710
#else
// Declarations from tlhelp32.h that Win32 requires
#include <windows.h>
Expand Down