Simple type for representing one of several media types.

Stackage Nightly 2022-01-20:
Latest on Hackage:

See all snapshots variable-media-field appears in

MIT licensed by Daniel Firth
This version can be pinned in stack with:variable-media-field-,916

Module documentation for


Variable media field is a simple GADT for representing a media element. It is defined:

data VF u where
  Blank :: VF u
  RawText :: Text -> VF u
  Image :: u -> VF u
  Audio :: u -> VF u
  Video :: u -> VF u

You can specify u as the mechanism for including media elements in your type. Either by paths, uris or some other method.

Also defined is a collection of media elements.

data VFC u = VFC { unVFC :: [VF u] }


Changelog for variable-media-field


Export VF and VFC data types.