We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5e6a3b commit bdb5d8bCopy full SHA for bdb5d8b
src/Graphics/Rendering/OpenGL/GL/IOState.hs
@@ -40,6 +40,9 @@ instance Functor (IOState s) where
40
instance Monad (IOState s) where
41
return a = IOState $ \s -> return (a, s)
42
m >>= k = IOState $ \s -> do (a, s') <- runIOState m s ; runIOState (k a) s'
43
+#if MIN_VERSION_base(4,13,0)
44
+instance MonadFail (IOState s) where
45
+#endif
46
fail str = IOState $ \_ -> fail str
47
48
getIOState :: IOState s (Ptr s)
0 commit comments