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:
parent
b9360fbdc8
commit
7f63b78941
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user