You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StorableWrap is meant for use with functions which consume something belonging to the typeclass CStorable, when people want a shortcut for using a Storable object instead.
e.g.
f :: (CStorable a) -> IO ()
f (StorableWrap somethingStorable)
If you want something the other way around as well, feel free to write it and submit a PR, but this codepath is not useless, it is actually in use.
Am I missing something?
Isn't this instance:
completly useless?
Why would I want CStorable if I already have Storable?
It should be other way round:
so I could derive Generic instance for my type, wrap it with StorableWrap and feed it to some function that takes Storable.
The text was updated successfully, but these errors were encountered: