
#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): In addition, it would be really cool if the "ioe_errno" value were accessible, at least as a number so it could be logged. While the associated C macro names are not all available on every platform, and any mapping to symbolic Haskell names would be unavoidably incomplete, a more ambitious interface might define any missing macros (that are common enough on most platforms to be supported) to 0 on platforms that lack that macro, and then a newtype + a set of PatternSynonyms would provide a usable Enum-like interface. As in the "Errno.hsc" example. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14730#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler