packages feed

highlighter 0.2 → 0.2.1

raw patch · 3 files changed

+8/−5 lines, 3 filesdep ~blaze-htmlnew-uploaderPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: blaze-html

API changes (from Hackage documentation)

+ Text.Highlighter.Formatters.Html: formatInline :: [Token] -> Html

Files

highlighter.cabal view
@@ -1,5 +1,5 @@ name:                highlighter-version:             0.2+version:             0.2.1 synopsis:            source code highlighting description:     Processes source code using tons of lexers, tokenizing it and formatting it as e.g. HTML.@@ -147,7 +147,7 @@    build-depends:     { base >= 4 && < 5-    , blaze-html+    , blaze-html < 0.5     , bytestring     , filepath     , mtl@@ -168,7 +168,7 @@    build-depends:     { base >= 4 && < 5-    , blaze-html+    , blaze-html < 0.5     , bytestring     , filepath     , mtl
src/Text/Highlighter/Formatters/Html.hs view
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedStrings #-}-module Text.Highlighter.Formatters.Html (format) where+module Text.Highlighter.Formatters.Html (format, formatInline) where  import Data.Text.Encoding (decodeUtf8) import Prelude hiding (div, span)@@ -24,6 +24,9 @@     | otherwise =         div ! class_ "highlight" $             pre $ highlight ts++formatInline :: [Token] -> Html+formatInline = code . highlight  highlight :: [Token] -> Html highlight [] = return ()
src/Text/Highlighter/Types.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE BangPatterns, TypeSynonymInstances #-}+{-# LANGUAGE BangPatterns, TypeSynonymInstances, FlexibleInstances #-} module Text.Highlighter.Types where  import Data.Char (toLower)