mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Don’t set the precedence recursively.
This commit is contained in:
parent
edbea6991c
commit
99668a33a1
@ -55,7 +55,7 @@ withPrec n = local (const (Prec n))
|
||||
inParens :: (Member (Reader Prec) sig, Carrier sig m) => Int -> m AnsiDoc -> m AnsiDoc
|
||||
inParens amount go = do
|
||||
prec <- ask
|
||||
body <- withPrec amount go
|
||||
body <- go
|
||||
pure (if prec > Prec amount then parens body else body)
|
||||
|
||||
prettyCore :: Style -> Term Core User -> AnsiDoc
|
||||
|
Loading…
Reference in New Issue
Block a user