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

thrift's namespace directive when generating haskell code

    XMLWordPrintableJSON

    Details

    • Type: Question
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9
    • Fix Version/s: 0.9.1
    • Component/s: Haskell - Compiler
    • Labels:
      None
    • Environment:

      linux/fedora17

      Description

      Hello, I was wondering what effect has the namespace directive, or what effect should it have, when generating haskell code, let's assume I have a product.thrift file:

      namespace hs A.B.C

      struct Product {
      1: i32 cost
      }

      Should this generate a haskell file that creates a module like this:

      module Product where
      [...]

      or like this:

      module A.B.C.Product where
      [...]

      For me it picks the first version.

      Thanks.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              flojdek Tomasz Kupczyk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: