Wolfgang Jeltsch pushed to branch wip/jeltsch/obtaining-os-handles at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • libraries/base/src/GHC/IO/Handle.hs
    ... ... @@ -125,7 +125,7 @@ import GHC.Internal.IO.Handle.Types
    125 125
     import GHC.Internal.IO.Handle.Internals (withHandle_', flushBuffer)
    
    126 126
     import GHC.Internal.IO.Exception
    
    127 127
            (
    
    128
    -           IOErrorType (IllegalOperation),
    
    128
    +           IOErrorType (InappropriateType),
    
    129 129
                IOException (IOError),
    
    130 130
                ioException
    
    131 131
            )
    
    ... ... @@ -221,7 +221,7 @@ requiringOSHandleOfType osHandleTypeName
    221 221
         osHandleOfTypeRequired :: IOException
    
    222 222
         osHandleOfTypeRequired
    
    223 223
             = IOError Nothing
    
    224
    -                  IllegalOperation
    
    224
    +                  InappropriateType
    
    225 225
                       ""
    
    226 226
                       ("handle does not use " ++ osHandleTypeName ++ "s")
    
    227 227
                       Nothing