Simon Hengel pushed to branch wip/sol/explicit_namespaces-docs at Glasgow Haskell Compiler / GHC
Commits:
-
6281208a
by Simon Hengel at 2026-02-06T05:59:55+00:00
1 changed file:
Changes:
| ... | ... | @@ -86,7 +86,6 @@ 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 | - |
|
| 90 | 89 | The `data` keyword allows a data constructor to be imported or exported without its
|
| 91 | 90 | parent type constructor.
|
| 92 | 91 |