Repository: thrift
Updated Branches:
  refs/heads/master 5c976038f -> 6848de85b


THRIFT-2543 Generated enum type in haskell should be qualified

Client: Haskell
Patch: Zejun Wu


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/6848de85
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/6848de85
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/6848de85

Branch: refs/heads/master
Commit: 6848de85b8bc94910842fc4c4bfa72c250d4b7ab
Parents: 5c97603
Author: Roger Meier <[email protected]>
Authored: Fri May 30 03:03:09 2014 +0200
Committer: Roger Meier <[email protected]>
Committed: Fri May 30 03:03:09 2014 +0200

----------------------------------------------------------------------
 compiler/cpp/src/generate/t_hs_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/6848de85/compiler/cpp/src/generate/t_hs_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_hs_generator.cc 
b/compiler/cpp/src/generate/t_hs_generator.cc
index d52088b..7a1b505 100644
--- a/compiler/cpp/src/generate/t_hs_generator.cc
+++ b/compiler/cpp/src/generate/t_hs_generator.cc
@@ -1482,7 +1482,7 @@ string t_hs_generator::render_hs_type(t_type* type, bool 
needs_parens) {
     }
 
   } else if (type->is_enum()) {
-    return capitalize(((t_enum*)type)->get_name());
+    return type_name((t_enum*)type);
 
   } else if (type->is_struct() || type->is_xception()) {
     return type_name((t_struct*)type);

Reply via email to