Commit 95521140 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Marge Bot
Browse files

Add StandaloneDeriving example for DerivingVia.

parent 986643cb
Pipeline #9059 skipped
......@@ -5422,6 +5422,12 @@ as in the following example: ::
Here we make use of the ``Monoid ((->) a)`` instance.
When used in combination with :extension:`StandaloneDeriving` we swap the order
for the instance we base our derivation on and the instance we define e.g.: ::
deriving via (a -> App m b) instance Monoid (Kleisli m a b)
.. _pattern-synonyms:
Pattern synonyms
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