Fix #91 by removing the shortcuts from the fitting predicates#97
Fix #91 by removing the shortcuts from the fitting predicates#97sjakobi wants to merge 2 commits intohaskell-prettyprinter:masterfrom
Conversation
| fits pw m _ (SLine i x) | ||
| | m < i, AvailablePerLine cpl _ <- pw = fits pw m (cpl - i) x | ||
| | m < i, AvailablePerLine cpl _ <- pw = fits pw m (Just (cpl - i)) x | ||
| | otherwise = True |
There was a problem hiding this comment.
What I don't understand is why it doesn't seem to be necessary to continue checking for the absence of SFail when using the Unbounded layout – at least the property tests don't seem to mind (and neither does dhall!)
|
The advantage of this solution is that no types need to change. However IMO IMO having a separate With that approach,
IMHO |
Ah, I had missed some uses of |
|
Closing in favour of #98. |
This version passes the fusion property tests using the
Unboundedlayout.