Format: 1.8
Date: Thu, 03 Jan 2019 00:32:16 -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~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:
 libghc-skylighting-core-dev -
 libghc-skylighting-core-doc -
 libghc-skylighting-core-prof -
 skylighting-extract -
Changes:
 haskell-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") Nothing (with /proc mounted)
Checksums-Sha1:
 1d91f01862695bc249bba94e043eb8ed08db309e 426960 haskell-skylighting-core_0.7.5-0+seereason1~bionic1.tar.xz
 8bc12bad1a7ba0afe49a37e2ad0413414112bbe4 14650 haskell-skylighting-core_0.7.5-0+seereason1~bionic1_amd64.buildinfo
 a3add4e019adae74bd045fe9f9f272c7f47f8055 943324 libghc-skylighting-core-dev_0.7.5-0+seereason1~bionic1_amd64.deb
 9b3d787617ed10fa1657b018574842d14f1bd249 124772 libghc-skylighting-core-doc_0.7.5-0+seereason1~bionic1_all.deb
 3515c8daa42b38aff211b1b802c04f7b7d68974e 844412 libghc-skylighting-core-prof_0.7.5-0+seereason1~bionic1_amd64.deb
 b94a96d58beb02dc5d08704f6e031b6a3630f1c2 2060248 skylighting-extract_0.7.5-0+seereason1~bionic1_amd64.deb
 ab208ce062b82ea49c698e4d3a047afad23a0120 9560 haskell-skylighting-core_0.7.5-0+seereason1~bionic1.dsc
Checksums-Sha256:
 773f9d1f786cb2a87f623ac47fa71838b7f58bbba6e3486a5e123cda0638860d 426960 haskell-skylighting-core_0.7.5-0+seereason1~bionic1.tar.xz
 8393372de96adac4f4523febd1a8a967687babe2efa87a96c572501182c68de6 14650 haskell-skylighting-core_0.7.5-0+seereason1~bionic1_amd64.buildinfo
 e15d9b3da3d99292e1976a4d42ea7b8410e4afcfd189080b84cc10b9bdbcd038 943324 libghc-skylighting-core-dev_0.7.5-0+seereason1~bionic1_amd64.deb
 711f356c5ce4377c2913f1fb4c60798504e585fcf014cf698933d6dd11ba4ea4 124772 libghc-skylighting-core-doc_0.7.5-0+seereason1~bionic1_all.deb
 b64f6f7fcd752cd631ed6eb83f7147c97da779d667c242d2c8ac0027b19e8ee9 844412 libghc-skylighting-core-prof_0.7.5-0+seereason1~bionic1_amd64.deb
 24aaeff5ffaa17596bfb4efbd5602af9180921b800359436a3a96467ce32f6ad 2060248 skylighting-extract_0.7.5-0+seereason1~bionic1_amd64.deb
 d21e8c8650f024b8351ece66df89f6d6ac314dc017905e1d5d5d08cd5e2a6221 9560 haskell-skylighting-core_0.7.5-0+seereason1~bionic1.dsc
Build-Info:
 Autobuilder-Version: 6.74
 Time: 92.719602332s
 Date: "Thu, 03 Jan 2019 00:33:49 -0800"
 Memory: 32818796 kB
 CPU: Intel(R) Core(TM) i7-7700T CPU @ 2.90GHz
 CPU count: 8
 OS Architecture: x86_64
 CPU MHz: 2304.122
 CPU cache: 8192 KB
 Host: genie
Files:
 a9dfb659a101f448a1b468502d848afc 426960 haskell optional haskell-skylighting-core_0.7.5-0+seereason1~bionic1.tar.xz
 9639e8f40be47cfb4e15887cabb3871a 14650 haskell optional haskell-skylighting-core_0.7.5-0+seereason1~bionic1_amd64.buildinfo
 1572e44efc5cf3f8006d7167ffde3b54 943324 haskell optional libghc-skylighting-core-dev_0.7.5-0+seereason1~bionic1_amd64.deb
 d00e9174761960125b56f045785a3e50 124772 doc optional libghc-skylighting-core-doc_0.7.5-0+seereason1~bionic1_all.deb
 44194510bf40085f2b336d2866a6b616 844412 haskell optional libghc-skylighting-core-prof_0.7.5-0+seereason1~bionic1_amd64.deb
 1e3f8ea638aa21d571b357afb639a365 2060248 misc optional skylighting-extract_0.7.5-0+seereason1~bionic1_amd64.deb
 b5abf18740d51ecffd7db57ccf2b1b05 9560 haskell optional haskell-skylighting-core_0.7.5-0+seereason1~bionic1.dsc
