1
0
forked from GitHub/gf-core

WIP params

This commit is contained in:
John J. Camilleri
2021-02-26 17:18:21 +01:00
parent 9785f8351d
commit 4771d9c356
6 changed files with 99 additions and 43 deletions

View File

@@ -272,9 +272,14 @@ instance PP LinFun where
CMW.tell [ T.replicate (n+1) " " `T.append` T.pack (show p) | p <- ps ]
pp' (n+1) d
c@(LFConcat l1 l2) | isDeep l1 || isDeep l2 -> do
p "LFConcat"
mapM_ (pp' (n+1)) (unConcat c)
c@(LFConcat l1 l2) -> do
let ts = unConcat c
if any isDeep ts
then do
p "LFConcat"
mapM_ (pp' (n+1)) ts
else
ps $ "LFConcat " ++ show ts
LFTuple ls | any isDeep ls -> do
p "LFTuple"
mapM_ (pp' (n+1)) ls