diff --git a/src-unittests/IdentityTests.hs b/src-unittests/IdentityTests.hs index 5632153..4ac6662 100644 --- a/src-unittests/IdentityTests.hs +++ b/src-unittests/IdentityTests.hs @@ -657,3 +657,15 @@ regressionTests = do else bar else Nothing |] + it "qualified infix pattern" $ do + pendingWith "TODO" + roundTripEqual $ + [text| + wrapPatPrepend pat prepElem = do + patDocs <- layoutPat pat + case Seq.viewl patDocs of + Seq.EmptyL -> return $ Seq.empty + x1 Seq.:< xR -> do + x1' <- docSeq [prepElem, return x1] + return $ x1' Seq.<| xR + |]