Get rid of Unicode in err404 example (#1478)
ServerError field errBody uses ByteString, whose IsString instance kills Unicode, thus turning example into garbage. Changed it to simple ASCII string, since Unicode art did not exactly correspond to 404 error anyway. Fixes #1371
This commit is contained in:
parent
70b3721537
commit
70f6c49524
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ err403 = ServerError { errHTTPCode = 403
|
|||
-- Example:
|
||||
--
|
||||
-- > failingHandler :: Handler ()
|
||||
-- > failingHandler = throwError $ err404 { errBody = "(╯°□°)╯︵ ┻━┻)." }
|
||||
-- > failingHandler = throwError $ err404 { errBody = "Are you lost?" }
|
||||
--
|
||||
err404 :: ServerError
|
||||
err404 = ServerError { errHTTPCode = 404
|
||||
|
|
Loading…
Reference in a new issue