mirror of
https://github.com/github/semantic.git
synced 2024-12-29 01:42:43 +03:00
Remove dotProto args
This commit is contained in:
parent
a28a4c15f6
commit
9e464d2e64
@ -109,7 +109,7 @@ instance (Apply Message1 fs, Generate Message1 fs fs, Generate GenericNamed fs f
|
||||
where
|
||||
listOfParsers =
|
||||
generate @Message1 @fs @fs (\ (proxy :: proxy f) i -> let num = FieldNumber (fromInteger (succ i)) in [(num, fromJust <$> embedded (inject @f @fs <$> liftDecodeMessage decodeMessage num))])
|
||||
liftDotProto dotProto _ =
|
||||
liftDotProto _ =
|
||||
[Proto.DotProtoMessageOneOf (Proto.Single "syntax") (generate @GenericNamed @fs @fs (\ (proxy :: proxy f) i ->
|
||||
let
|
||||
num = FieldNumber (fromInteger (succ i))
|
||||
|
@ -82,7 +82,7 @@ instance (Show1 f, Show a) => Show (Term f a) where
|
||||
instance (Message1 f) => Message (Term f ()) where
|
||||
encodeMessage num (Term (In _ f)) = liftEncodeMessage encodeMessage num f
|
||||
decodeMessage num = termIn () <$> liftDecodeMessage decodeMessage num
|
||||
dotProto _ = liftDotProto (dotProto @(Term f ())) (Proxy @(f (Term f ())))
|
||||
dotProto _ = liftDotProto (Proxy @(f (Term f ())))
|
||||
|
||||
instance Named (Term f ()) where
|
||||
nameOf _ = "Term"
|
||||
|
Loading…
Reference in New Issue
Block a user