minor typos

fixed typo and escaped backslash for haddock
This commit is contained in:
oddvars 2018-09-13 16:42:52 +02:00 committed by GitHub
parent 2af5d9c64c
commit 41101b20dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ be unique).
'AuthId' must have an instance of 'PathPiece' class, this is needed to store
user identifier in session (this happens in 'setCreds' and 'setCredsRedirect'
actions) and to read that identifier from session (this happens in
`dafaultMaybeAuthId` action). So we have to define it:
`defaultMaybeAuthId` action). So we have to define it:
@
import Text.Read (readMaybe)
@ -85,7 +85,7 @@ Here @lookupUser@ is just a helper function to lookup hardcoded users by name:
@
lookupUser :: Text -> Maybe SiteManager
lookupUser username = find (\m -> manUserName m == username) siteManagers
lookupUser username = find (\\m -> manUserName m == username) siteManagers
@
@ -113,7 +113,7 @@ instance YesodAuthHardcoded App where
validPassword :: Text -> Text -> Bool
validPassword u p =
case find (\m -> manUserName m == u && manPassWord m == p) siteManagers of
case find (\\m -> manUserName m == u && manPassWord m == p) siteManagers of
Just _ -> True
_ -> False
@