Commit d311910b authored by Steffen Michels's avatar Steffen Michels

standards: make more explicit for which classes instances should be provided

parent 3c8f9494
Pipeline #29327 passed with stage
in 2 minutes and 59 seconds
......@@ -96,7 +96,9 @@ collisions, adhere to the following conventions:
Implementation modules may import anything they like.
## Implementing class instances and generic derives
## Implementing class instances and generic derives
Clean platform should provide applicable instances for the types it provides for classes defined in `StdEnv`, `Gast`, and `clean-platform` itself.
The applicable instances for the _general_ classes should be exported in the module of the type and not of the class.
This means that for example the `Functor` instance of `Maybe` should be defined in `Data.Maybe` and not in `Data.Functor`.
......@@ -119,6 +121,7 @@ _general_ classes are:
_specific_ classes are for example:
- [ ] `JSONEncode, JSONDecode` from `Text.JSON`
- [ ] `ggen, genShow` from `Gast`
- [ ] ...
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment