Answer the question
In order to leave comments, you need to log in
How to define an instance Storable in an elegant and portable way?
Let's say we have a type
data MyType = MyType Bool Double Char Int
instance Storable MyType where
sizeOf = undefined
alignment = undefined
peek ptr = undefined
poke ptr = undefined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question