Skip to content

Commit 9fd38af

Browse files
committed
Add type annotation to catchIO argument
1 parent 78b9e47 commit 9fd38af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ run options = do
5252
Nothing -> do
5353
#if defined(wasm32_HOST_ARCH)
5454
liftIO $ setFdOption stdInput NonBlockingRead True
55-
`catchIO` (\ e -> hPutStrLn stderr $ "Failed to enable nonblocking on stdin: " ++ (show e) ++ "\nThe WASM module might not behave correctly.")
55+
`catchIO` (\ (e :: IOError) -> hPutStrLn stderr $ "Failed to enable nonblocking on stdin: " ++ (show e) ++ "\nThe WASM module might not behave correctly.")
5656
#endif
5757
runServer (serverDefn options)
5858
where

0 commit comments

Comments
 (0)