Skip to content
Merged
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
4 changes: 2 additions & 2 deletions Network/Socket/Syscall.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import Data.Either (isRight)
import qualified Control.Exception as E
import Foreign.Marshal.Utils (with)
import System.IO.Error (catchIOError)

#if defined(mingw32_HOST_OS)
import Foreign (FunPtr)

Check warning on line 13 in Network/Socket/Syscall.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.14)

The import of ‘Foreign’ is redundant

Check warning on line 13 in Network/Socket/Syscall.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.14)

The import of ‘Foreign’ is redundant

Check warning on line 13 in Network/Socket/Syscall.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.14)

The import of ‘Foreign’ is redundant

Check warning on line 13 in Network/Socket/Syscall.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.4)

The import of ‘Foreign’ is redundant

Check warning on line 13 in Network/Socket/Syscall.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.4)

The import of ‘Foreign’ is redundant

Check warning on line 13 in Network/Socket/Syscall.hs

View workflow job for this annotation

GitHub Actions / build (windows-latest, 9.4)

The import of ‘Foreign’ is redundant
import Foreign.Marshal.Alloc (alloca)
import GHC.Conc (asyncDoProc)
import Network.Socket.Cbits
import System.IO.Error (catchIOError)
# if __IO_MANAGER_WINIO__ >= 2
import qualified GHC.Event.Windows as Mgr
import Foreign.Ptr (wordPtrToPtr)
Expand Down Expand Up @@ -134,7 +134,7 @@

setDontFragment s = when (family == AF_INET) $
#if HAVE_DECL_IP_DONTFRAG || HAVE_DECL_IP_MTU_DISCOVER
setSocketOption s DontFragment 1
setSocketOption s DontFragment 1 `catchIOError` \_ -> return ()
#else
-- do nothing
return ()
Expand Down
Loading