variable-media-field: Simple type for representing one of several media types.

[ library, media, mit ] [ Propose Tags ]

Simple type for representing one of several media types.

[Skip to Readme]


[Index] [Quick Jump]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS]
Change log
Dependencies base (>=4.7 && <5), text (>=1.0 && <1.3) [details]
License MIT
Author Daniel Firth
Category Media
Source repo head: git clone
Uploaded by locallycompact at 2021-07-25T09:07:21Z
Reverse Dependencies 2 direct, 0 indirect [details]
Downloads 276 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2021-07-29 [all 1 reports]

Readme for variable-media-field-

[back to package description]


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