packages feed

BlogLiterately 0.5.3 → 0.5.4

raw patch · 3 files changed

+19/−21 lines, 3 filesdep +data-defaultdep ~pandoc

Dependencies added: data-default

Dependency ranges changed: pandoc

Files

BlogLiterately.cabal view
@@ -1,5 +1,5 @@ Name:           BlogLiterately-Version:        0.5.3+Version:        0.5.4 Synopsis:       A tool for posting Haskelly articles to blogs Description:    Write blog posts in Markdown format, then use BlogLiterately                 to do syntax highlighting, format ghci sessions, and upload@@ -15,17 +15,6 @@                 particular, it is easy to create your own executable                 which adds extra custom transformations; see                 "Text.BlogLiterately.Run".-                .-                Note that BlogLiterately depends on blaze-html-0.5.-                Pandoc 1.9.3 and later can depend on either-                blaze-html-0.4 or blaze-html-0.5, but the latter only-                in case the blaze_html_0_5 flag is set.  If pandoc is-                installed as a dependency of BlogLiterately,-                everything should work out fine, since cabal's-                constraint solver will figure out to set that flag.-                But if pandoc is already installed against-                blaze-html-0.4 you may need to reinstall it with the-                blaze_html_0_5 flag explicitly set. Cabal-Version:  >= 1.10 Homepage:       http://byorgey.wordpress.com/blogliterately/ License:        GPL@@ -36,7 +25,7 @@ Maintainer:     Brent Yorgey <byorgey@cis.upenn.edu> Stability:      experimental Build-Type:     Simple-Tested-With:    GHC ==7.4.1+Tested-With:    GHC ==7.4.2, GHC ==7.6.1 Extra-Source-Files: CHANGES                     doc/BlogLiteratelyDoc.lhs                     style/*.css@@ -64,7 +53,8 @@                    blaze-html >= 0.5 && < 0.6,                    cmdargs >= 0.9.5 && < 0.11,                    haxr >= 3000.9 && < 3000.10,-                   pandoc >= 1.9.3 && < 1.11+                   pandoc >= 1.10 && < 1.11,+                   data-default >= 0.5 && < 0.6   Exposed-modules: Text.BlogLiterately                    Text.BlogLiterately.Block                    Text.BlogLiterately.Ghci
CHANGES view
@@ -1,3 +1,7 @@+0.5.4: 24 January 2013++  * Require pandoc 1.10.+ 0.5.3: 19 November 2012    * New --math option for selecting pandoc math writing mode
src/Text/BlogLiterately/Transform.hs view
@@ -42,11 +42,14 @@                                             , Kleisli(..), runKleisli ) import qualified Control.Category as C      ( Category, id ) import qualified Data.Traversable as T-import           Data.Bool.Extras (whenA)-import           Data.List (isPrefixOf)+import           Data.Default               ( def )+import qualified Data.Set         as S+import           Data.Bool.Extras           ( whenA )+import           Data.List                  ( isPrefixOf ) -import           Text.Pandoc import           Text.Blaze.Html.Renderer.String      ( renderHtml )+import           Text.Pandoc+import           Text.Pandoc.Options  import           Text.BlogLiterately.Ghci import           Text.BlogLiterately.Highlight@@ -161,11 +164,12 @@     >>> arr     (writeHtml writeOpts)     >>> arr     renderHtml   where-    parseOpts = defaultParserState-                { stateLiterateHaskell = True-                , stateSmart           = True+    parseOpts = def+                { readerExtensions = Ext_literate_haskell+                                     `S.insert` readerExtensions def+                , readerSmart      = True                 }-    writeOpts = defaultWriterOptions+    writeOpts = def                 { writerReferenceLinks = True                 , writerHTMLMathMethod =                   case math bl of