• Iustin Pop's avatar
    Improve TemplateHaskell code to support empty objects · 08f7d24d
    Iustin Pop authored
    Currently, an empty objects will generate warnings as the arguments of
    various functions are unused. By adding conditional code for this, we
    can support generation of empty objects, e.g. like needed in Rpc code.
    Additionally, the patch also converts RpcCallVersion to THH, now that
    it can build it. We change the serialisation for this (from JSNull to
    JSObject []), but this shouldn't matter as this is not used in
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>