Skip to content

Commit 466165d

Browse files
committed
fix some non-exhaustive pattern matches
1 parent a2dbd52 commit 466165d

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Happstack/Authenticate/Password/URL.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ data PasswordURL
4949
| Account (Maybe (UserId, AccountURL))
5050
| PasswordRequestReset
5151
| PasswordReset
52-
| UsernamePasswordCtrl
5352
deriving (Eq, Ord, Data, Typeable, Generic)
5453

5554
makeBoomerangs ''PasswordURL
@@ -60,7 +59,6 @@ passwordURL =
6059
<> "account" </> rAccount . rMaybe (rPair . (rUserId . integer) </> accountURL)
6160
<> "password-request-reset" . rPasswordRequestReset
6261
<> "password-reset" . rPasswordReset
63-
<> "js" </> rUsernamePasswordCtrl
6462
)
6563

6664
instance PathInfo PasswordURL where

src/Happstack/Authenticate/Route.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ route authenticationHandlers authenticateState authenticateConfigTV url =
4040
case Map.lookup authenticationMethod authenticationHandlers of
4141
(Just handler) -> handler pathInfo
4242
Nothing -> notFound $ toJSONError (HandlerNotFound {- authenticationMethod-} ) --FIXME
43+
(AuthenticationMethods Nothing) -> notFound $ toJSONError HandlerNotFound
4344
HappstackAuthenticateClient ->
4445
do ac <- liftIO $ atomically $ readTVar authenticateConfigTV
4546
case _happstackAuthenticateClientPath ac of

0 commit comments

Comments
 (0)