diff --git a/data-reify-0.6.1.cabal b/data-reify-0.6.1.cabal new file mode 100644 index 0000000..d6f523b --- /dev/null +++ b/data-reify-0.6.1.cabal @@ -0,0 +1,113 @@ +Name: data-reify +Version: 0.6.1 +x-revision: 1 +Synopsis: Reify a recursive data structure into an explicit graph. +Description: 'data-reify' provided the ability to turn recursive structures into explicit graphs. + Many (implicitly or explicitly) recursive data structure can be given this ability, via + a type class instance. This gives an alternative to using 'Ref' for observable sharing. + . + Observable sharing in general is unsafe, so we use the IO monad to bound this effect, + but can be used safely even with 'unsafePerformIO' if some simple conditions are met. + Typically this package will be used to tie the knot with DSL's that depend of + observable sharing, like Lava. + . + Providing an instance for 'MuRef' is the mechanism for allowing a structure to be + reified into a graph, and several examples of this are provided. + . + History: + Version 0.1 used unsafe pointer compares. + Version 0.2 of 'data-reify' used 'StableName's, and was much faster. + Version 0.3 provided two versions of 'MuRef', the mono-typed version, + for trees of a single type, + and the dynamic-typed version, for trees of different types. + Version 0.4 used 'Int' as a synonym for 'Unique' rather than 'Data.Unique' + for node ids, by popular demand. + Version 0.5 merged the mono-typed and dynamic version again, by using + 'DynStableName', an unphantomized version of StableName. + . + © 2009 Andy Gill; BSD3 license. + +Category: Language, Data, Parsing, Reflection +License: BSD3 +License-file: LICENSE +Author: Andy Gill +Maintainer: Andy Gill +Copyright: (c) 2009 Andy Gill +Homepage: http://ku-fpg.github.io/software/data-reify/ +Stability: alpha +build-type: Simple +Cabal-Version: >= 1.8 +extra-source-files: CHANGELOG.md, README.md + +source-repository head + type: git + location: https://github.com/ku-fpg/data-reify + +Flag tests + Description: Enable full development tree + Default: False + + +Library + Build-Depends: base >= 4 && < 5, containers + Exposed-modules: + Data.Reify, + Data.Reify.Graph + Ghc-Options: -Wall + +Executable data-reify-test1 + Build-Depends: base, data-reify + Main-Is: Test1.hs + Hs-Source-Dirs: test + ghc-options: -Wall + if !flag(tests) + buildable: False + + +Executable data-reify-test2 + Build-Depends: base, data-reify + Main-Is: Test2.hs + Hs-Source-Dirs: test + ghc-options: -Wall + if !flag(tests) + buildable: False + +Executable data-reify-test3 + Build-Depends: base, data-reify + Main-Is: Test3.hs + Hs-Source-Dirs: test + ghc-options: -Wall + if !flag(tests) + buildable: False + +Executable data-reify-test4 + Build-Depends: base, data-reify + Main-Is: Test4.hs + Hs-Source-Dirs: test + ghc-options: -Wall + if !flag(tests) + buildable: False + +Executable data-reify-test5 + Build-Depends: base, data-reify + Main-Is: Test5.hs + Hs-Source-Dirs: test + ghc-options: -Wall + if !flag(tests) + buildable: False + +Executable data-reify-test6 + Build-Depends: base, data-reify + Main-Is: Test6.hs + Hs-Source-Dirs: test + ghc-options: -Wall + if !flag(tests) + buildable: False + +Executable data-reify-test7 + Build-Depends: base, data-reify + Main-Is: Test7.hs + Hs-Source-Dirs: test + ghc-options: -Wall + if !flag(tests) + buildable: False diff --git a/ghc-data-reify.spec b/ghc-data-reify.spec index 7e36136..471d30c 100644 --- a/ghc-data-reify.spec +++ b/ghc-data-reify.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.12.1 +# generated by cabal-rpm-0.13 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name data-reify @@ -6,16 +6,19 @@ Name: ghc-%{pkg_name} Version: 0.6.1 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Reify a recursive data structure into an explicit graph License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal +# End cabal-rpm sources +# Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros -# Begin cabal-rpm deps: BuildRequires: ghc-containers-devel # End cabal-rpm deps @@ -42,15 +45,22 @@ This package provides the Haskell %{pkg_name} library development files. %prep +# Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup %build +# Begin cabal-rpm build: %ghc_lib_build +# End cabal-rpm build %install +# Begin cabal-rpm install %ghc_lib_install +# End cabal-rpm install %post devel @@ -62,7 +72,9 @@ This package provides the Haskell %{pkg_name} library development files. %files -f %{name}.files +# Begin cabal-rpm files: %license LICENSE +# End cabal-rpm files %files devel -f %{name}-devel.files @@ -70,6 +82,9 @@ This package provides the Haskell %{pkg_name} library development files. %changelog +* Sun Feb 17 2019 Jens Petersen - 0.6.1-10 +- refresh to cabal-rpm-0.13 + * Thu Jan 31 2019 Fedora Release Engineering - 0.6.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild