Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /home/vjousse/usr/src/haskell/mattermost-haskell/src/Mattermost.hs:24:3: error:
- • No instance for (E.Exception HttpExceptionContent)
- arising from a use of ‘E.catch’
- • In a stmt of a 'do' block:
- (Right <$> post url (toJSON $ Credentials loginId password))
- `E.catch` handler
- In the expression:
- do (Right <$> post url (toJSON $ Credentials loginId password))
- `E.catch` handler
- In an equation for ‘login’:
- login loginId password url
- = do (Right <$> post url (toJSON $ Credentials loginId password))
- `E.catch` handler
- where
- handler ::
- HttpExceptionContent
- -> IO (Either String (Response LBS.ByteString))
- handler (StatusCodeException s _) = do return $ Left $ "error"
- |
- 24 | (Right <$> post url (toJSON $ Credentials loginId password)) `E.catch` handler
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- -- While building custom Setup.hs for package mattermost-bot-0.1.0.0 using:
- /home/vjousse/.stack/setup-exe-cache/x86_64-linux-tinfo6-nopie/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6-nopie/Cabal-2.0.1.0 build lib:mattermost-bot exe:mattermost-bot-exe --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
- Process exited with code: ExitFailure 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement