tools: haskell-translator: avoid needless case distinction

This commit is contained in:
Corey Richardson 2016-02-01 19:44:59 +11:00
parent 325176fb86
commit 99a6ecae27
No known key found for this signature in database
GPG Key ID: 990278AD76243314
1 changed files with 1 additions and 3 deletions

View File

@ -677,9 +677,7 @@ def simple_newtype_transform(line, header, d):
for bit in bits[1:]:
if bit.startswith('('):
bit = bit[1:-1]
typename = type_transform(str(bit))
else:
typename = type_conv(str(bit))
typename = type_transform(str(bit))
if len(bits) == 2:
last_rhs = typename
if ' ' in typename: