From 9e6028356016fde308846a61b12f3c7e16e4bd8cb2924be74dcc1a1c31df71cd Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 17 Jan 2023 18:08:22 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-formatting revision:12, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-formatting?expand=0&rev=12 --- formatting-7.1.3.tar.gz | 3 -- formatting-7.2.0.tar.gz | 3 ++ formatting.cabal | 99 ----------------------------------------- ghc-formatting.changes | 16 +++++++ ghc-formatting.spec | 4 +- 5 files changed, 20 insertions(+), 105 deletions(-) delete mode 100644 formatting-7.1.3.tar.gz create mode 100644 formatting-7.2.0.tar.gz delete mode 100644 formatting.cabal diff --git a/formatting-7.1.3.tar.gz b/formatting-7.1.3.tar.gz deleted file mode 100644 index 9c1bfc8..0000000 --- a/formatting-7.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8061bbe29278e6b7bb2268b00e1717385643dfa04e7b58b012bd53b342142cef -size 32568 diff --git a/formatting-7.2.0.tar.gz b/formatting-7.2.0.tar.gz new file mode 100644 index 0000000..f6d24dc --- /dev/null +++ b/formatting-7.2.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c07b18177af614e7e5f32e6fd924f7b35c1b1c219b3491608ee8e7276e706a6d +size 34220 diff --git a/formatting.cabal b/formatting.cabal deleted file mode 100644 index 823e649..0000000 --- a/formatting.cabal +++ /dev/null @@ -1,99 +0,0 @@ -cabal-version: 2.4 -name: formatting -version: 7.1.3 -x-revision: 2 -synopsis: Combinator-based type-safe formatting (like printf() or FORMAT) -description: Combinator-based type-safe formatting (like printf() or FORMAT), modelled from the HoleyMonoids package. - . - See the README at for more info. -homepage: https://github.com/AJChapman/formatting#readme -bug-reports: https://github.com/AJChapman/formatting/issues -license: BSD-3-Clause -license-file: LICENSE -author: Chris Done, Shachaf Ben-Kiki, Martijn van Steenbergen, Mike Meyer, Bryan O'Sullivan, Alex Chapman -maintainer: alex@farfromthere.net -copyright: 2020 Alex Chapman, 2013 Chris Done, Shachaf Ben-Kiki, Martijn van Steenbergen, Mike Meyer, 2011 MailRank, Inc. -category: Text -build-type: Simple -extra-source-files: CHANGELOG.md - README.md -tested-with: GHC == 8.4.4 - , GHC == 8.6.5 - , GHC == 8.8.3 - , GHC == 8.10.1 - , GHC == 9.0.1 - -common deps - build-depends: - base >= 4.11 && < 5, - text >= 0.11.0.8, - ghc-prim, - --- Warnings list list taken from --- https://medium.com/mercury-bank/enable-all-the-warnings-a0517bc081c3 --- Enable all warnings with -Weverything, then disable the ones we --- don’t care about - default-language: Haskell2010 - ghc-options: -Weverything - -Wno-all-missed-specialisations - -Wno-implicit-prelude - -Wno-missed-specialisations - -Wno-missing-exported-signatures - -Wno-missing-import-lists - -Wno-missing-local-signatures - -Wno-monomorphism-restriction - -Wno-missing-deriving-strategies - -Wno-safe - -Wno-unsafe - -fprint-potential-instances - if impl(ghc >= 8.10) - ghc-options: -Wno-prepositive-qualified-module - -Wno-missing-safe-haskell-mode - -library - import: deps - hs-source-dirs: src - build-depends: - clock >= 0.4, - old-locale, - scientific >= 0.3.0.0, - time >= 1.5, - transformers, - if !impl(ghcjs) - build-depends: - double-conversion ^>= 2.0.2.0, - exposed-modules: - Formatting - Formatting.Formatters - Formatting.ShortFormatters - Formatting.Combinators - Formatting.Examples - Formatting.Time - Formatting.Clock - Formatting.Internal - Formatting.Internal.Raw - Formatting.Buildable - other-modules: - Data.Text.Format.Functions - Data.Text.Format.Types - Data.Text.Format - -test-suite formatting-test - import: deps - build-depends: formatting, hspec, scientific - type: exitcode-stdio-1.0 - hs-source-dirs: test - main-is: Spec.hs - ghc-options: -threaded -rtsopts -with-rtsopts=-N - -benchmark bench - import: deps - type: exitcode-stdio-1.0 - hs-source-dirs: bench - main-is: bench.hs - build-depends: formatting, criterion, QuickCheck - ghc-options: -O2 - -source-repository head - type: git - location: http://github.com/AJChapman/formatting diff --git a/ghc-formatting.changes b/ghc-formatting.changes index 3ef2c1c..65c90bc 100644 --- a/ghc-formatting.changes +++ b/ghc-formatting.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Fri Nov 25 23:41:48 UTC 2022 - Peter Simons + +- Update formatting to version 7.2.0. + 7.2.0 + + * Added `FromBuilder` and `formatted` to simplify using formatting with other APIs (thanks Kyle Butt). + * Updated examples in comments to pass cabal-docspec (thanks Kyle Butt). + * Fixed haddock parsing in ghc-8.8.4 (thanks Oleg Grenrus). + * Generalised IO printing functions to use MonadIO (thanks Oleg Grenrus). + * Added `(%+)` and `(<%+>)` for appending formatters with a space between them, the latter also behaving like `(<>)` (thanks Oleg Grenrus). + * Allow building with Cabal 2.2 (thanks Jens Petersen). + * Removed unused dependency on `ghc-prim` + * Add a `no-double-conversion` build flag to optionally remove the dependency on `double-conversion` (Thanks Janus Troelsen) + * The `no-double-conversion` flag also fixes the build on GHC 9.4 on which `double-conversion` is apparently broken + ------------------------------------------------------------------- Wed Feb 2 09:56:26 UTC 2022 - Peter Simons diff --git a/ghc-formatting.spec b/ghc-formatting.spec index 4915a20..331fca8 100644 --- a/ghc-formatting.spec +++ b/ghc-formatting.spec @@ -19,13 +19,12 @@ %global pkg_name formatting %bcond_with tests Name: ghc-%{pkg_name} -Version: 7.1.3 +Version: 7.2.0 Release: 0 Summary: Combinator-based type-safe formatting (like printf() or FORMAT) License: BSD-3-Clause URL: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz -Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-clock-devel BuildRequires: ghc-double-conversion-devel @@ -59,7 +58,6 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} -cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build