src/System/Log/Handler/Syslog.hs:266:19: warning: [-Wincomplete-patterns]
Pattern match(es) are non-exhaustive
In a case alternative:
Patterns not matched:
network-3.1.2.5:Network.Socket.Types.SocketType
(Foreign.C.Types.CInt (GHC.Int.I32# _))
|
266 | sent <- case sock_type sh of
| ^^^^^^^^^^^^^^^^^^^^...
With
-Wall
I get:https://github.com/haskell-hvr/hslogger/blob/4c3ca34ea91fc00774a505d8d2a2aca8ece7a76c/src/System/Log/Handler/Syslog.hs#L263-L269
Compare https://hackage.haskell.org/package/network-3.1.2.5/docs/Network-Socket.html#t:SocketType.
If this lack of coverage is unproblematic, it would be nice if there was at least a comment that explains the issue,