Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
95521140
Commit
95521140
authored
Jul 30, 2019
by
Andreas Klebinger
Committed by
Marge Bot
Aug 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add StandaloneDeriving example for DerivingVia.
[skip-ci]
parent
986643cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
docs/users_guide/glasgow_exts.rst
docs/users_guide/glasgow_exts.rst
+6
-0
No files found.
docs/users_guide/glasgow_exts.rst
View file @
95521140
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment