Format: 1.8
Date: Thu, 03 Jan 2019 16:34:42 -0800
Source: haskell-skylighting-core
Binary: skylighting-extract libghc-skylighting-core-dev libghc-skylighting-core-prof libghc-skylighting-core-doc
Architecture: source amd64 all
Version: 0.7.5-0+seereason1~bionic2
Distribution: bionic-seereason
Urgency: low
Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Changed-By: SeeReason Autobuilder <partners@seereason.com>
Description:
 libghc-skylighting-core-dev -
 libghc-skylighting-core-doc -
 libghc-skylighting-core-prof -
 skylighting-extract -
Changes:
 haskell-skylighting-core (0.7.5-0+seereason1~bionic2) bionic-seereason; urgency=low
 .
   * Initial release
   * Built from hackage, revision: Debianize'' (Patch (Hackage "skylighting-core") "--- old/skylighting-core.cabal\t2019-01-01 21:09:25.230395127 -0800\n+++ new/skylighting-core.cabal\t2019-01-01 21:12:14.035833398 -0800\n@@ -129,10 +129,13 @@\n                        containers,\n                        ansi-terminal >= 0.7,\n                        colour >= 2.0\n-  if flag(system-pcre)\n-    build-depends:     regex-pcre\n+  if impl(ghcjs)\n+    build-depends:     regex-base, regex-tdfa, regex-compat-tdfa\n   else\n-    build-depends:     regex-pcre-builtin\n+    if flag(system-pcre)\n+      build-depends:     regex-pcre\n+    else\n+      build-depends:     regex-pcre-builtin\n   hs-source-dirs:      src\n   ghc-prof-options:    -fprof-auto-exported\n   default-language:    Haskell2010\n@@ -140,7 +143,9 @@\n \n Flag executable\n   Description:   Build skylighting CLI tools\n-  Default:       False\n+  Default:       True\n+  Manual:        True\n+\n \n Flag system-pcre\n   Description:   Use regex-pcre instead of regex-pcre-builtin\n@@ -201,10 +206,13 @@\n                        directory,\n                        ansi-terminal >= 0.7,\n                        colour >= 2.0\n-  if flag(system-pcre)\n-    build-depends:     regex-pcre\n+  if impl(ghcjs)\n+    build-depends:     regex-base, regex-tdfa, regex-compat-tdfa\n   else\n-    build-depends:     regex-pcre-builtin\n+    if flag(system-pcre)\n+      build-depends:     regex-pcre\n+    else\n+      build-depends:     regex-pcre-builtin\n   if flag(executable)\n     buildable:         True\n   else\n--- old/src/Skylighting/Regex.hs\t2018-03-03 08:47:19.000000000 -0800\n+++ new/src/Skylighting/Regex.hs\t2019-01-01 21:15:14.841161062 -0800\n@@ -1,3 +1,4 @@\n+{-# LANGUAGE CPP  #-}\n {-# LANGUAGE DeriveDataTypeable  #-}\n {-# LANGUAGE DeriveGeneric       #-}\n {-# LANGUAGE OverloadedStrings   #-}\n@@ -22,9 +23,14 @@\n import qualified Data.Text as Text\n import qualified Data.Text.Encoding as TE\n import GHC.Generics (Generic)\n-import System.IO.Unsafe (unsafePerformIO)\n import Text.Printf\n+#if __GHCJS__\n+import Text.Regex.TDFA\n+import Text.Regex.TDFA.ByteString\n+#else\n+import System.IO.Unsafe (unsafePerformIO)\n import Text.Regex.PCRE.ByteString\n+#endif\n \n -- | An exception in compiling or executing a regex.\n newtype RegexException = RegexException String\n@@ -53,6 +59,16 @@\n -- a bytestring interpreted as UTF-8.  If the regex cannot be compiled,\n -- a 'RegexException' is thrown.\n compileRegex :: Bool -> BS.ByteString -> Regex\n+#if __GHCJS__\n+compileRegex caseSensitive' regexpStr =\n+  let opts = {-compAnchored + compUTF8 +-}\n+               (defaultCompOpt {caseSensitive = caseSensitive'})\n+  in  case {-unsafePerformIO $-} compile opts ({-execNotEmpty-} defaultExecOpt) regexpStr of\n+            Left ({-off,-}msg) -> E.throw $ RegexException $\n+                        \"Error compiling regex /\" ++ toString regexpStr ++\n+                        \"/ \" ++ {-\"at offset \" ++ show off ++-} \"\\n\" ++ msg\n+            Right r -> r\n+#else\n compileRegex caseSensitive regexpStr =\n   let opts = compAnchored + compUTF8 +\n                if caseSensitive then 0 else compCaseless\n@@ -61,6 +77,7 @@\n                         \"Error compiling regex /\" ++ toString regexpStr ++\n                         \"/ at offset \" ++ show off ++ \"\\n\" ++ msg\n             Right r -> r\n+#endif\n \n -- | Convert octal escapes to the form pcre wants.  Note:\n -- need at least pcre 8.34 for the form \\o{dddd}.\n@@ -91,11 +108,19 @@\n -- If there are errors in executing the regex, a 'RegexException' is\n -- thrown.\n matchRegex :: Regex -> BS.ByteString -> Maybe [BS.ByteString]\n+#if __GHCJS__\n+matchRegex r s = case (regexec r s) of\n+                      Right (Just (_, mat, _ , capts)) ->\n+                                       Just (mat : capts)\n+                      Right Nothing -> Nothing\n+                      Left (msg) -> E.throw $ RegexException msg\n+#else\n matchRegex r s = case unsafePerformIO (regexec r s) of\n                       Right (Just (_, mat, _ , capts)) ->\n                                        Just (mat : capts)\n                       Right Nothing -> Nothing\n                       Left (_rc, msg) -> E.throw $ RegexException msg\n+#endif\n \n -- functions to marshall bytestrings to text\n \n") Nothing (with /proc mounted)
