1
1
mirror of https://github.com/github/semantic.git synced 2024-12-11 08:45:48 +03:00

These constraints are implied.

This commit is contained in:
Rob Rix 2019-10-18 15:50:07 -04:00
parent d1b15cdb4f
commit 85356d9050
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -69,7 +69,7 @@ data Parser term where
-- | A parser 'Unmarshal'ing to a precise AST type using a 'TS.Language'.
UnmarshalParser :: Unmarshal t => Ptr TS.Language -> Parser (t Loc)
-- | A parser producing an à la carte term given an 'AST'-producing parser and an 'Assignment' onto 'Term's in some syntax type.
AssignmentParser :: (Enum grammar, Ix grammar, Show grammar, TS.Symbol grammar, Syntax.Error :< fs, Eq1 ast, Apply Foldable fs, Apply Functor fs, Foldable ast, Functor ast)
AssignmentParser :: (TS.Symbol grammar, Syntax.Error :< fs, Eq1 ast, Apply Foldable fs, Apply Functor fs, Foldable ast, Functor ast)
=> Parser (AST ast grammar) -- ^ A parser producing AST.
-> Assignment ast grammar (Term (Sum fs) Loc) -- ^ An assignment from AST onto 'Term's.
-> Parser (Term (Sum fs) Loc) -- ^ A parser producing 'Term's.