Skip to content

Commit 6d27676

Browse files
author
Frederick Pringle
committed
Link to examples/container-instances from SpecialDiff haddocks
1 parent ed6dd4b commit 6d27676

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Generics/Diff/Type.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ newtype DiffAtField xss = DiffAtField (NS (ConstructorInfo :*: NS DiffError) xss
8080
such as lists (see 'ListDiffError'), or even user-defined types that internally preserve invariants
8181
or have unusual 'Eq' instances. In this case we can implement an instance of 'SpecialDiff' for the
8282
type.
83+
84+
For concrete examples implementing 'SpecialDiff' on types from "containers", see the
85+
[examples/containers-instances](https://github.com/fpringle/generic-diff/tree/main/examples/containers-instances)
86+
directory.
8387
-}
8488
class (Show (SpecialDiffError a), Eq (SpecialDiffError a)) => SpecialDiff a where
8589
-- | A custom diff error type for the special case.

0 commit comments

Comments
 (0)