[ https://issues.apache.org/jira/browse/THRIFT-2152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13756197#comment-13756197 ]
Roger Meier commented on THRIFT-2152: ------------------------------------- Hi BlackBox patches are welcome: http://thrift.apache.org/docs/HowToContribute -roger > Generated Haskell files does not compile > ---------------------------------------- > > Key: THRIFT-2152 > URL: https://issues.apache.org/jira/browse/THRIFT-2152 > Project: Thrift > Issue Type: Bug > Components: Haskell - Compiler > Affects Versions: 0.9 > Environment: Fedora 19 > The Glorious Glasgow Haskell Compilation System, version 7.4.2 > Reporter: Blackbox Dev Team > > When compiling the following two files: > {code:title=a.thrift} > include "b.thrift" > struct A { > 1 : optional b.B elem > } > {code} > and > {code:title=b.thrift} > struct B { > 1: optional i32 i > } > {code} > with: > thrift --gen hs a.thrift > thrift --gen hs b.thrift > ghc gen-hs/A_Consts.hs gen-hs/A_Types.hs gen-hs/B_Consts.hs gen-hs/B_Types.h > I get an error: > {code} > gen-hs/A_Types.hs:54:15: > Not in scope: `read_B' > Perhaps you meant one of these: > `B_Types.read_B' (imported from B_Types), `read_A' (line 63) > {code} -- 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