diff options
author | songzh <alexander.zhang.song@gmail.com> | 2021-02-11 07:03:11 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-02-13 21:33:17 -0500 |
commit | 3331b3ad0db55193832617f3af3b18182dc1d4af (patch) | |
tree | fa449cea261f9d0eac9f9504ac648a0500ef0172 | |
parent | be3c0d62c73361b8805a51a88770991c3b6f9331 (diff) | |
download | haskell-3331b3ad0db55193832617f3af3b18182dc1d4af.tar.gz |
Fix example code in Deriving via.
-rw-r--r-- | docs/users_guide/exts/deriving_via.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/users_guide/exts/deriving_via.rst b/docs/users_guide/exts/deriving_via.rst index f4ef51654b..cc590987ea 100644 --- a/docs/users_guide/exts/deriving_via.rst +++ b/docs/users_guide/exts/deriving_via.rst @@ -105,7 +105,7 @@ The only restriction is that it is coercible with the original data type. This means there can be arbitrary nesting of newtypes, as in the following example: :: - newtype Kleisli m a b = (a -> m b) + newtype Kleisli m a b = Kleisli (a -> m b) deriving (Semigroup, Monoid) via (a -> App m b) |