-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document GHC 91999 and GHC 86639 #507
base: main
Are you sure you want to change the base?
Document GHC 91999 and GHC 86639 #507
Conversation
There is more info on deriving instances for extra typeclasses in the [GHC user | ||
manual](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/deriving_extra.html). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GitLab links can change, better to link documentation of a stable GHC release:
There is more info on deriving instances for extra typeclasses in the [GHC user | |
manual](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/deriving_extra.html). | |
There is more info on deriving instances for extra typeclasses in the [GHC user manual](https://downloads.haskell.org/ghc/9.12.1/docs/users_guide/exts/deriving_extra.html). |
`DerivingFunctor` language extension must be turned on. This can be done with a | ||
pragma at the top of the file, or in build settings. | ||
|
||
The `DerivingFunctor` extension is turned on automatically from Haskell2021 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The `DerivingFunctor` extension is turned on automatically from Haskell2021 | |
The `DerivingFunctor` extension is turned on automatically from GHC2021 |
|
||
When deriving a `Functor` instance for a datatype in Haskell2010, the | ||
`DerivingFunctor` language extension must be turned on. This can be done with a | ||
pragma at the top of the file, or in build settings. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be worth mentioning that DeriveTraversable
implies DeriveFunctor
and also fixes the error.
Any datatype that is exported from an .hs-boot file must be exported from the | ||
corresponding .hs file. | ||
|
||
More information on .hs-boot modules is available in [the GHC user manual](https://downloads.haskell.org/ghc/latest/docs/users_guide/separate_compilation.html#how-to-compile-mutually-recursive-modules). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The anchor is gone, I guess it's now
More information on .hs-boot modules is available in [the GHC user manual](https://downloads.haskell.org/ghc/latest/docs/users_guide/separate_compilation.html#how-to-compile-mutually-recursive-modules). | |
More information on .hs-boot modules is available in [the GHC user manual](https://downloads.haskell.org/ghc/9.12.1/docs/users_guide/separate_compilation.html#mutually-recursive-modules-and-hs-boot-files). |
Got two tickets at the workshop, wrote some quick docs - if there's anything that needs changing, please feel free to request.