packages feed

blatex 0.1.0.8 → 0.1.0.9

raw patch · 2 files changed

+5/−22 lines, 2 filesdep ~HaTeX

Dependency ranges changed: HaTeX

Files

BlaTeX.hs view
@@ -23,7 +23,6 @@  --Stuff for Dates import Data.Dates-import Data.Char (toUpper)  --Other stuff I'm using import Data.List.Split@@ -37,27 +36,11 @@  -- | 12 months names. months :: [String]-months = ["january",-          "february",-          "march",-          "april",-          "may",-          "june",-          "july",-          "august",-          "september",-          "october",-          "november",-          "december"]---- | capitalize first letter of the string-capitalize :: String -> String-capitalize [] = []-capitalize (x:xs) = (toUpper x):xs+months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]  -- | Show name of given month showMonth ::  Int -> String-showMonth i = capitalize $ months !! (i-1)+showMonth i = months !! (i-1)  displayDate :: DateTime -> String displayDate (DateTime y m d h mins s) = show d ++ " " ++ showMonth m ++ " " ++ show y@@ -124,7 +107,7 @@  fileNameToPost :: String -> IO (Either String Post)  fileNameToPost fn = do-  latexFile <- fmap (parseLaTeX . pack) (readFile ("posts/"++fn++".tex"))+  latexFile <- fmap (parseLaTeXWith (ParserConf ["verbatim", "minted"]) . pack) (readFile ("posts/"++fn++".tex"))   t <- getCurrentDateTime   return (createPost fn latexFile t) 
blatex.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/  name:                blatex-version:             0.1.0.8+version:             0.1.0.9 synopsis:            Blog in LaTeX description:         Static site generator that lets you write your blog in LaTeX and publish it to github pages. description:         Markdown and HTML are the standard tools used to write your every day tech blog with. But they have pretty weak support for embedding mathematical formulas, and are not conducive to writing for an extended period of time. Plus, they aren't even Turing complete! So use BlaTeX to start blogging in LaTeX!@@ -23,7 +23,7 @@   main-is:             Main.hs   -- other-modules:          other-extensions:    OverloadedStrings-  build-depends:       HaTeX >=3.16 && <3.17+  build-depends:       HaTeX >=3.17.0.1 && <3.18                      , base >=4.7 && <4.8                      , blaze-html >= 0.8.1.1                      , directory >=1.2 && <1.3