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

Add a copy of void, since base's version is now deprecated.

parent 314d356b
No related branches found
No related tags found
No related merge requests found
......@@ -17,4 +17,10 @@ module Foreign.Marshal.Error (
void -- IO a -> IO ()
) where
import "base" Foreign.Marshal.Error
import "base" Foreign.Marshal.Error hiding (void)
-- |Discard the return value of an 'IO' action
--
void :: IO a -> IO ()
void act = act >> return ()
-- base's version is deprecated
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