diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-06-12 20:06:31 +0200 |
---|---|---|
committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-06-12 20:52:50 +0200 |
commit | b07dcccd2219eb2d08868bc6144f289b4e0aadf1 (patch) | |
tree | b7b075369d92c6172bf5997bc4a90b22e94dea7e | |
parent | 0a086c82638c443df10fa2f80896e30107e546e3 (diff) | |
download | haskell-b07dcccd2219eb2d08868bc6144f289b4e0aadf1.tar.gz |
Docs: `-XTypeOperators` (#10175)
[skip ci]
-rw-r--r-- | docs/users_guide/glasgow_exts.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/users_guide/glasgow_exts.xml b/docs/users_guide/glasgow_exts.xml index 08208d4124..f5e04e01b1 100644 --- a/docs/users_guide/glasgow_exts.xml +++ b/docs/users_guide/glasgow_exts.xml @@ -2922,7 +2922,7 @@ if you write <literal>import M( (+) )</literal> do you mean the <emphasis>function</emphasis> <literal>(+)</literal> or the <emphasis>type constructor</emphasis> <literal>(+)</literal>? The default is the former, but with <option>-XExplicitNamespaces</option> (which is implied -by <option>-XExplicitTypeOperators</option>) GHC allows you to specify the latter +by <option>-XTypeOperators</option>) GHC allows you to specify the latter by preceding it with the keyword <literal>type</literal>, thus: <programlisting> import M( type (+) ) |