Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
2b670a79
Commit
2b670a79
authored
Nov 06, 2008
by
Simon Marlow
Browse files
disable MonadPlus instance that doesn't compile with 6.6
parent
904addb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/utils/IOEnv.hs
View file @
2b670a79
...
...
@@ -139,9 +139,15 @@ unsafeInterleaveM (IOEnv m) = IOEnv (\ env -> unsafeInterleaveIO (m env))
-- For use if the user has imported Control.Monad.Error from MTL
-- Requires UndecidableInstances
#
if
__GLASGOW_HASKELL__
>
606
-- for some reason, this doesn't compile with GHC 6.6:
-- utils/IOEnv.hs:144:33:
-- No instance for (MonadPlus IO)
-- arising from use of `mplus' at utils/IOEnv.hs:144:33-67
instance
MonadPlus
IO
=>
MonadPlus
(
IOEnv
env
)
where
mzero
=
IOEnv
(
const
mzero
)
m
`
mplus
`
n
=
IOEnv
(
\
env
->
unIOEnv
m
env
`
mplus
`
unIOEnv
n
env
)
#
endif
----------------------------------------------------------------------
-- Accessing input/output
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment