From 536c8cd39477506309d5cab2bd6d32b641cba2da9381d07bb89499b8282b3915 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= <mimi.vx@gmail.com>
Date: Sun, 21 Nov 2021 11:20:46 +0000
Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.10.x
 package:ghc-lucid revision:12, using keep-link

OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-lucid?expand=0&rev=14
---
 ghc-lucid.changes   |  10 +++++
 ghc-lucid.spec      |   4 +-
 lucid-2.10.0.tar.gz |   3 --
 lucid-2.11.0.tar.gz |   3 ++
 lucid.cabal         | 100 ++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 116 insertions(+), 4 deletions(-)
 delete mode 100644 lucid-2.10.0.tar.gz
 create mode 100644 lucid-2.11.0.tar.gz
 create mode 100644 lucid.cabal

diff --git a/ghc-lucid.changes b/ghc-lucid.changes
index adbffdb..a652c08 100644
--- a/ghc-lucid.changes
+++ b/ghc-lucid.changes
@@ -1,3 +1,13 @@
+-------------------------------------------------------------------
+Wed Nov 10 10:02:26 UTC 2021 - psimons@suse.com
+
+- Update lucid to version 2.11.0 revision 1.
+  ## 2.11.0
+
+  * Change internal attributes to `Seq Attribute`. This preserves
+    ordering. Attributes are merged in a left-biased way, preserving the
+    key order as first encountered.
+
 -------------------------------------------------------------------
 Tue Oct 19 07:21:39 UTC 2021 - psimons@suse.com
 
diff --git a/ghc-lucid.spec b/ghc-lucid.spec
index 6db97e4..c0bf7a0 100644
--- a/ghc-lucid.spec
+++ b/ghc-lucid.spec
@@ -19,12 +19,13 @@
 %global pkg_name lucid
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        2.10.0
+Version:        2.11.0
 Release:        0
 Summary:        Clear to write, read and edit DSL for HTML
 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/1.cabal#/%{pkg_name}.cabal
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-blaze-builder-devel
 BuildRequires:  ghc-bytestring-devel
@@ -69,6 +70,7 @@ 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
diff --git a/lucid-2.10.0.tar.gz b/lucid-2.10.0.tar.gz
deleted file mode 100644
index 4c1f365..0000000
--- a/lucid-2.10.0.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:cf8740ca356a971bf5ffacd49d36bba2d6ce807f4f0cf551f5a6cf60c358f9f7
-size 20929
diff --git a/lucid-2.11.0.tar.gz b/lucid-2.11.0.tar.gz
new file mode 100644
index 0000000..862665b
--- /dev/null
+++ b/lucid-2.11.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:549715bd4ca7b3034e689df6d73e459a8b4efbff0c74b8f961fc0edbf7082ed4
+size 21302
diff --git a/lucid.cabal b/lucid.cabal
new file mode 100644
index 0000000..16a1dd6
--- /dev/null
+++ b/lucid.cabal
@@ -0,0 +1,100 @@
+name:                lucid
+version:             2.11.0
+x-revision: 1
+synopsis:            Clear to write, read and edit DSL for HTML
+description:
+  Clear to write, read and edit DSL for HTML.
+  .
+  * Names are consistent, and do not conflict with base or are keywords (all have suffix @_@)
+  .
+  * Same combinator can be used for attributes and elements (e.g. 'style_')
+  .
+  * For more, read <https://chrisdone.com/posts/lucid the blog post>
+  .
+  See the "Lucid" module for more documentation.
+homepage:            https://github.com/chrisdone/lucid
+license:             BSD3
+license-file:        LICENSE
+author:              Chris Done
+maintainer:          chrisdone@gmail.com, oleg.grenrus@iki.fi
+copyright:           2014-2017 Chris Done
+category:            Web
+build-type:          Simple
+cabal-version:       >=1.10
+extra-source-files:  README.md, CHANGELOG.md
+tested-with:         GHC==7.10.3,GHC==8.0.2,GHC==8.2.2,GHC==8.4.4,GHC==8.6.5,GHC==8.8.4,GHC==8.10.4,GHC==9.0.1
+
+library
+  default-language:  Haskell2010
+  hs-source-dirs:    src/
+  ghc-options:       -Wall -O2
+  exposed-modules:   Lucid
+                     Lucid.Base
+                     Lucid.Html5
+                     Lucid.Bootstrap
+
+  -- GHC boot libraries
+  build-depends:     base                   >=4.8      && <4.17
+                   , bytestring             >=0.10.6.0
+                   , containers             >=0.5.6.2
+                   , transformers           >=0.4.2.0
+
+  -- GHC boot libraries since 8.4.
+  build-depends:     mtl                    >=2.2
+                   , text                   >=1.2.0.2
+
+  -- compat packages
+  if !impl(ghc >= 8.0)
+    build-depends:   semigroups            >=0.16.1
+
+  -- other dependencies
+  build-depends:     blaze-builder         >=0.4.0.0
+                   , hashable              >=1.2.3.2
+                   , mmorph                >=1.0.3
+                   , unordered-containers  >=0.2.5.1
+
+source-repository head
+  type:     git
+  location: https://github.com/chrisdone/lucid.git
+
+test-suite test
+    default-language: Haskell2010
+    type: exitcode-stdio-1.0
+    main-is: Main.hs
+    hs-source-dirs: test
+    other-modules: Example1
+    build-depends: base,
+                   lucid,
+                   HUnit,
+                   hspec,
+                   parsec,
+                   bifunctors,
+                   text,
+                   mtl
+
+benchmark bench
+  default-language: Haskell2010
+  type:             exitcode-stdio-1.0
+  hs-source-dirs:   benchmarks
+  main-is:          Main.hs
+  other-modules:    HtmlBenchmarks
+  build-depends:    base,
+                    deepseq,
+                    criterion,
+                    blaze-builder,
+                    text,
+                    bytestring,
+                    lucid
+  ghc-options:      -O2
+
+benchmark bench-io
+  default-language: Haskell2010
+  type:             exitcode-stdio-1.0
+  hs-source-dirs:   benchmarks
+  main-is:          IO.hs
+  build-depends:    base,
+                    criterion,
+                    transformers,
+                    text,
+                    lucid
+  ghc-options:      -O2