[
https://issues.apache.org/jira/browse/THRIFT-3394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14975469#comment-14975469
]
Hudson commented on THRIFT-3394:
--------------------------------
SUCCESS: Integrated in Thrift #1700 (See
[https://builds.apache.org/job/Thrift/1700/])
THRIFT-3394 compiler generates uncompilable code Client: Haskell Patch: (jensg:
rev 6748993dcbd7e1b1a3cdce3b0cb3b80d24dd4a24)
* compiler/cpp/src/generate/t_hs_generator.cc
> compiler generates uncompilable code
> ------------------------------------
>
> Key: THRIFT-3394
> URL: https://issues.apache.org/jira/browse/THRIFT-3394
> Project: Thrift
> Issue Type: Bug
> Components: Haskell - Compiler
> Affects Versions: 0.9.3
> Environment: Linux x86-64, GHC 7.8 and 7.10
> Reporter: Tom Lippincott
> Assignee: Tom Lippincott
> Fix For: 1.0
>
> Attachments: THRIFT-3394-compiler-generates-uncompilable-code.patch,
> thrift-3394-haskell-negation-fix.patch
>
>
> When given an input with a line like "2: optional i32 anchorTokenIndex = -1",
> thrift generates code like "tokenRefSequence_anchorTokenIndex = P.Just -1",
> but without parentheses around or a dollar sign preceding it, the negative
> part of the literal gets treated as a function and this can't compile,
> leading to:
> Not in scope: ‘-’
> Perhaps you meant ‘P.-’ (imported from Prelude)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)