packages feed

skylighting-core 0.7.0.2 → 0.7.1

raw patch · 4 files changed

+18/−8 lines, 4 filesdep ~criterionPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: criterion

API changes (from Hackage documentation)

Files

benchmark/benchmark.hs view
@@ -3,7 +3,7 @@ import qualified Data.Map as Map import Data.Text (Text) import qualified Data.Text as Text-import Skylighting+import Skylighting.Core import System.FilePath -- import System.Directory @@ -20,8 +20,9 @@   -- xmlfiles <- filter (\x -> takeExtension x == ".xml") <$>   --                getDirectoryContents "xml"   let xmlfiles = ["haskell.xml"]+  Right syntaxmap <- loadSyntaxesFromDir "xml"   defaultMainWith defaultConfig{ timeLimit = 10.0 }-    $ parseBench xmlfiles : map testBench cases+    $ parseBench xmlfiles : map (testBench syntaxmap) cases  parseBench :: [String] -> Benchmark parseBench xmls =@@ -33,13 +34,13 @@                 Left e  -> error e                 Right r -> return r -testBench :: (Text, Text) -> Benchmark-testBench (format, contents) =+testBench :: SyntaxMap -> (Text, Text) -> Benchmark+testBench syntaxmap (format, contents) =   bench (Text.unpack format) $ nf     (sum . map length . either (error "tokenize failed") id .      tokenize TokenizerConfig{ traceOutput = False-                             , syntaxMap = defaultSyntaxMap } syntax) contents+                             , syntaxMap = syntaxmap } syntax) contents    where syntax = maybe (error "could not find syntax") id-                       (lookupSyntax format defaultSyntaxMap)+                       (lookupSyntax format syntaxmap) 
changelog.md view
@@ -1,5 +1,12 @@ # Revision history for skylighting-core +## 0.7.1 -- 2018-03-15++  * Fix benchmarks, which previously depended on a module+    defined in skylighting (#42).+  * Export Skylighting.Loader from Skylighting.Core.+  * Bump version bound for criterion.+ ## 0.7.0.2 -- 2018-03-06    * Ensure that regex captures are not overwritten by regexes
skylighting-core.cabal view
@@ -1,5 +1,5 @@ name:                skylighting-core-version:             0.7.0.2+version:             0.7.1 synopsis:            syntax highlighting library description:         Skylighting is a syntax highlighting library.                      It derives its tokenizers from XML syntax@@ -180,7 +180,7 @@                    text,                    containers,                    directory,-                   criterion >= 1.0 && < 1.4+                   criterion >= 1.0 && < 1.5   Ghc-Options:   -rtsopts -Wall -fno-warn-unused-do-bind   Default-Language: Haskell2010 
src/Skylighting/Core.hs view
@@ -9,6 +9,7 @@   , module Skylighting.Parser   , module Skylighting.Regex   , module Skylighting.Styles+  , module Skylighting.Loader   , module Skylighting.Format.ANSI   , module Skylighting.Format.HTML   , module Skylighting.Format.LaTeX@@ -22,6 +23,7 @@ import Skylighting.Format.ANSI import Skylighting.Format.HTML import Skylighting.Format.LaTeX+import Skylighting.Loader import Skylighting.Parser import Skylighting.Regex import Skylighting.Styles