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
e7a1fd1d
Commit
e7a1fd1d
authored
Oct 02, 2002
by
erkok
Browse files
[project @ 2002-10-02 02:04:44 by erkok]
typos never end.
parent
c2237179
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/docs/users_guide/glasgow_exts.sgml
View file @
e7a1fd1d
...
...
@@ -2658,7 +2658,7 @@ As you can guess <literal>justOnes</literal> will evaluate to <literal>Just [1,1
</para>
<para>
The MonadFix library introduces the <literal>MonadFix</literal> class. It's definition is:
The
Control.
Monad
.
Fix library introduces the <literal>MonadFix</literal> class. It's definition is:
</para>
<programlisting>
class Monad m => MonadFix m where
...
...
@@ -2684,13 +2684,13 @@ than <literal>do</literal>).
<listitem><para>
If you want to declare an instance of the <literal>MonadFix</literal> class for one of
your own monads, or you need to refer to the class name <literal>MonadFix</literal> in any other way (for instance in
writing a type constraint), then your program should <literal>import Control.Monad.MonadFix</literal>.
your own monads, or you need to refer to the class name <literal>MonadFix</literal> in any other way (for
instance when writing a type constraint), then your program should
<literal>import Control.Monad.MonadFix</literal>.
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.) To be on the safe side, of course, you can
simply import it in all cases.
be automatically available.
To be on the safe side, of course, you can simply import it in all cases.
</para></listitem>
<listitem><para>
...
...
@@ -2700,11 +2700,10 @@ As with other extensions, ghc should be given the flag <literal>-fglasgow-exts</
</para>
<para>
Historical note: The originial implementation of the mdo-notation, and most
of the existing documents, use the names
<literal>MonadRec</literal> for the class, and
<literal>Control.Monad.MonadRec</literal> for the library. These names
are no longer supported.
Historical note: The old implementation of the mdo-notation (and most
of the existing documents) used the name
<literal>MonadRec</literal> for the class and the corresponding library.
This name is no longer supported.
</para>
<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