You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (JIRA)" <ji...@apache.org> on 2015/06/02 22:51:50 UTC
[jira] [Commented] (THRIFT-3108) Defaulted struct parameters on a
service generates invalid Haskell.
[ https://issues.apache.org/jira/browse/THRIFT-3108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14569740#comment-14569740 ]
Jake Farrell commented on THRIFT-3108:
--------------------------------------
[~seanparsons], [~unscriptable] do either of you have time to put a patch together for this?
> Defaulted struct parameters on a service generates invalid Haskell.
> -------------------------------------------------------------------
>
> Key: THRIFT-3108
> URL: https://issues.apache.org/jira/browse/THRIFT-3108
> Project: Thrift
> Issue Type: Bug
> Components: Haskell - Compiler
> Environment: GHC 7.6.3
> GHC 7.8.4
> Reporter: Sean Parsons
> Priority: Blocker
>
> If we have a service definition that looks something like:
> {code:none}
> struct ServiceRequest {
> 1: optional bool shouldWork;
> }
> service MyService{
> void myService(1:ServiceRequest request = {});
> }
> {code}
> The code generation relating to the service call includes an invocation like this:
> {code:none}
> ... = default_ServiceRequest{}
> {code}
> Which is invalid as empty record updates are not allowed.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)