[Git][ghc/ghc][wip/jeltsch/obtaining-os-handles] Change `IllegalOperation` to `InappropriateType`

Wolfgang Jeltsch pushed to branch wip/jeltsch/obtaining-os-handles at Glasgow Haskell Compiler / GHC Commits: 4f9dbc83 by Wolfgang Jeltsch at 2025-09-09T22:03:38+03:00 Change `IllegalOperation` to `InappropriateType` - - - - - 1 changed file: - libraries/base/src/GHC/IO/Handle.hs Changes: ===================================== libraries/base/src/GHC/IO/Handle.hs ===================================== @@ -125,7 +125,7 @@ import GHC.Internal.IO.Handle.Types import GHC.Internal.IO.Handle.Internals (withHandle_', flushBuffer) import GHC.Internal.IO.Exception ( - IOErrorType (IllegalOperation), + IOErrorType (InappropriateType), IOException (IOError), ioException ) @@ -221,7 +221,7 @@ requiringOSHandleOfType osHandleTypeName osHandleOfTypeRequired :: IOException osHandleOfTypeRequired = IOError Nothing - IllegalOperation + InappropriateType "" ("handle does not use " ++ osHandleTypeName ++ "s") Nothing View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4f9dbc836f4cd02906321aa59268fbb2... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/4f9dbc836f4cd02906321aa59268fbb2... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Wolfgang Jeltsch (@jeltsch)