[ 
https://issues.apache.org/jira/browse/THRIFT-1791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551336#comment-13551336
 ] 

Gabriel Prioli commented on THRIFT-1791:
----------------------------------------

It looks like it's not being used at all. A specified namespace on the thrift 
file doesn't appear anywhere on the generated code.

>From what I can see the hs generator file just sets the module based on the 
>program name. On "/compiler/cpp/src/generate/t_hs_generator.cc":

192: string pname = capitalize(program_name_);
...
202: f_types_ << "module " << pname << "_Types where" << endl;



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

Reply via email to