osc copypac from project:devel:languages:haskell:ghc-8.10.x package:ghc-HsYAML-aeson revision:25, using keep-link
OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-HsYAML-aeson?expand=0&rev=27
This commit is contained in:
parent
1db2a0c8d8
commit
5cf1a3b460
81
HsYAML-aeson.cabal
Normal file
81
HsYAML-aeson.cabal
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
cabal-version: 2.2
|
||||||
|
name: HsYAML-aeson
|
||||||
|
version: 0.2.0.1
|
||||||
|
x-revision: 1
|
||||||
|
license: GPL-2.0-or-later
|
||||||
|
license-file: LICENSE.GPLv2
|
||||||
|
author: Herbert Valerio Riedel
|
||||||
|
maintainer: hvr@gnu.org, Andreas Abel
|
||||||
|
copyright: 2018-2019 Herbert Valerio Riedel
|
||||||
|
category: Text, Codec, Web, JSON, YAML
|
||||||
|
synopsis: JSON to YAML Adapter
|
||||||
|
description:
|
||||||
|
The [YAML 1.2](https://yaml.org/spec/1.2/spec.html) format provides
|
||||||
|
a much richer data-model and feature-set
|
||||||
|
than the [JavaScript Object Notation (JSON)](https://tools.ietf.org/html/rfc7159) format.
|
||||||
|
However, sometimes it's desirable to ignore the extra capabilities
|
||||||
|
and treat YAML as if it was merely a more convenient markup format
|
||||||
|
for humans to write JSON data. To this end this module provides a
|
||||||
|
compatibility layer atop [HsYAML](https://hackage.haskell.org/package/HsYAML)
|
||||||
|
which allows decoding YAML documents in the more limited JSON data-model while also providing
|
||||||
|
convenience by reusing [aeson](https://hackage.haskell.org/package/aeson)'s
|
||||||
|
'FromJSON' instances for decoding the YAML data into native Haskell data types.
|
||||||
|
|
||||||
|
tested-with:
|
||||||
|
GHC == 9.0.1
|
||||||
|
GHC == 8.10.7
|
||||||
|
GHC == 8.8.4
|
||||||
|
GHC == 8.6.5
|
||||||
|
GHC == 8.4.4
|
||||||
|
GHC == 8.2.2
|
||||||
|
GHC == 8.0.2
|
||||||
|
GHC == 7.10.3
|
||||||
|
GHC == 7.8.4
|
||||||
|
GHC == 7.6.3
|
||||||
|
GHC == 7.4.2
|
||||||
|
|
||||||
|
extra-source-files:
|
||||||
|
CHANGELOG.md
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/hvr/HsYAML-aeson.git
|
||||||
|
|
||||||
|
flag exe
|
||||||
|
description: Enable @exe:yaml-test@ component
|
||||||
|
manual: True
|
||||||
|
default: False
|
||||||
|
|
||||||
|
library
|
||||||
|
exposed-modules: Data.YAML.Aeson
|
||||||
|
build-depends:
|
||||||
|
, HsYAML ^>= 0.2.0
|
||||||
|
, aeson ^>= 1.4.0.0 || ^>= 1.5.0.0 || ^>= 2.0.0.0
|
||||||
|
, base >= 4.5 && < 4.17
|
||||||
|
, bytestring ^>= 0.9.2.1 || ^>= 0.10.0.2 || ^>= 0.11.0.0
|
||||||
|
, containers >=0.4.2 && <0.7
|
||||||
|
, mtl ^>= 2.2.1
|
||||||
|
, scientific ^>= 0.3.6.2
|
||||||
|
, text ^>= 1.2.3 || ^>= 2.0
|
||||||
|
, unordered-containers ^>= 0.2
|
||||||
|
, vector ^>= 0.12.0.2
|
||||||
|
|
||||||
|
hs-source-dirs: src
|
||||||
|
default-language: Haskell2010
|
||||||
|
other-extensions: RecordWildCards Trustworthy
|
||||||
|
ghc-options: -Wall
|
||||||
|
|
||||||
|
executable yaml-test
|
||||||
|
hs-source-dirs: src-test
|
||||||
|
main-is: Main.hs
|
||||||
|
default-language: Haskell2010
|
||||||
|
|
||||||
|
if flag(exe)
|
||||||
|
build-depends: HsYAML
|
||||||
|
, HsYAML-aeson
|
||||||
|
, base
|
||||||
|
, aeson
|
||||||
|
, bytestring
|
||||||
|
, directory >= 1.2 && < 1.4
|
||||||
|
else
|
||||||
|
buildable: False
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 4 12:15:21 UTC 2022 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update HsYAML-aeson to version 0.2.0.1 revision 1.
|
||||||
|
Upstream has revised the Cabal build instructions on Hackage.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Nov 8 16:32:50 UTC 2021 - psimons@suse.com
|
Mon Nov 8 16:32:50 UTC 2021 - psimons@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package ghc-HsYAML-aeson
|
# spec file for package ghc-HsYAML-aeson
|
||||||
#
|
#
|
||||||
# Copyright (c) 2021 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -24,6 +24,7 @@ Summary: JSON to YAML Adapter
|
|||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
URL: https://hackage.haskell.org/package/%{pkg_name}
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-HsYAML-devel
|
BuildRequires: ghc-HsYAML-devel
|
||||||
BuildRequires: ghc-aeson-devel
|
BuildRequires: ghc-aeson-devel
|
||||||
@ -61,6 +62,7 @@ This package provides the Haskell %{pkg_name} library development files.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pkg_name}-%{version}
|
%autosetup -n %{pkg_name}-%{version}
|
||||||
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user