Skip to content

Commit

Permalink
haskell-translator: convert unit types in type aliases
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Lewis <[email protected]>
  • Loading branch information
corlewis committed Sep 27, 2024
1 parent 894ae73 commit 0fc72fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/haskell-translator/lhs_pars.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,8 @@ def typename_transform(line, header, d):
# take off the prefix, leave Word32 or Word64 etc
oldtype = oldtype[10:]
oldtype = type_conv(oldtype)
# get rid of (), insert unit
oldtype = 'unit'.join(oldtype.split('()'))
bits = oldtype.split()
for bit in bits:
d.typedeps.add(bit)
Expand Down

0 comments on commit 0fc72fd

Please sign in to comment.