forked from pool/ghc-HsYAML-aeson
Accepting request 801023 from devel:languages:haskell
version update OBS-URL: https://build.opensuse.org/request/show/801023 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-HsYAML-aeson?expand=0&rev=2
This commit is contained in:
commit
e1166b12fb
48
HsYAML-aeson.cabal
Normal file
48
HsYAML-aeson.cabal
Normal file
@ -0,0 +1,48 @@
|
||||
cabal-version: 2.2
|
||||
name: HsYAML-aeson
|
||||
version: 0.2.0.0
|
||||
x-revision: 1
|
||||
license: GPL-2.0-or-later
|
||||
license-file: LICENSE.GPLv2
|
||||
author: Herbert Valerio Riedel
|
||||
maintainer: hvr@gnu.org
|
||||
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.
|
||||
|
||||
extra-source-files:
|
||||
CHANGELOG.md
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/hvr/HsYAML-aeson.git
|
||||
|
||||
library
|
||||
exposed-modules: Data.YAML.Aeson
|
||||
build-depends:
|
||||
, HsYAML ^>= 0.2.0
|
||||
, aeson ^>= 1.4.0.0
|
||||
, base >= 4.5 && < 4.15
|
||||
, bytestring ^>= 0.9.2.1 || ^>= 0.10.0.2
|
||||
, containers >=0.4.2 && <0.7
|
||||
, mtl ^>= 2.2.1
|
||||
, scientific ^>= 0.3.6.2
|
||||
, text ^>= 1.2.3
|
||||
, unordered-containers ^>= 0.2
|
||||
, vector ^>= 0.12.0.2
|
||||
|
||||
hs-source-dirs: src
|
||||
default-language: Haskell2010
|
||||
other-extensions: RecordWildCards Trustworthy
|
||||
ghc-options: -Wall
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 7 08:08:21 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update Cabal file to get more accurate dependency information.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 23 21:16:05 UTC 2019 - psimons@suse.com
|
||||
|
||||
|
@ -24,6 +24,7 @@ Summary: JSON to YAML Adapter
|
||||
License: GPL-2.0-or-later
|
||||
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/1.cabal#/%{pkg_name}.cabal
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-HsYAML-devel
|
||||
BuildRequires: ghc-aeson-devel
|
||||
@ -60,8 +61,7 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkg_name}-%{version}
|
||||
echo > Setup.hs 'import Distribution.Simple'
|
||||
echo >>Setup.hs 'main = defaultMain'
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%build
|
||||
%ghc_lib_build
|
||||
|
Loading…
Reference in New Issue
Block a user