1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 01:47:01 +03:00

📝 the arguments & return type of SomeParser.

This commit is contained in:
Rob Rix 2017-10-06 12:22:14 -04:00
parent b9360fbdc8
commit 7f63b78941

View File

@ -74,9 +74,9 @@ someParser :: ( ApplyAll typeclasses JSON.Syntax
, ApplyAll typeclasses Ruby.Syntax
, ApplyAll typeclasses TypeScript.Syntax
)
=> proxy typeclasses
-> Language
-> Maybe (SomeParser typeclasses)
=> proxy typeclasses -- ^ A proxy for the list of typeclasses required, e.g. @(Proxy :: Proxy '[Show1])@.
-> Language -- ^ The 'Language' to select.
-> Maybe (SomeParser typeclasses) -- ^ 'Maybe' a 'SomeParser' abstracting the syntax type to be produced.
someParser _ Go = Nothing
someParser _ JavaScript = Just (SomeParser typescriptParser)
someParser _ JSON = Just (SomeParser jsonParser)