summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/MediaBag.hs
Commit message (Collapse)AuthorAge
* Update copyright notices to include 2018Albert Krewinkel2018-01-05
|
* hlint changes.John MacFarlane2017-10-27
|
* Use foldrWithKey instead of deprecated foldWithKey.John MacFarlane2017-07-13
|
* Changed "extracting..." warning to a regular log message.John MacFarlane2017-06-12
| | | | | | | | | | | | This makes it sensitive to proper verbosity settings. (It is now treated as INFO rather than WARNING, so one doesn't get these messages for creation of tmp images while making a pdf.) API changes: * Removed extractMediaBag from Text.Pandoc.MediaBag. * Added Extracting as constructor for LogMessage.
* Update dates in copyright noticesAlbert Krewinkel2017-05-13
| | | | | This follows the suggestions given by the FSF for GPL licensed software. <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* MediaBag: put extractMediaBag into MonadIO.John MacFarlane2017-01-25
|
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Use custom Prelude to avoid compiler warnings.John MacFarlane2015-10-14
| | | | | | | | | | | | | - The (non-exported) prelude is in prelude/Prelude.hs. - It exports Monoid and Applicative, like base 4.8 prelude, but works with older base versions. - It exports (<>) for mappend. - It hides 'catch' on older base versions. This allows us to remove many imports of Data.Monoid and Control.Applicative, and remove Text.Pandoc.Compat.Monoid. It should allow us to use -Wall again for ghc 7.10.
* Removed unneeded imports.John MacFarlane2015-09-26
|
* MediaBag: ensure that / is always used as path separator.John MacFarlane2015-09-26
|
* Derive from Data and Typeable for libpandocShahbaz Youssefi2015-03-19
| | | | | | | | | | | This commit derives a few types from Data and Typeable used by libpandoc. Requires corresponding pull-request for Highlighting-Kate: https://github.com/jgm/highlighting-kate/pull/64 Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>
* MediaBag: Fixes Windows specific path problemsmpickering2014-09-25
| | | | | | | | Changes the internal representation to fix the problem. I haven't tested this on windows. Closes #1597
* Remove an unnecessary import.Artyom Kazak2014-08-17
|
* MIME cleanup.Artyom Kazak2014-08-17
| | | | | | | * Create a type synonym for MIME type (instead of `String`). * Add `getMimeTypeDef` function. * Avoid recreating MIME type `Map`s every time. * Move “Formula-...” case handling into `getMimeType`.
* MediaBag: Improved normalisation when writing filesMatthew Pickering2014-08-05
|
* New module, Text.Pandoc.MediaBag.John MacFarlane2014-07-31
Moved `MediaBag` definition and functions from Shared: `lookupMedia`, `mediaDirectory`, `insertMedia`, `extractMediaBag`. Removed `emptyMediaBag`; use `mempty` instead, since `MediaBag` is a Monoid.