Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4875

Thrift compiler generates invalid Haskell code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 0.12.0
    • None
    • Haskell - Compiler
    • None

    Description

      With the following .thrift file:

      struct Dummy {
          1: string dummy;
      }
      
      const Dummy emptyDummy = { }

      the Thrift compiler generates Haskell code with an empty record update:

      emptyDummy :: Dummy
      emptyDummy = default_Dummy{}

      This doesn't compile. I think removing {} fixes the problem?

      Attachments

        Activity

          People

            Unassigned Unassigned
            gunabetida g. unabetida
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: