You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/08/01 00:38:00 UTC

[jira] [Updated] (THRIFT-4875) Thrift compiler generates invalid Haskell code

     [ https://issues.apache.org/jira/browse/THRIFT-4875?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James E. King III updated THRIFT-4875:
--------------------------------------
    Component/s: Haskell - Compiler

> Thrift compiler generates invalid Haskell code
> ----------------------------------------------
>
>                 Key: THRIFT-4875
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4875
>             Project: Thrift
>          Issue Type: Bug
>          Components: Haskell - Compiler
>    Affects Versions: 0.12.0
>            Reporter: g. unabetida
>            Priority: Minor
>
> With the following .thrift file:
> {code:java}
> struct Dummy {
>     1: string dummy;
> }
> const Dummy emptyDummy = { }{code}
> the Thrift compiler generates Haskell code with an empty record update:
> {code:java}
> emptyDummy :: Dummy
> emptyDummy = default_Dummy{}{code}
> This doesn't compile. I think removing {} fixes the problem?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)