Format: 1.8
Date: Thu, 03 Jan 2019 02:34:40 -0800
Source: ghcjs-skylighting-core
Binary: libghcjs-skylighting-core-dev skylighting-core-utils
Architecture: source amd64
Version: 0.7.5-0+seereason1~bionic1
Distribution: bionic-seereason
Urgency: low
Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Changed-By: SeeReason Autobuilder <partners@seereason.com>
Description:
 libghcjs-skylighting-core-dev -
 skylighting-core-utils -
Changes:
 ghcjs-skylighting-core (0.7.5-0+seereason1~bionic1) 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") (Just "ghcjs-skylighting-core") (with /proc mounted)
Checksums-Sha1:
 b72ef344e4a66edb07cee9f76bb87fff97107fe4 426808 ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1.tar.xz
 8b78fb880997e77416c19c3a0fb94348e5b239dd 11446 ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1_amd64.buildinfo
 91af9a46fa8d825abc4d72f80a0bf90a1118a98b 812024 libghcjs-skylighting-core-dev_0.7.5-0+seereason1~bionic1_amd64.deb
 cf39a8dd89f3e66d6df4227c74d5ee0238d1f96a 1518108 skylighting-core-utils_0.7.5-0+seereason1~bionic1_amd64.deb
 dc66bfe35b0e96c4875f9624fe3db525e0402e22 7481 ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1.dsc
Checksums-Sha256:
 9c59ae5ee72f018ccb801b2f83197333eec599c2300214c7191c8deb8b6aa7cb 426808 ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1.tar.xz
 49cddc47702be3ec2fe4efaf208ae0e4311ce81fdf45b7b2197e317ab86f0ef4 11446 ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1_amd64.buildinfo
 7258dbf437c620514ad35620cf58772c4ade1eeac0c97362e96dde90a5c4db34 812024 libghcjs-skylighting-core-dev_0.7.5-0+seereason1~bionic1_amd64.deb
 2607bfdfc72592b532ae2dbead1238b53523ad0cb9b247a20629842d7717da72 1518108 skylighting-core-utils_0.7.5-0+seereason1~bionic1_amd64.deb
 451d4c2c90314ad8f381e42d30b0e053c0de1b2cd6d37420ccc338758f4e3736 7481 ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1.dsc
Build-Info:
 Autobuilder-Version: 6.74
 Time: 66.719815182s
 Date: "Thu, 03 Jan 2019 02:35:47 -0800"
 Memory: 32818796 kB
 CPU: Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz
 CPU count: 8
 OS Architecture: x86_64
 CPU MHz: 974.093
 CPU cache: 8192 KB
 Host: genie
Files:
 cee516063f3b209de10a3f406871bce9 426808 haskell optional ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1.tar.xz
 441bb6e01c863a8032973e28c4e2f790 11446 haskell optional ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1_amd64.buildinfo
 e8247cf031333bdf7f2e756883b5d9c5 812024 haskell optional libghcjs-skylighting-core-dev_0.7.5-0+seereason1~bionic1_amd64.deb
 bc9c421c9568a81c5b453390a58d19fe 1518108 misc optional skylighting-core-utils_0.7.5-0+seereason1~bionic1_amd64.deb
 9cdbc2bbb530ee7b086426203c7fd114 7481 haskell optional ghcjs-skylighting-core_0.7.5-0+seereason1~bionic1.dsc
