summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/tutorials/06-versions.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/tutorials/06-versions.markdown b/web/tutorials/06-versions.markdown
index 4b14925..48aae15 100644
--- a/web/tutorials/06-versions.markdown
+++ b/web/tutorials/06-versions.markdown
@@ -55,13 +55,13 @@ is valid code, but **probably not** what you want to do: this will select all
to fix this, use any of the following:
```haskell
-loadAll (noVersion "posts/*") :: Compiler [Item String]
+loadAll ("posts/*" .&&. hasNoVersion) :: Compiler [Item String]
```
for the default versions, i.e. the HTML pages, and:
```haskell
-loadAll ("posts/*" `withVersion` "raw") :: Compiler [Item String]
+loadAll ("posts/*" .&&. hasVersion "raw") :: Compiler [Item String]
```
for the raw versions.