mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
change the precedence for the left argument of ->
This commit is contained in:
@@ -554,7 +554,7 @@ ListBind
|
||||
Decl :: { [Hypo] }
|
||||
Decl
|
||||
: '(' ListBind ':' Exp ')' { [(b,x,$4) | (b,x) <- $2] }
|
||||
| Exp4 { [mkHypo $1] }
|
||||
| Exp3 { [mkHypo $1] }
|
||||
|
||||
ListTupleComp :: { [Term] }
|
||||
ListTupleComp
|
||||
|
||||
@@ -240,7 +240,7 @@ ppEnv e = hcat (map (\(x,t) -> braces (ppIdent x <> text ":=" <> ppValue Unquali
|
||||
str s = doubleQuotes (text s)
|
||||
|
||||
ppDecl q (_,id,typ)
|
||||
| id == identW = ppTerm q 4 typ
|
||||
| id == identW = ppTerm q 3 typ
|
||||
| otherwise = parens (ppIdent id <+> colon <+> ppTerm q 0 typ)
|
||||
|
||||
ppDDecl q (_,id,typ)
|
||||
|
||||
Reference in New Issue
Block a user