We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
examples/container-instances
SpecialDiff
1 parent 5eab8a1 commit 61bdb5eCopy full SHA for 61bdb5e
src/Generics/Diff/Type.hs
@@ -80,6 +80,10 @@ newtype DiffAtField xss = DiffAtField (NS (ConstructorInfo :*: NS DiffError) xss
80
such as lists (see 'ListDiffError'), or even user-defined types that internally preserve invariants
81
or have unusual 'Eq' instances. In this case we can implement an instance of 'SpecialDiff' for the
82
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.
87
-}
88
class (Show (SpecialDiffError a), Eq (SpecialDiffError a)) => SpecialDiff a where
89
-- | A custom diff error type for the special case.
0 commit comments