Andreas Klebinger pushed to branch wip/sol/explicit_namespaces-docs at Glasgow Haskell Compiler / GHC
Commits:
-
7596dc04
by Simon Hengel at 2026-02-19T08:46:47+01:00
1 changed file:
Changes:
| ... | ... | @@ -86,7 +86,7 @@ However, how would one import only the data constructor? There are two options: |
| 86 | 86 | import Data.Proxy (data Proxy) -- imports the data constructor only
|
| 87 | 87 | import Data.Proxy (pattern Proxy) -- imports the data constructor only
|
| 88 | 88 | |
| 89 | -The ``data`` keyword enables the import or export a data constructor without its
|
|
| 89 | +The ``data`` keyword allows a data constructor to be imported or exported without its
|
|
| 90 | 90 | parent type constructor.
|
| 91 | 91 | |
| 92 | 92 | The ``pattern`` keyword does the same, with only a few differences:
|