File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,9 @@ pattern CustomSockOpt xy <- ((\(SockOpt x y) -> (x, y)) -> xy)
296
296
where
297
297
CustomSockOpt (x, y) = SockOpt x y
298
298
299
+ #if __GLASGOW_HASKELL__ >= 806
299
300
{-# COMPLETE CustomSockOpt #-}
301
+ #endif
300
302
#ifdef SO_LINGER
301
303
data StructLinger = StructLinger CInt CInt
302
304
Original file line number Diff line number Diff line change @@ -325,7 +325,9 @@ isSupportedSocketType = (/= UnsupportedSocketType)
325
325
-- | Pattern for a general socket type.
326
326
pattern GeneralSocketType :: CInt -> SocketType
327
327
pattern GeneralSocketType n = SocketType n
328
+ #if __GLASGOW_HASKELL__ >= 806
328
329
{-# COMPLETE GeneralSocketType #-}
330
+ #endif
329
331
-- The actual constructor is not exported, which keeps the internal
330
332
-- representation private, but for all purposes other than 'coerce' the
331
333
-- above pattern is just as good.
@@ -411,7 +413,9 @@ unpackFamily = Family
411
413
-- @since 3.2.0.0
412
414
pattern GeneralFamily :: CInt -> Family
413
415
pattern GeneralFamily n = Family n
416
+ #if __GLASGOW_HASKELL__ >= 806
414
417
{-# COMPLETE GeneralFamily #-}
418
+ #endif
415
419
-- The actual constructor is not exported, which keeps the internal
416
420
-- representation private, but for all purposes other than 'coerce' the
417
421
-- above pattern is just as good.
You can’t perform that action at this time.
0 commit comments