Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data HandleOS osHandle = HandleOS {}
- closeHandleOS ∷ HandleOS osHandle → (osHandle → IO ()) → IO ()
- isHandleClosedException ∷ IOException → Bool
- isOpenHandleOS ∷ HandleOS osHandle → IO Bool
- withOpenHandle ∷ String → HandleOS osHandle → (osHandle → IO a) → IO a
Documentation
data HandleOS osHandle Source #
File handlers for the IO instance for HasFS. This is parametric on the os.
The FilePath
is used to improve error messages.
The MVar
is used to implement close
.
osHandle is Fd for unix and HANDLE for Windows.