Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /home/vjousse/usr/src/haskell/mattermost-haskell/src/Mattermost.hs:24:3: error:
  2.     • No instance for (E.Exception HttpExceptionContent)
  3.         arising from a use of ‘E.catch
  4.     • In a stmt of a 'do' block:
  5.         (Right <$> post url (toJSON $ Credentials loginId password))
  6.           `E.catch` handler
  7.       In the expression:
  8.         do (Right <$> post url (toJSON $ Credentials loginId password))
  9.              `E.catch` handler
  10.       In an equation for ‘login’:
  11.           login loginId password url
  12.             = do (Right <$> post url (toJSON $ Credentials loginId password))
  13.                    `E.catch` handler
  14.             where
  15.                 handler ::
  16.                   HttpExceptionContent
  17.                   -> IO (Either String (Response LBS.ByteString))
  18.                 handler (StatusCodeException s _) = do return $ Left $ "error"
  19.    |
  20. 24 |   (Right <$> post url (toJSON $ Credentials loginId password)) `E.catch` handler
  21.    |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  22.  
  23.  
  24. --  While building custom Setup.hs for package mattermost-bot-0.1.0.0 using:
  25.       /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"
  26.     Process exited with code: ExitFailure 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement