
8 Nov
2015
8 Nov
'15
3:30 p.m.
Ok, so now I get this error ghkl.hs:20:18: No instance for (Foreign.Storable.Storable HklFactory) arising from a use of ‘peekArray’ In a stmt of a 'do' block: peekArray n factories In the expression: do { factories <- c_hkl_factory_get_all ptr; n <- peek ptr; peekArray n factories } In the second argument of ‘($)’, namely ‘\ ptr -> do { factories <- c_hkl_factory_get_all ptr; n <- peek ptr; .... }’ What should I do to create a Storable for HklFactory which is a simple pointer. Thanks Frederic