Movatterモバイル変換


[0]ホーム

URL:


pandoc-3.6.4: Conversion between markup formats
CopyrightCopyright (C) 2014-2015 2017-2024 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.Pandoc.MediaBag

Description

Definition of a MediaBag object to hold binary resources, and aninterface for interacting with it.

Synopsis

Documentation

dataMediaItemSource#

Constructors

MediaItem 

Instances

Instances details
DataMediaItemSource# 
Instance details

Defined inText.Pandoc.MediaBag

Methods

gfoldl :: (forall d b.Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) ->MediaItem -> cMediaItem#

gunfold :: (forall b r.Data b => c (b -> r) -> c r) -> (forall r. r -> c r) ->Constr -> cMediaItem#

toConstr ::MediaItem ->Constr#

dataTypeOf ::MediaItem ->DataType#

dataCast1 ::Typeable t => (forall d.Data d => c (t d)) ->Maybe (cMediaItem)#

dataCast2 ::Typeable t => (forall d e. (Data d,Data e) => c (t d e)) ->Maybe (cMediaItem)#

gmapT :: (forall b.Data b => b -> b) ->MediaItem ->MediaItem#

gmapQl :: (r -> r' -> r) -> r -> (forall d.Data d => d -> r') ->MediaItem -> r#

gmapQr ::forall r r'. (r' -> r -> r) -> r -> (forall d.Data d => d -> r') ->MediaItem -> r#

gmapQ :: (forall d.Data d => d -> u) ->MediaItem -> [u]#

gmapQi ::Int -> (forall d.Data d => d -> u) ->MediaItem -> u#

gmapM ::Monad m => (forall d.Data d => d -> m d) ->MediaItem -> mMediaItem#

gmapMp ::MonadPlus m => (forall d.Data d => d -> m d) ->MediaItem -> mMediaItem#

gmapMo ::MonadPlus m => (forall d.Data d => d -> m d) ->MediaItem -> mMediaItem#

ShowMediaItemSource# 
Instance details

Defined inText.Pandoc.MediaBag

EqMediaItemSource# 
Instance details

Defined inText.Pandoc.MediaBag

OrdMediaItemSource# 
Instance details

Defined inText.Pandoc.MediaBag

dataMediaBagSource#

A container for a collection of binary resources, with names and mime types. Note that aMediaBag is a Monoid, somempty can be used for an emptyMediaBag, and<> can be used to append twoMediaBags.

Instances

Instances details
DataMediaBagSource# 
Instance details

Defined inText.Pandoc.MediaBag

Methods

gfoldl :: (forall d b.Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) ->MediaBag -> cMediaBag#

gunfold :: (forall b r.Data b => c (b -> r) -> c r) -> (forall r. r -> c r) ->Constr -> cMediaBag#

toConstr ::MediaBag ->Constr#

dataTypeOf ::MediaBag ->DataType#

dataCast1 ::Typeable t => (forall d.Data d => c (t d)) ->Maybe (cMediaBag)#

dataCast2 ::Typeable t => (forall d e. (Data d,Data e) => c (t d e)) ->Maybe (cMediaBag)#

gmapT :: (forall b.Data b => b -> b) ->MediaBag ->MediaBag#

gmapQl :: (r -> r' -> r) -> r -> (forall d.Data d => d -> r') ->MediaBag -> r#

gmapQr ::forall r r'. (r' -> r -> r) -> r -> (forall d.Data d => d -> r') ->MediaBag -> r#

gmapQ :: (forall d.Data d => d -> u) ->MediaBag -> [u]#

gmapQi ::Int -> (forall d.Data d => d -> u) ->MediaBag -> u#

gmapM ::Monad m => (forall d.Data d => d -> m d) ->MediaBag -> mMediaBag#

gmapMp ::MonadPlus m => (forall d.Data d => d -> m d) ->MediaBag -> mMediaBag#

gmapMo ::MonadPlus m => (forall d.Data d => d -> m d) ->MediaBag -> mMediaBag#

MonoidMediaBagSource# 
Instance details

Defined inText.Pandoc.MediaBag

SemigroupMediaBagSource# 
Instance details

Defined inText.Pandoc.MediaBag

ShowMediaBagSource# 
Instance details

Defined inText.Pandoc.MediaBag

deleteMediaSource#

Arguments

::FilePath

relative path and canonical name of resource

->MediaBag 
->MediaBag 

Delete a media item from aMediaBag, or do nothing if no item corresponds to the given path.

lookupMedia ::FilePath ->MediaBag ->MaybeMediaItemSource#

Lookup a media item in aMediaBag, returning mime type and contents.

insertMediaSource#

Arguments

::FilePath

relative path and canonical name of resource

->MaybeMimeType

mime type (Nothing = determine from extension)

->ByteString

contents of resource

->MediaBag 
->MediaBag 

Insert a media item into aMediaBag, replacing any existing value with the same name.

mediaDirectory ::MediaBag -> [(FilePath,MimeType,Int)]Source#

Get a list of the file paths stored in aMediaBag, with their corresponding mime types and the lengths in bytes of the contents.

mediaItems ::MediaBag -> [(FilePath,MimeType,ByteString)]Source#

Produced byHaddock version 2.29.1


[8]ページ先頭

©2009-2025 Movatter.jp