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