Skip to content

Commit 0be36e6

Browse files
committed
Update isTypePolyBit to handle poly ActionValue_ (Bit n)
1 parent 2fdd8d8 commit 0be36e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/comp/CType.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,8 @@ getActionValueArg t = internalError ("getActionValueArg: " ++ ppReadable t)
449449
-- These are used during foreign function processing to determine if arguments
450450
-- and return values are polymorphic or of a known size.
451451
isTypePolyBit :: Type -> Bool
452+
isTypePolyBit (TAp (TCon (TyCon i _ _)) (TAp (TCon (TyCon i' _ _)) arg))
453+
| (i == idActionValue) || (i == idActionValue_), (i' == idBit) = isTVar arg
452454
isTypePolyBit (TAp (TCon (TyCon i _ _)) arg)
453455
| (i == idBit) || (i == idActionValue) || (i == idActionValue_) = isTVar arg
454456
isTypePolyBit _ = False

0 commit comments

Comments
 (0)