Skip to content

Commit

Permalink
customNotFoundResponse in Guide/recipes.markdown gets a better typean…
Browse files Browse the repository at this point in the history
…notation - known to work for versions from ihp 0.11 up to 0.15
  • Loading branch information
Sascha Gresk committed Oct 21, 2021
1 parent 6dd1b6e commit f3cea01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Guide/recipes.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ with a 404:
```haskell
import qualified Data.ByteString.Lazy as LBS

customNotFoundResponse :: IO ()
customNotFoundResponse :: (?context :: ControllerContext) => IO ()
customNotFoundResponse = do
page <- LBS.readFile "static/404.html"
respondAndExit $ responseLBS status404 [(hContentType, "text/html")] page
Expand Down

0 comments on commit f3cea01

Please sign in to comment.