Skip to content

Commit

Permalink
devel/hs-pretty-simple: Update to 4.1.2.0
Browse files Browse the repository at this point in the history
4.1.2.0
* Fix a problem with the pHPrint function incorrectly outputting a trailing
  newline to stdout, instead of the handle you pass it. #118
* Add a web app where you can play around with pretty-simple in your
  browser. #116. This took a lot of hard work by @georgefst!

4.1.1.0
* Make the pretty-printed output with outputOptionsCompact enabled a little
  more compact. #110. Thanks @juhp!
* Add a --compact / -C flag to the pretty-simple executable that enables
  outputOptionsCompact. #111. Thanks again @juhp!
* Add pTraceWith and pTraceShowWith to Debug.Pretty.Simple. #104. Thanks
  @LeviButcher!

4.1.0.0
* Fix a regression which arose in 4.0, whereby excess spaces would be
  inserted for unusual strings like dates and IP addresses. #105
* Attach warnings to debugging functions, so that they're easy to find and
  remove. #103
* Some minor improvements to the CLI tool:
  - Add a --version/-v flag. #83
  - Add a trailing newline. #87
  - Install by default, without requiring a flag. #94
  • Loading branch information
depressed-pho committed Jan 26, 2023
1 parent f8db036 commit 58d4bbd
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 80 deletions.
7 changes: 3 additions & 4 deletions devel/hs-MonadRandom/Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# $NetBSD: Makefile,v 1.10 2022/02/26 03:57:47 pho Exp $
# $NetBSD: Makefile,v 1.11 2023/01/26 04:02:00 pho Exp $

DISTNAME= MonadRandom-0.5.3
PKGREVISION= 4
DISTNAME= MonadRandom-0.6
CATEGORIES= devel

MAINTAINER= szptvlfn@NetBSD.org
COMMENT= Random-number generation monad
LICENSE= 2-clause-bsd
# http://www.haskell.org/haskellwiki/HaskellWiki:Copyrights

.include "../../mk/haskell.mk"
.include "../../devel/hs-primitive/buildlink3.mk"
.include "../../devel/hs-random/buildlink3.mk"
.include "../../devel/hs-transformers-compat/buildlink3.mk"
.include "../../mk/haskell.mk"
.include "../../mk/bsd.pkg.mk"
66 changes: 33 additions & 33 deletions devel/hs-MonadRandom/PLIST
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
@comment $NetBSD: PLIST,v 1.4 2021/04/23 10:41:51 pho Exp $
@comment $NetBSD: PLIST,v 1.5 2023/01/26 04:02:00 pho Exp $
lib/MonadRandom-${PKGVERSION}/${HS_VERSION}/package-description
lib/MonadRandom-${PKGVERSION}/${HS_VERSION}/package-id
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random.dyn_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Class.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Class.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Class.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Class.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Lazy.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Class.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Lazy.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Lazy.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Lazy.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Strict.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Lazy.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Strict.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Strict.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Strict.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Random/Strict.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Lazy.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Lazy.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Lazy.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Lazy.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Strict.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Lazy.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Strict.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Strict.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Strict.p_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Monad/Trans/Random/Strict.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/LICENSE
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random-Class.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random-Lazy.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random-Strict.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Trans-Random-Lazy.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Trans-Random-Strict.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Trans-Random.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/MonadRandom.haddock
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/doc-index.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/haddock-bundle.min.js
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/index.html
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/linuwial.css
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/meta.json
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/quick-jump.css
share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/synopsis.png
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
${PLIST.shlibs}lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/LICENSE
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random-Class.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random-Lazy.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random-Strict.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Random.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Trans-Random-Lazy.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Trans-Random-Strict.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/Control-Monad-Trans-Random.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/MonadRandom.haddock
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/doc-index.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/haddock-bundle.min.js
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/index.html
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/linuwial.css
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/meta.json
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/quick-jump.css
${PLIST.doc}share/doc/${HS_PLATFORM}/MonadRandom-${PKGVERSION}/html/synopsis.png
6 changes: 3 additions & 3 deletions devel/hs-MonadRandom/buildlink3.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.10 2022/02/26 03:57:47 pho Exp $
# $NetBSD: buildlink3.mk,v 1.11 2023/01/26 04:02:00 pho Exp $

BUILDLINK_TREE+= hs-MonadRandom

.if !defined(HS_MONADRANDOM_BUILDLINK3_MK)
HS_MONADRANDOM_BUILDLINK3_MK:=

BUILDLINK_API_DEPENDS.hs-MonadRandom+= hs-MonadRandom>=0.5.3
BUILDLINK_ABI_DEPENDS.hs-MonadRandom+= hs-MonadRandom>=0.5.3nb4
BUILDLINK_API_DEPENDS.hs-MonadRandom+= hs-MonadRandom>=0.6
BUILDLINK_ABI_DEPENDS.hs-MonadRandom+= hs-MonadRandom>=0.6
BUILDLINK_PKGSRCDIR.hs-MonadRandom?= ../../devel/hs-MonadRandom

.include "../../devel/hs-primitive/buildlink3.mk"
Expand Down
9 changes: 4 additions & 5 deletions devel/hs-MonadRandom/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
$NetBSD: distinfo,v 1.8 2022/02/11 13:28:05 pho Exp $
$NetBSD: distinfo,v 1.9 2023/01/26 04:02:00 pho Exp $

