Propagate type application, temporary remove nested pattern matching, fix void output
This commit is contained in:
parent
6260dc2c41
commit
c3bcdfa81b
4 changed files with 175 additions and 140 deletions
|
|
@ -90,13 +90,15 @@ prtSig (x, t) =
|
|||
]
|
||||
|
||||
instance (Print a, Print t) => Print (T a t) where
|
||||
prt i (x, t) =
|
||||
concatD
|
||||
[ -- doc $ showString "("
|
||||
{- , -} prt i x
|
||||
-- , doc $ showString ":"
|
||||
-- , prt 0 t
|
||||
-- , doc $ showString ")"
|
||||
prt i (x, t) = withT
|
||||
where
|
||||
noT = prt i x
|
||||
withT = concatD
|
||||
[ doc $ showString "("
|
||||
, prt i x
|
||||
, doc $ showString ":"
|
||||
, prt 0 t
|
||||
, doc $ showString ")"
|
||||
]
|
||||
|
||||
instance Print t => Print [Bind' t] where
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue