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
24e4b6ed
Commit
24e4b6ed
authored
Oct 01, 2002
by
erkok
Browse files
[project @ 2002-10-01 17:48:37 by erkok]
wibbles on mdo-documentation
parent
cd42a4e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/docs/users_guide/glasgow_exts.sgml
View file @
24e4b6ed
...
...
@@ -2671,8 +2671,8 @@ then that monad must be declared an instance of the <literal>MonadFix</literal>
For details, see the above mentioned reference.
</para>
<para>
The <literal>MonadFix</literal>
library
automatically
declares
List, Maybe, IO, and
state monads (both lazy and strict)
as instances of the <literal>MonadFix</literal> class
.
The
following instances of
<literal>MonadFix</literal>
is
automatically
provided:
List, Maybe, IO, and
state monads (both lazy and strict).
</para>
<para>
There are three important points in using the recursive-do notation:
...
...
@@ -2689,7 +2689,8 @@ writing a type constraint), then your program should <literal>import Control.Mon
Otherwise, you don't need to import any special libraries to use the mdo-notation. That is,
as long as you only use the predefined instances mentioned above, the mdo-notation will
be automatically available. (Note: This differs from the Hugs implementation, where
<literal>MonadFix</literal> should always be imported.)
<literal>MonadFix</literal> should always be imported.) To be on the safe side, of course, you can
simply import it in all cases.
</para></listitem>
<listitem><para>
...
...
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