Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on #1111

Open
webhive opened this issue Jun 28, 2019 · 1 comment
Open

Build error on #1111

webhive opened this issue Jun 28, 2019 · 1 comment

Comments

@webhive
Copy link

webhive commented Jun 28, 2019

Got the folowing error when trying to install stack install yi-core

...
yi-core                          > /tmp/stack11022/yi-core-0.18.0/src/Yi/Buffer/Misc.hs:453:25-95: error:
yi-core                          >     • No instance for (Control.Monad.Fail.MonadFail BufferM)
yi-core                          >         arising from a do statement
yi-core                          >         with the failable pattern ‘Just mrks’
yi-core                          >     • In a stmt of a 'do' block:
yi-core                          >         Just mrks <- uses
yi-core                          >                        winMarksA (M.lookup $ wkey (b ^. lastActiveWindowA))
yi-core                          >       In the expression:
yi-core                          >         do Just mrks <- uses
yi-core                          >                           winMarksA (M.lookup $ wkey (b ^. lastActiveWindowA))
yi-core                          >            forM mrks getMarkValueB
yi-core                          >       In a stmt of a 'do' block:
yi-core                          >         newMarkValues <- if wkey (b ^. lastActiveWindowA) == def then
yi-core                          >                              return
yi-core                          >                                MarkSet
yi-core                          >                                  {insMark = MarkValue 0 Forward, selMark = MarkValue 0 Backward,
yi-core                          >                                   fromMark = MarkValue 0 Backward}
yi-core                          >                          else
yi-core                          >                              do Just mrks <- uses
yi-core                          >                                                winMarksA (M.lookup $ wkey (b ^. lastActiveWindowA))
yi-core                          >                                 forM mrks getMarkValueB
yi-core                          >     |
yi-core                          > 453 |                         Just mrks  <- uses winMarksA (M.lookup $ wkey (b ^. lastActiveWindowA))
yi-core                          >     |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
yi-core                          > 
yi-core                          > /tmp/stack11022/yi-core-0.18.0/src/Yi/Buffer/Misc.hs:873:3-30: error:
yi-core                          >     • No instance for (Control.Monad.Fail.MonadFail BufferM)
yi-core                          >         arising from a do statement
yi-core                          >         with the failable pattern ‘Just !ms’
yi-core                          >     • In a stmt of a 'do' block: Just !ms <- getMarks =<< ask
yi-core                          >       In the expression:
yi-core                          >         do Just !ms <- getMarks =<< ask
yi-core                          >            return ms
yi-core                          >       In an equation for ‘askMarks’:
yi-core                          >           askMarks
yi-core                          >             = do Just !ms <- getMarks =<< ask
yi-core                          >                  return ms
yi-core                          >     |
yi-core                          > 873 |   Just !ms <- getMarks =<< ask
yi-core                          >     |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
yi-core                          > 
Completed 42 action(s).
--  While building package yi-core-0.18.0 using:
@na4zagin3
Copy link

I guess this is related to #1108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants