From aeb7bf972ad5e25738a3525ee58fc295e22f6c70 Mon Sep 17 00:00:00 2001 From: Jason Dagit Date: Thu, 8 Sep 2016 14:28:56 -0400 Subject: [PATCH] guide.rst: update Editor example --- docs/guide.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide.rst b/docs/guide.rst index e7e8a40..2089483 100644 --- a/docs/guide.rst +++ b/docs/guide.rst @@ -247,7 +247,7 @@ of state in your application state. In the following example we use an .. code:: haskell data Name = Edit1 - type MyState = Editor Name + type MyState = Editor String Name myEvent :: MyState -> e -> EventM Name (Next MyState) myEvent s e = continue =<< handleEditorEvent e s @@ -262,7 +262,7 @@ for your application state fields, you can use the convenience function .. code:: haskell data Name = Edit1 - data MyState = MyState { _theEdit :: Editor Name + data MyState = MyState { _theEdit :: Editor String Name } makeLenses ''MyState