Permalink
Browse files

Updated the snaplets tutorial

  • Loading branch information...
1 parent dd753cd commit 82fbdae90b6f1df18690f52f43c78b48229c2056 @mightybyte mightybyte committed Dec 17, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 snaplets/heist/templates/docs/tutorials/snaplets-tutorial.lhs
@@ -65,6 +65,7 @@ You can also install the full code in the current directory with the command
>
> module Main where
>
+> import Control.Lens.TH
> import Data.IORef
> import qualified Data.ByteString.Char8 as B
> import Data.Maybe
@@ -83,7 +84,7 @@ by our application as well as any other state we might want.
> , _companyName :: IORef B.ByteString
> }
>
-> makeLenses [''App]
+> makeLenses ''App
The field names begin with an underscore because of some more complicated
things going on under the hood. However, all you need to know right now is

0 comments on commit 82fbdae

Please sign in to comment.