1
1
mirror of https://github.com/github/semantic.git synced 2024-12-20 21:31:48 +03:00

Use the AST synonym in the type of AssignmentParser.

This commit is contained in:
Rob Rix 2019-10-07 14:39:39 -04:00
parent c01e8314ff
commit a457d8777f
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -106,7 +106,7 @@ data Parser term where
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)
=> Parser (Term ast (Node grammar)) -- ^ A parser producing 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.
-- | A parser for 'Markdown' using cmark.