BLAKE2s (MonadRandom-0.5.3.tar.gz) = 8a1541944e3df8e023a2abfc66b071a92a6dfe85d76ae2be124231c282ecbb37
SHA512 (MonadRandom-0.5.3.tar.gz) = dde2a7ad4b6f27f8f4c94653b2a7c04cff1ef7a3dfbf6d036a6ef977f5952e9c7f905f0ad110438bc2764dcc985f04c9a7f1bd25997fd6f81ee55b654a7d6768
Size (MonadRandom-0.5.3.tar.gz) = 11259 bytes
SHA1 (patch-MonadRandom.cabal) = 7005a7da6e53cbaa81db4691885e6f294f874eeb
BLAKE2s (MonadRandom-0.6.tar.gz) = e71bf19db12f78b7a8e5b109515f404554dea72d783bfd4479fe0c09c6ffef9b
SHA512 (MonadRandom-0.6.tar.gz) = a6e0944bc2448a376c036330dcc17eeb6076de4b44c64729b94dede87935c2ad06af5d69ee14953a7b38d06529daa0a46a4569bc3d959f7748ce7e77abcea713
Size (MonadRandom-0.6.tar.gz) = 11402 bytes
15 changes: 0 additions & 15 deletions devel/hs-MonadRandom/patches/patch-MonadRandom.cabal

This file was deleted.

38 changes: 19 additions & 19 deletions devel/hs-async-pool/PLIST
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
@comment $NetBSD: PLIST,v 1.1 2022/02/23 16:51:44 pho Exp $
@comment $NetBSD: PLIST,v 1.2 2023/01/26 03:58:43 pho Exp $
lib/async-pool-${PKGVERSION}/${HS_VERSION}/package-description
lib/async-pool-${PKGVERSION}/${HS_VERSION}/package-id
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool.dyn_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Async.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Async.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Async.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Async.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Internal.dyn_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Async.p_hi
${PLIST.shlibs}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Internal.dyn_hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Internal.hi
lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Internal.p_hi
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/Control/Concurrent/Async/Pool/Internal.p_hi
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/LICENSE
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/Control-Concurrent-Async-Pool.html
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/async-pool.haddock
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/doc-index.html
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/haddock-bundle.min.js
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/index.html
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/linuwial.css
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/meta.json
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/quick-jump.css
share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/synopsis.png
${PLIST.prof}lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
${PLIST.shlibs}lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/LICENSE
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/Control-Concurrent-Async-Pool.html
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/async-pool.haddock
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/doc-index.html
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/haddock-bundle.min.js
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/index.html
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/linuwial.css
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/meta.json
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/quick-jump.css
${PLIST.doc}share/doc/${HS_PLATFORM}/async-pool-${PKGVERSION}/html/synopsis.png
3 changes: 2 additions & 1 deletion devel/hs-async-pool/distinfo
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.1 2022/02/23 16:51:44 pho Exp $
$NetBSD: distinfo,v 1.2 2023/01/26 03:58:43 pho Exp $

BLAKE2s (async-pool-0.9.1.tar.gz) = b0cde9e12cc7c5e83339d908e4ec1c8d6a1943e3b7a9d07ea6a2539eeea73ef1
SHA512 (async-pool-0.9.1.tar.gz) = 36f955bf85ef37b8cf5c4b25638df7cd3c88afe5cc87668d7bcaf1b244b655594220f0031e56e754470014d00d6e01b7ad6d090b8e88ef2ec6bebb4c8c8909ce
Size (async-pool-0.9.1.tar.gz) = 15109 bytes
SHA1 (patch-Control_Concurrent_Async_Pool_Async.hs) = ac9708f460bc50dcb359ac197c06628354f141c9
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
$NetBSD: patch-Control_Concurrent_Async_Pool_Async.hs,v 1.1 2023/01/26 03:58:43 pho Exp $

Fix build with GHC 9.4:
https://github.com/jwiegley/async-pool/commit/c5b8e82be6496fd754ce78a4303bb177d6c6a6df

--- Control/Concurrent/Async/Pool/Async.hs.orig 2001-09-09 01:46:40.000000000 +0000
+++ Control/Concurrent/Async/Pool/Async.hs
@@ -710,10 +710,18 @@ tryAll = try
-- exception handler.
{-# INLINE rawForkIO #-}
rawForkIO :: IO () -> IO ThreadId
+#if MIN_VERSION_base(4,17,0)
+rawForkIO (IO action) = IO $ \ s ->
+#else
rawForkIO action = IO $ \ s ->
+#endif
case (fork# action s) of (# s1, tid #) -> (# s1, ThreadId tid #)

{-# INLINE rawForkOn #-}
rawForkOn :: Int -> IO () -> IO ThreadId
+#if MIN_VERSION_base(4,17,0)
+rawForkOn (I# cpu) (IO action) = IO $ \ s ->
+#else
rawForkOn (I# cpu) action = IO $ \ s ->
+#endif
case (forkOn# cpu action s) of (# s1, tid #) -> (# s1, ThreadId tid #)

0 comments on commit 58d4bbd

Please sign in to comment.