class Downloadable a where
A class to represent types which can be downloaded using this library.
You can extend it, adding an instance for your
type and casting it to either String (possibly, with data URL),
Blob, ArrayBuffer or a typed array. However, you'll have to use
unsafeToForeign to finally cast your value. Hope we'll fix that.
toDownloadData :: a -> Foreign