[ 
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)

Reply via email to