Correctly sort prefixes in next

This commit is contained in:
Michael Walker 2015-07-21 14:17:16 +01:00
parent 148cd0a351
commit 15f79088c9

View File

@ -89,7 +89,7 @@ next = go 0 where
_ -> Nothing
go' (tid, bpor) = (\(ts,c,b) -> Right (tid:ts, c, b)) <$> next bpor
go' (tid, bpor) = (\(ts,c,b) -> Right (tid:ts, c, b)) <$> go tid bpor
preEmps tid bpor (t:ts) =
let rest = preEmps t (fromJust . M.lookup t $ _bdone bpor) ts