Conversation
|
👍 Looks good, thanks! |
|
Any thoughts on why CI is breaking? |
|
Looking at the log, it's because there seem to be a ton of warnings like |
|
Unfortunately I guess the options are, modify the cabal file to ignore those warnings, or remove them and stop supporting GHC < 7.10. I'd vote to drop support for older GHCs, as I've found these warnings can be very useful. |
|
As long as we're using Stack to build (which I am now, for example, for the Mac binaries), then I'm fine with dropping < 7.10. Does the Linux64 binary build use Stack? |
|
I guess we can't build with GHC8 using Stack/Stackage right now. I'd really like to have CI working again, so maybe disabling the GHC8 build makes the most sense for now. |
|
Thanks! |
|
This actually breaks |
Milestone |
|
Possibly, yes. |
|
Just to make sure, is it an error in the Par module or in the compiler. If it's in the module I can make a PR now to fix it. |
|
Hmm, we try not to release breaking changes in the 0.x.y releases, maybe we'd be better off reverting this until 0.9? I'm not sure. |
|
I think |
|
@DavidLindbom I've reverted this, but if you'd like to reopen it, we can merge it in for 0.9. Thanks! |
|
I can open it again but I just want to make sure first if this should be the correct behavior? More exact should that line in |
|
I think |
|
It wasn't immediately obvious to me what's wrong with the indentation, but I think I see it now: instance altPar :: Alt (Par e) where
alt (Par a1) (Par a2) =
let maybeKill va ve err =
do e <- takeVar ve
if e == 1 then killVar va err else return unit
putVar ve (e + 1)
in Par do
va <- makeVar -- the `a` value
ve <- makeVar' 0 -- the error count (starts at 0)
c1 <- forkAff $ attempt a1 >>= either (maybeKill va ve) (putVar va)
c2 <- forkAff $ attempt a2 >>= either (maybeKill va ve) (putVar va)
(takeVar va) `cancelWith` (c1 <> c2)Should it be let
maybeKill va ve err =
do e <- takeVar ve
if e == 1 then killVar va err else return unit
putVar ve (e + 1)instead? I happened to notice we have a |
|
Oh I missed it too that's exactly right! That was #1848. |
|
The first lexeme after |
This should fix #1881 as
indentedbehavior is a bit unclear.