Add testcase for not-yet-fixed pattern problem

pull/3/head
Lennart Spitzner 2016-09-03 21:36:06 +02:00
parent 48b2057d84
commit d6cf33c3e0
1 changed files with 12 additions and 0 deletions

View File

@ -657,3 +657,15 @@ regressionTests = do
else bar else bar
else Nothing 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
|]