
Thanks a lot it works now :)
________________________________________
De : Beginners [beginners-bounces@haskell.org] de la part de Sylvain Henry [hsyl20@gmail.com]
Envoyé : dimanche 8 novembre 2015 21:45
À : The Haskell-Beginners Mailing List - Discussion of primarily beginner-level topics related to Haskell
Objet : Re: [Haskell-beginners] ffi array and peekArray
You can alias HklFactory:
type HklFactory = Ptr ()
Or if you want to avoid mixing HklFactory and other pointers, you can use:
newtype HklFactory = HklFactory (Ptr ()) deriving (Storable)
The latter requires the GeneralizedNewtypeDeriving extension, see: https://wiki.haskell.org/Foreign_Function_Interface#Renaming_and_Storable_in...
Sylvain
2015-11-08 21:30 GMT+01:00 PICCA Frederic-Emmanuel