summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/tutorials/04-compilers.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/tutorials/04-compilers.markdown b/web/tutorials/04-compilers.markdown
index a1fca37..b6b1c3c 100644
--- a/web/tutorials/04-compilers.markdown
+++ b/web/tutorials/04-compilers.markdown
@@ -92,7 +92,7 @@ And `$title$` like this:
titleContext :: Context a
titleContext = field "title" $ \item -> do
metadata <- getMetadata (itemIdentifier item)
- return $ fromMaybe "No title" $ M.lookup "title" metadata
+ return $ fromMaybe "No title" $ lookupString "title" metadata
```
And compose them using the `Monoid` instance: