You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jake Farrell (JIRA)" <ji...@apache.org> on 2013/02/19 04:15:14 UTC
[jira] [Closed] (THRIFT-1791) thrift's namespace directive when
generating haskell code
[ https://issues.apache.org/jira/browse/THRIFT-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jake Farrell closed THRIFT-1791.
--------------------------------
Resolution: Fixed
Fix Version/s: 1.0
The haskell generator does not currently use the namespace directive, if you would like to submit a patch for it to be used please see http://thrift.apache.org/docs/HowToContribute/
> thrift's namespace directive when generating haskell code
> ---------------------------------------------------------
>
> Key: THRIFT-1791
> URL: https://issues.apache.org/jira/browse/THRIFT-1791
> Project: Thrift
> Issue Type: Question
> Components: Haskell - Compiler
> Affects Versions: 0.9
> Environment: linux/fedora17
> Reporter: Tomasz Kupczyk
> Priority: Minor
> Fix For: 1.0
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira