Skip to content

Map 'WordXY' and 'IntXY' types to 'uintXY_t' and 'intXY_t' #44

Open
@sboosali

Description

@sboosali

this Haskell function (in Events.hs):

press flags keys = $(objc ['flags :> [t|Word64|], 'keys :> [t|String|]] $ void [cexp|
 NSLog(@"%qu %@", flags, keys)
|])

causes this error, from the generated C (in Events_objc.h):

./Events_objc.h:10:37: error: unknown type name 'HsStablePtr'
void cwrapper_1627417270_1627417271(HsStablePtr flags_1627417272,

maybe this is because Events_objc.m imports "HsFFI.h", but Events_objc.h does not? maybe Word64 causes issues? My makefile could be wrong. or I could be using the hints wrongly, I'm trying to pass a unsigned integer.

I pushed a branch here: https://github.com/sboosali/Haskell-DragonNaturallySpeaking/tree/issue

relevant files:

Makefile
Events.hs
Main.hs
Events_objc.h
Events_objc.m

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions