variable-media-field

Simple type for representing one of several media types.

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

See all snapshots variable-media-field appears in

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

Module documentation for 0.1.0.0

variable-media-field

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] }

Changes

Changelog for variable-media-field

v0.1.0.0

Export VF and VFC data types.