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
b5b9d5e8
Commit
b5b9d5e8
authored
Jun 04, 2008
by
simonpj
Browse files
Stop rebindable9 relying on Control.Monad.Identity
parent
7d3ceb38
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/rebindable/rebindable9.hs
View file @
b5b9d5e8
...
...
@@ -5,7 +5,12 @@
module
Foo
where
import
qualified
Prelude
import
Prelude
hiding
(
Monad
(
..
))
import
Control.Monad.Identity
(
Identity
(
..
))
newtype
Identity
a
=
Identity
{
runIdentity
::
a
}
instance
Prelude
.
Monad
Identity
where
return
a
=
Identity
a
m
>>=
k
=
k
(
runIdentity
m
)
class
Bind
m1
m2
m3
|
m1
m2
->
m3
where
(
>>=
)
::
m1
a
->
(
a
->
m2
b
)
->
m3
b
...
...
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