Skip to content
Snippets Groups Projects
Commit c264a969 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1998-01-19 13:17:04 by simonm]

IO.isUserError returns Bool in Haskell 1.4, not Maybe.
parent 947ef360
No related merge requests found
......@@ -186,8 +186,8 @@ isPermissionError _ = False
isDoesNotExistError (IOError _ NoSuchThing _) = True
isDoesNotExistError _ = False
isUserError (IOError _ UserError s) = Just s
isUserError _ = Nothing
isUserError (IOError _ UserError _) = True
isUserError _ = False
\end{code}
Showing @IOError@s
......
......@@ -94,7 +94,7 @@ hWaitForInput :: Handle -> Int -> IO Bool
-- isFullError :: IOError -> Bool
-- isIllegalOperation :: IOError -> Bool
-- isPermissionError :: IOError -> Bool
-- isUserError :: IOError -> Maybe String
-- isUserError :: IOError -> Bool
--IOHandle:openFile :: FilePath -> IOMode -> IO Handle
--IOHandle:stdin, stdout, stderr :: Handle
\end{code}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment