This module defines types and functions for working with foreign data.
A type for foreign data.
Foreign data is data from any external unknown or unreliable source, for which it cannot be guaranteed that the runtime representation conforms to that of any particular type.
Suitable applications of
- To represent responses from web services
unsafeToForeign :: forall a. a -> Foreign
Coerce any value to the a