thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "g. unabetida (JIRA)" <>
Subject [jira] [Created] (THRIFT-4875) Thrift compiler generates invalid Haskell code
Date Wed, 29 May 2019 13:43:00 GMT
g. unabetida created THRIFT-4875:

             Summary: Thrift compiler generates invalid Haskell code
                 Key: THRIFT-4875
             Project: Thrift
          Issue Type: Bug
    Affects Versions: 0.12.0
            Reporter: g. unabetida

With the following .thrift file:
struct Dummy {
    1: string dummy;

const Dummy emptyDummy = { }{code}
the Thrift compiler generates Haskell code with an empty record update:
emptyDummy :: Dummy
emptyDummy = default_Dummy{}{code}
This doesn't compile. I think removing {} fixes the problem?

This message was sent by Atlassian JIRA

View raw message