Skip to content

Commit ed2bcd9

Browse files
authored
Remove Generics guide; update links to point to pursuit (#238)
1 parent d54563c commit ed2bcd9

File tree

4 files changed

+10
-145
lines changed

4 files changed

+10
-145
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ This repository is a collaborative effort, so please feel free to make a pull re
2929
-[Common Operators](guides/Common-Operators.md)
3030
-[The Foreign Function Interface (FFI)](guides/FFI.md)
3131
-[FFI Tips](guides/FFI-Tips.md)
32-
-[Generic Programming](guides/Generic.md)
3332
-[Custom Type Errors](guides/Custom-Type-Errors.md)
3433
-[PureScript Without Node](guides/PureScript-Without-Node.md)
3534
-[Contrib Library Guidelines](guides/Contrib-Guidelines.md)

errors/CannotDerive.md

+9-3
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ derive instance showBool :: Show Bool
1010

1111
## Cause
1212

13-
This error shows up when you're attempting to derive an instance for which compiler
14-
support does not exist.
13+
This error shows up when you're attempting to derive an instance for a class
14+
for which compiler support does not exist. There is a [fixed list of classes
15+
which can be derived by the compiler][derivable]; for any class not on this
16+
list, however, you'll need to find another way of obtaining an instance.
1517

1618
## Fix
1719

1820
- You will need to write an instance yourself.
19-
- If you want to derive e.g. `Show` you can use [Generics](https://github.com/purescript/documentation/blob/master/guides/Generic.md#show-eq-ord).
21+
- For many classes (including `Show`), you can use [Generics][] to obtain the
22+
instances you want with less effort.
23+
24+
[Generics]: https://pursuit.purescript.org/packages/purescript-generics-rep
25+
[derivable]: https://github.com/purescript/documentation/blob/master/language/Type-Classes.md#type-class-deriving

guides/Generic.md

-140
This file was deleted.

language/Differences-from-Haskell.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ for a list of other type classes.
168168

169169
Using generics, it is also possible to use generic implementations for type
170170
classes like `Bounded`, `Monoid`, and `Show`. See
171-
[here](https://github.com/purescript/documentation/blob/master/guides/Generic.md)
171+
[the generics-rep library](https://pursuit.purescript.org/packages/purescript-generics-rep)
172172
for a list of other type classes that have generic implementations, as well as
173173
an explanation of how to write generic implementations for your own type
174174
classes.

0 commit comments

Comments
 (0)
close