Checksums-Sha1:
 1af7105d4e499c54a3def9f3c0faa0bce927abc4 427012 haskell-skylighting-core_0.7.5-0+seereason1~bionic2.tar.xz
 b5768b33829b9f29f61a92f13ee4ec816819f0aa 14521 haskell-skylighting-core_0.7.5-0+seereason1~bionic2_amd64.buildinfo
 342c7ea99f5f68eaba7873d07444173fa9d9aba1 931680 libghc-skylighting-core-dev_0.7.5-0+seereason1~bionic2_amd64.deb
 f3f7116ec16c50b176c0aab42273dd924046ca98 130816 libghc-skylighting-core-doc_0.7.5-0+seereason1~bionic2_all.deb
 4500a16568ec07480956d044016c90e9e8feb5e3 837004 libghc-skylighting-core-prof_0.7.5-0+seereason1~bionic2_amd64.deb
 a6c0c72c79a0cfb3ddbdcd4f58188ee42d1fd4d4 2026608 skylighting-extract_0.7.5-0+seereason1~bionic2_amd64.deb
 b0a71f40ead5ac9e138f01e6fce98913135b6da0 9578 haskell-skylighting-core_0.7.5-0+seereason1~bionic2.dsc
Checksums-Sha256:
 e4a30881712e2300fbac678d3f95086e8e6cefab080795e6dff553afa56aa2c4 427012 haskell-skylighting-core_0.7.5-0+seereason1~bionic2.tar.xz
 30122223cf12d175b75748123df974d2e7108fed6a5907c89a7e013412de169e 14521 haskell-skylighting-core_0.7.5-0+seereason1~bionic2_amd64.buildinfo
 486754c6b6802cfa6ea125dd255181471f32dd744c8c945d16f8f998acb8a052 931680 libghc-skylighting-core-dev_0.7.5-0+seereason1~bionic2_amd64.deb
 0a79e4428a3dfcdceb1a6e7fea63094be64ebf6b7200c8b97e051ba00bddcca6 130816 libghc-skylighting-core-doc_0.7.5-0+seereason1~bionic2_all.deb
 3a6d78c1db055a154339e334068627e10cf061900ec5b25582251986fc871c8a 837004 libghc-skylighting-core-prof_0.7.5-0+seereason1~bionic2_amd64.deb
 6bb85cbfbf42b7478ac5640e7de4ab7c0dcb4a369b7b99cb2cd5dd1c7a719d1a 2026608 skylighting-extract_0.7.5-0+seereason1~bionic2_amd64.deb
 83dbc4db4d039fb6dbfe120340fe66c1c66ce42d6aa14e50aa37d67d0ec7623c 9578 haskell-skylighting-core_0.7.5-0+seereason1~bionic2.dsc
Build-Info:
 Autobuilder-Version: 6.74
 Time: 99.279683746s
 Date: "Thu, 03 Jan 2019 16:36:21 -0800"
 Memory: 32818796 kB
 CPU: Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz
 CPU count: 8
 OS Architecture: x86_64
 CPU MHz: 1188.227
 CPU cache: 8192 KB
 Host: genie
Files:
 9e6d900aafaf2aefc3a094eb4921cb96 427012 haskell optional haskell-skylighting-core_0.7.5-0+seereason1~bionic2.tar.xz
 6a4e7b9b2db00437f955c561229ce941 14521 haskell optional haskell-skylighting-core_0.7.5-0+seereason1~bionic2_amd64.buildinfo
 4d82af96c4750c0d161b4983eda0406e 931680 haskell optional libghc-skylighting-core-dev_0.7.5-0+seereason1~bionic2_amd64.deb
 ef747d543ea8b51e882919fc88d86717 130816 doc optional libghc-skylighting-core-doc_0.7.5-0+seereason1~bionic2_all.deb
 c4466c7b23384c3da0549807756afa4b 837004 haskell optional libghc-skylighting-core-prof_0.7.5-0+seereason1~bionic2_amd64.deb
 aaa32d833dca7d245f4ea351a5943d3f 2026608 misc optional skylighting-extract_0.7.5-0+seereason1~bionic2_amd64.deb
 54a7a33a064913e22bf82fdbb681aad8 9578 haskell optional haskell-skylighting-core_0.7.5-0+seereason1~bionic2.dsc
