remove redundant constraint
This commit is contained in:
parent
4dcc175822
commit
9cd3fb4110
2 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ passwordField = F.passwordField
|
||||||
}
|
}
|
||||||
|
|
||||||
{- Makes a note widget be displayed after a field. -}
|
{- Makes a note widget be displayed after a field. -}
|
||||||
withNote :: (Monad m, ToWidget (HandlerSite m) a) => Field m v -> a -> Field m v
|
withNote :: (ToWidget (HandlerSite m) a) => Field m v -> a -> Field m v
|
||||||
withNote field note = field { fieldView = newview }
|
withNote field note = field { fieldView = newview }
|
||||||
where
|
where
|
||||||
newview theId name attrs val isReq =
|
newview theId name attrs val isReq =
|
||||||
|
|
|
@ -183,7 +183,7 @@ genAuthToken = do
|
||||||
- Note that the usual Yesod error page is bypassed on error, to avoid
|
- Note that the usual Yesod error page is bypassed on error, to avoid
|
||||||
- possibly leaking the auth token in urls on that page!
|
- possibly leaking the auth token in urls on that page!
|
||||||
-}
|
-}
|
||||||
checkAuthToken :: (Monad m, Yesod.MonadHandler m) => (Yesod.HandlerSite m -> AuthToken) -> m Yesod.AuthResult
|
checkAuthToken :: Yesod.MonadHandler m => (Yesod.HandlerSite m -> AuthToken) -> m Yesod.AuthResult
|
||||||
checkAuthToken extractAuthToken = do
|
checkAuthToken extractAuthToken = do
|
||||||
webapp <- Yesod.getYesod
|
webapp <- Yesod.getYesod
|
||||||
req <- Yesod.getRequest
|
req <- Yesod.getRequest
|
||||||
|
|
Loading…
Reference in a new issue