Advertisement
NLinker

Error when InputE :: (Read a, MonadError Err m)

Apr 3rd, 2017
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. Prelude> :r
  2. [1 of 1] Compiling FME ( /home/nick/vertigomedia/Union-Haskell/playground-haskell/free-transactions/src/FME.hs, interpreted )
  3.  
  4. /home/nick/vertigomedia/Union-Haskell/playground-haskell/free-transactions/src/FME.hs:151:8:
  5. Couldn't match type ‘m1’ with ‘Either Err’
  6. ‘m1’ is a rigid type variable bound by
  7. a pattern with constructor
  8. InputE :: forall next a (m :: * -> *).
  9. (Read a, MonadError Err m) =>
  10. (m a -> next) -> RetryF next,
  11. in an equation for ‘runIO’
  12. at /home/nick/vertigomedia/Union-Haskell/playground-haskell/free-transactions/src/FME.hs:148:8
  13. Expected type: m1 a1
  14. Actual type: Either Err a1
  15. Relevant bindings include
  16. next :: m1 a1 -> m a
  17. (bound at /home/nick/vertigomedia/Union-Haskell/playground-haskell/free-transactions/src/FME.hs:148:15)
  18. In the first argument of ‘next’, namely ‘eth’
  19. In a stmt of a 'do' block: next eth
  20. Failed, modules loaded: none.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement