We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2fdd8d8 commit 0be36e6Copy full SHA for 0be36e6
src/comp/CType.hs
@@ -449,6 +449,8 @@ getActionValueArg t = internalError ("getActionValueArg: " ++ ppReadable t)
449
-- These are used during foreign function processing to determine if arguments
450
-- and return values are polymorphic or of a known size.
451
isTypePolyBit :: Type -> Bool
452
+isTypePolyBit (TAp (TCon (TyCon i _ _)) (TAp (TCon (TyCon i' _ _)) arg))
453
+ | (i == idActionValue) || (i == idActionValue_), (i' == idBit) = isTVar arg
454
isTypePolyBit (TAp (TCon (TyCon i _ _)) arg)
455
| (i == idBit) || (i == idActionValue) || (i == idActionValue_) = isTVar arg
456
isTypePolyBit _ = False
0 commit comments