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:
parent
d1b15cdb4f
commit
85356d9050
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user