
#14730: Missing predicate for "ResourceVanished" IOException/IOErrorType -------------------------------------+------------------------------------- Reporter: bit | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.2.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by vdukhovni): I am about to add some error handling to the "Network.Socket" library to deal with MacOS failing socket shutdown after EOF. MacOS returns EINVAL, which maps to 'InvalidArgument', which is similarly not available. And since some other systems, or a later MacOS may return ENOTCONN which would become 'ResourceVanished', I'd like to second the request to expose the full set of GHC Error types: {{{ -- GHC only: | UnsatisfiedConstraints | SystemError | ProtocolError | OtherError | InvalidArgument | InappropriateType | HardwareFault | UnsupportedOperation | TimeExpired | ResourceVanished | Interrupted }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14730#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler