Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: klfc-1.5.7
@ 2022-05-01 16:31 nadevko
  2022-05-01 16:32 ` [PR PATCH] [Updated] " nadevko
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: nadevko @ 2022-05-01 16:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

There is a new pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

A patch file from https://github.com/void-linux/void-packages/pull/36939.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36939.patch --]
[-- Type: text/x-diff, Size: 4278 bytes --]

From e21eaeb38ce56d6adeed51c095f3f6f032ac13c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 ...0001-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0002-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 24 ++++++++++
 3 files changed, 93 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..8c154f41b81a
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 1/5] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..75c6b81f85cb
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 2/5] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..e70e49628830
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,24 @@
+# Template file for 'klfc'
+pkgname='klfc'
+short_desc='Keyboard layout files creator'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license='GPL-3.0-or-later'
+homepage='https://github.com/39aldo39/klfc'
+revision='1'
+
+version='1.5.7'
+checksum='5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba'
+
+build_style='haskell-stack'
+stackage='nightly-2021-10-07'
+distfiles="https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz"
+nopie_files='/usr/bin/klfc'
+python_version='3'
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
@ 2022-05-01 16:32 ` nadevko
  2022-05-01 16:34 ` nadevko
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-01 16:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

There is an updated pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

A patch file from https://github.com/void-linux/void-packages/pull/36939.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36939.patch --]
[-- Type: text/x-diff, Size: 5521 bytes --]

From e21eaeb38ce56d6adeed51c095f3f6f032ac13c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH 1/2] New package: klfc-1.5.7

---
 ...0001-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0002-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 24 ++++++++++
 3 files changed, 93 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..8c154f41b81a
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 1/5] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..75c6b81f85cb
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 2/5] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..e70e49628830
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,24 @@
+# Template file for 'klfc'
+pkgname='klfc'
+short_desc='Keyboard layout files creator'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license='GPL-3.0-or-later'
+homepage='https://github.com/39aldo39/klfc'
+revision='1'
+
+version='1.5.7'
+checksum='5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba'
+
+build_style='haskell-stack'
+stackage='nightly-2021-10-07'
+distfiles="https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz"
+nopie_files='/usr/bin/klfc'
+python_version='3'
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

From bc3dbc62391b069f6126dce0662d0e07f21dbf41 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 19:32:16 +0300
Subject: [PATCH 2/2] New package: ascii-image-converter-1.11.0

---
 srcpkgs/ascii-image-converter/template | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 srcpkgs/ascii-image-converter/template

diff --git a/srcpkgs/ascii-image-converter/template b/srcpkgs/ascii-image-converter/template
new file mode 100644
index 000000000000..e017b5d7ebb3
--- /dev/null
+++ b/srcpkgs/ascii-image-converter/template
@@ -0,0 +1,19 @@
+# Template file for 'ascii-image-converter'
+pkgname='ascii-image-converter'
+short_desc='Tool to convert images into ascii art and braille art'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license='Apache-2.0'
+homepage='https://github.com/TheZoraiz/ascii-image-converter'
+revision='1'
+
+version='1.11.0'
+checksum='07cdc3eef3c9549c1a370ce8fcfa43510e3b99fecc4bd8aa11827f2cf4a2365e'
+
+build_style='go'
+distfiles="https://github.com/TheZoraiz/ascii-image-converter/archive/refs/tags/v$version.tar.gz"
+go_import_path='github.com/TheZoraiz/ascii-image-converter'
+
+pre_install() {
+	vlicense LICENSE.txt
+	vdoc README.md
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
  2022-05-01 16:32 ` [PR PATCH] [Updated] " nadevko
@ 2022-05-01 16:34 ` nadevko
  2022-05-01 16:44 ` [PR REVIEW] " classabbyamp
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-01 16:34 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

There is an updated pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

A patch file from https://github.com/void-linux/void-packages/pull/36939.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36939.patch --]
[-- Type: text/x-diff, Size: 4278 bytes --]

From e21eaeb38ce56d6adeed51c095f3f6f032ac13c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 ...0001-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0002-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 24 ++++++++++
 3 files changed, 93 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..8c154f41b81a
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 1/5] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..75c6b81f85cb
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 2/5] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..e70e49628830
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,24 @@
+# Template file for 'klfc'
+pkgname='klfc'
+short_desc='Keyboard layout files creator'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license='GPL-3.0-or-later'
+homepage='https://github.com/39aldo39/klfc'
+revision='1'
+
+version='1.5.7'
+checksum='5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba'
+
+build_style='haskell-stack'
+stackage='nightly-2021-10-07'
+distfiles="https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz"
+nopie_files='/usr/bin/klfc'
+python_version='3'
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
  2022-05-01 16:32 ` [PR PATCH] [Updated] " nadevko
  2022-05-01 16:34 ` nadevko
@ 2022-05-01 16:44 ` classabbyamp
  2022-05-01 16:52 ` [PR PATCH] [Updated] " nadevko
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: classabbyamp @ 2022-05-01 16:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

New review comment by classabbyamp on void-packages repository

https://github.com/void-linux/void-packages/pull/36939#discussion_r862497268

Comment:
remove the blank lines in this section and run xlint

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
                   ` (2 preceding siblings ...)
  2022-05-01 16:44 ` [PR REVIEW] " classabbyamp
@ 2022-05-01 16:52 ` nadevko
  2022-05-01 16:55 ` [PR REVIEW] " nadevko
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-01 16:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

There is an updated pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

A patch file from https://github.com/void-linux/void-packages/pull/36939.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36939.patch --]
[-- Type: text/x-diff, Size: 4276 bytes --]

From c62bbb108dbc4acf1bc9302f90eccb12dc355610 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 ...0001-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0002-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 22 ++++++++++
 3 files changed, 91 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..8c154f41b81a
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 1/5] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..75c6b81f85cb
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 2/5] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..38baf601f017
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,22 @@
+# Template file for ''klfc''
+pkgname='klfc'
+version='1.5.7'
+revision='1'
+build_style='haskell-stack'
+stackage='nightly-2021-10-07'
+short_desc='Keyboard layout files creator'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license='GPL-3.0-or-later'
+homepage='https://github.com/39aldo39/klfc'
+distfiles="https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz"
+checksum='5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba'
+nopie_files='/usr/bin/klfc'
+python_version='3'
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR REVIEW] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
                   ` (3 preceding siblings ...)
  2022-05-01 16:52 ` [PR PATCH] [Updated] " nadevko
@ 2022-05-01 16:55 ` nadevko
  2022-05-02  7:40 ` [PR PATCH] [Updated] " nadevko
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-01 16:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

New review comment by nadevko on void-packages repository

https://github.com/void-linux/void-packages/pull/36939#discussion_r862498460

Comment:
I made all the amends you asked for.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
                   ` (4 preceding siblings ...)
  2022-05-01 16:55 ` [PR REVIEW] " nadevko
@ 2022-05-02  7:40 ` nadevko
  2022-05-02 16:18 ` nadevko
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-02  7:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

There is an updated pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

A patch file from https://github.com/void-linux/void-packages/pull/36939.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36939.patch --]
[-- Type: text/x-diff, Size: 5625 bytes --]

From 4fa4ee09a75f2285bd284693d7e4ab008173b2e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 .../klfc/patches/0001-Fix-some-warnings.patch | 32 ++++++++++++++
 ...0002-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0003-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 22 ++++++++++
 4 files changed, 123 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
 create mode 100644 srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
new file mode 100644
index 000000000000..9d405dbf92c8
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
@@ -0,0 +1,32 @@
+From 725bf5bf6c7177c538bcd6bab73a8ce1bd179c42 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:03 +0100
+Subject: [PATCH 1/6] Fix some warnings
+
+---
+ src/KlcParse.hs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/KlcParse.hs b/src/KlcParse.hs
+index 7cc76ac..de90301 100644
+--- a/src/KlcParse.hs
++++ b/src/KlcParse.hs
+@@ -196,13 +196,13 @@ keyName = do
+ descriptions ∷ (Parser m, MonadFail m) ⇒ m ()
+ descriptions = do
+     ["DESCRIPTIONS"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ languageNames ∷ (Parser m, MonadFail m) ⇒ m ()
+ languageNames = do
+     ["LANGUAGENAMES"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ endKbd ∷ (Parser m, MonadFail m) ⇒ m ()
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..c4743120f49e
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 2/6] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..e7a3d29979ff
--- /dev/null
+++ b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 3/6] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..139a287ac855
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,22 @@
+# Template file for 'klfc'
+pkgname=klfc
+version=1.5.7
+revision=1
+build_style=haskell-stack
+stackage=nightly-2021-10-07
+short_desc='Keyboard layout files creator'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license=GPL-3.0-or-later
+homepage=https://github.com/39aldo39/klfc
+distfiles=https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz
+checksum=5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba
+nopie_files=/usr/bin/klfc
+python_version=3
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
                   ` (5 preceding siblings ...)
  2022-05-02  7:40 ` [PR PATCH] [Updated] " nadevko
@ 2022-05-02 16:18 ` nadevko
  2022-05-02 17:39 ` nadevko
  2022-05-08 12:07 ` [PR PATCH] [Closed]: " nadevko
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-02 16:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

There is an updated pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

A patch file from https://github.com/void-linux/void-packages/pull/36939.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36939.patch --]
[-- Type: text/x-diff, Size: 5674 bytes --]

From ff4fcde2eccca0b488aac7a4d912883f711bbdd9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 .../klfc/patches/0001-Fix-some-warnings.patch | 32 ++++++++++++++
 ...0002-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0003-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 23 ++++++++++
 4 files changed, 124 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
 create mode 100644 srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
new file mode 100644
index 000000000000..9d405dbf92c8
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
@@ -0,0 +1,32 @@
+From 725bf5bf6c7177c538bcd6bab73a8ce1bd179c42 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:03 +0100
+Subject: [PATCH 1/6] Fix some warnings
+
+---
+ src/KlcParse.hs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/KlcParse.hs b/src/KlcParse.hs
+index 7cc76ac..de90301 100644
+--- a/src/KlcParse.hs
++++ b/src/KlcParse.hs
+@@ -196,13 +196,13 @@ keyName = do
+ descriptions ∷ (Parser m, MonadFail m) ⇒ m ()
+ descriptions = do
+     ["DESCRIPTIONS"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ languageNames ∷ (Parser m, MonadFail m) ⇒ m ()
+ languageNames = do
+     ["LANGUAGENAMES"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ endKbd ∷ (Parser m, MonadFail m) ⇒ m ()
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..c4743120f49e
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 2/6] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..e7a3d29979ff
--- /dev/null
+++ b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 3/6] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..87a37e49b244
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,23 @@
+# Template file for 'klfc'
+pkgname=klfc
+version=1.5.7
+revision=1
+build_style=haskell-stack
+stackage=nightly-2021-10-07
+short_desc='Keyboard layout files creator'
+maintainer='Nadeŭka <nadevko@riseup.net>'
+license=GPL-3.0-or-later
+homepage=https://github.com/39aldo39/klfc
+distfiles=https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz
+checksum=5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba
+python_version=3
+nopie_files=/usr/bin/klfc
+nocross="Cannot yet cross compile with Haskell"
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
                   ` (6 preceding siblings ...)
  2022-05-02 16:18 ` nadevko
@ 2022-05-02 17:39 ` nadevko
  2022-05-08 12:07 ` [PR PATCH] [Closed]: " nadevko
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-02 17:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

There is an updated pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages master
https://github.com/void-linux/void-packages/pull/36939

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

A patch file from https://github.com/void-linux/void-packages/pull/36939.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-36939.patch --]
[-- Type: text/x-diff, Size: 5674 bytes --]

From 7fb157733b06f532068fd9f0d0edf38d2265013e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 .../klfc/patches/0001-Fix-some-warnings.patch | 32 ++++++++++++++
 ...0002-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0003-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 23 ++++++++++
 4 files changed, 124 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
 create mode 100644 srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
new file mode 100644
index 000000000000..9d405dbf92c8
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
@@ -0,0 +1,32 @@
+From 725bf5bf6c7177c538bcd6bab73a8ce1bd179c42 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:03 +0100
+Subject: [PATCH 1/6] Fix some warnings
+
+---
+ src/KlcParse.hs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/KlcParse.hs b/src/KlcParse.hs
+index 7cc76ac..de90301 100644
+--- a/src/KlcParse.hs
++++ b/src/KlcParse.hs
+@@ -196,13 +196,13 @@ keyName = do
+ descriptions ∷ (Parser m, MonadFail m) ⇒ m ()
+ descriptions = do
+     ["DESCRIPTIONS"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ languageNames ∷ (Parser m, MonadFail m) ⇒ m ()
+ languageNames = do
+     ["LANGUAGENAMES"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ endKbd ∷ (Parser m, MonadFail m) ⇒ m ()
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..c4743120f49e
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 2/6] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..e7a3d29979ff
--- /dev/null
+++ b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 3/6] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..ab3de6761a41
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,23 @@
+# Template file for 'klfc'
+pkgname=klfc
+version=1.5.7
+revision=1
+build_style=haskell-stack
+stackage=nightly-2021-10-07
+short_desc="Keyboard layout files creator"
+maintainer="Nadeŭka <nadevko@riseup.net>"
+license=GPL-3.0-or-later
+homepage=https://github.com/39aldo39/klfc
+distfiles=https://github.com/39aldo39/klfc/archive/refs/tags/v$version.tar.gz
+checksum=5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba
+python_version=3
+nopie_files=/usr/bin/klfc
+nocross="Cannot yet cross compile with Haskell"
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Closed]: New package: klfc-1.5.7
  2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
                   ` (7 preceding siblings ...)
  2022-05-02 17:39 ` nadevko
@ 2022-05-08 12:07 ` nadevko
  8 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-08 12:07 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 499 bytes --]

There's a closed pull request on the void-packages repository

New package: klfc-1.5.7
https://github.com/void-linux/void-packages/pull/36939

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64-gnulibc

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PR PATCH] [Updated] New package: klfc-1.5.7
  2022-05-08 12:28 [PR PATCH] " nadevko
@ 2022-05-19 12:55 ` nadevko
  0 siblings, 0 replies; 11+ messages in thread
From: nadevko @ 2022-05-19 12:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 797 bytes --]

There is an updated pull request by nadevko against master on the void-packages repository

https://github.com/nadevko/void-packages klfc
https://github.com/void-linux/void-packages/pull/37039

New package: klfc-1.5.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x86_64

I'm sorry that this is third time I'm creating a pull request with this package, that simply my first with git. But now it's all fine from the start.

A patch file from https://github.com/void-linux/void-packages/pull/37039.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-klfc-37039.patch --]
[-- Type: text/x-diff, Size: 5651 bytes --]

From 4a7732fb69105e1ad18c324b70f4956762139ba0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nade=C5=ADka?= <nadevko@riseup.net>
Date: Sun, 1 May 2022 18:34:24 +0300
Subject: [PATCH] New package: klfc-1.5.7

---
 .../klfc/patches/0001-Fix-some-warnings.patch | 32 ++++++++++++++
 ...0002-Fix-compilation-with-GHC-9.0-40.patch | 44 +++++++++++++++++++
 .../patches/0003-More-fixes-for-GHC-9.0.patch | 25 +++++++++++
 srcpkgs/klfc/template                         | 23 ++++++++++
 4 files changed, 124 insertions(+)
 create mode 100644 srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
 create mode 100644 srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
 create mode 100644 srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
 create mode 100644 srcpkgs/klfc/template

diff --git a/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
new file mode 100644
index 000000000000..9d405dbf92c8
--- /dev/null
+++ b/srcpkgs/klfc/patches/0001-Fix-some-warnings.patch
@@ -0,0 +1,32 @@
+From 725bf5bf6c7177c538bcd6bab73a8ce1bd179c42 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:03 +0100
+Subject: [PATCH 1/6] Fix some warnings
+
+---
+ src/KlcParse.hs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/KlcParse.hs b/src/KlcParse.hs
+index 7cc76ac..de90301 100644
+--- a/src/KlcParse.hs
++++ b/src/KlcParse.hs
+@@ -196,13 +196,13 @@ keyName = do
+ descriptions ∷ (Parser m, MonadFail m) ⇒ m ()
+ descriptions = do
+     ["DESCRIPTIONS"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ languageNames ∷ (Parser m, MonadFail m) ⇒ m ()
+ languageNames = do
+     ["LANGUAGENAMES"] ← readLine
+-    many (some hexDigitChar *> spacing *> endLine)
++    void $ many (some hexDigitChar *> spacing *> endLine)
+     pure ()
+ 
+ endKbd ∷ (Parser m, MonadFail m) ⇒ m ()
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
new file mode 100644
index 000000000000..c4743120f49e
--- /dev/null
+++ b/srcpkgs/klfc/patches/0002-Fix-compilation-with-GHC-9.0-40.patch
@@ -0,0 +1,44 @@
+From fee9bdeb76cc1f9e9e36b91764aff665c9164164 Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Thu, 16 Dec 2021 22:38:09 +0100
+Subject: [PATCH 2/6] Fix compilation with GHC 9.0 (#40)
+
+See https://gitlab.haskell.org/ghc/ghc/-/wikis/migration/9.0#simplified-subsumption
+for the required eta-expansion in lensWithDefault'
+
+Hiding singleton from BasePrelude gives a warning for previous GHC versions,
+but this is a minor issue
+---
+ src/Util.hs     | 2 +-
+ src/WithPlus.hs | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/Util.hs b/src/Util.hs
+index 0dc0884..dc096db 100644
+--- a/src/Util.hs
++++ b/src/Util.hs
+@@ -80,7 +80,7 @@ lensWithDefault guess setter getter f x =
+     (\y → setter (Just y) x) <$> f (fromMaybe (guess x) (getter x))
+ 
+ lensWithDefault' ∷ α → (Maybe α → σ → σ) → (σ → Maybe α) → Lens' σ α
+-lensWithDefault' = lensWithDefault ∘ const
++lensWithDefault' x = lensWithDefault (const x)
+ 
+ (!?) ∷ [α] → Int → Maybe α
+ (!?) xs i =
+diff --git a/src/WithPlus.hs b/src/WithPlus.hs
+index 1a46faf..558591d 100644
+--- a/src/WithPlus.hs
++++ b/src/WithPlus.hs
+@@ -9,7 +9,7 @@ module WithPlus
+     , parseString
+     ) where
+ 
+-import BasePrelude hiding (toList, fromList)
++import BasePrelude hiding (toList, fromList, singleton)
+ import Prelude.Unicode
+ import Data.Monoid.Unicode ((∅))
+ import Util (HumanReadable, split)
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
new file mode 100644
index 000000000000..e7a3d29979ff
--- /dev/null
+++ b/srcpkgs/klfc/patches/0003-More-fixes-for-GHC-9.0.patch
@@ -0,0 +1,25 @@
+From ad4a431513470f8386dd7a8c28aeef35187193fe Mon Sep 17 00:00:00 2001
+From: Aldo Gunsing <dev@aldogunsing.nl>
+Date: Fri, 17 Dec 2021 00:11:58 +0100
+Subject: [PATCH 3/6] More fixes for GHC 9.0
+
+---
+ src/Layout/Modifier.hs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Layout/Modifier.hs b/src/Layout/Modifier.hs
+index 1fe456e..0d5e44c 100644
+--- a/src/Layout/Modifier.hs
++++ b/src/Layout/Modifier.hs
+@@ -22,7 +22,7 @@ module Layout.Modifier
+     , activatedBy
+     ) where
+ 
+-import BasePrelude hiding (Alt, Control, empty, fromList)
++import BasePrelude hiding (Alt, Control, empty, fromList, singleton)
+ import Prelude.Unicode hiding ((∈))
+ import Data.Foldable.Unicode ((∈))
+ import Data.Monoid.Unicode ((∅), (⊕))
+-- 
+2.36.0
+
diff --git a/srcpkgs/klfc/template b/srcpkgs/klfc/template
new file mode 100644
index 000000000000..72ff729f13c5
--- /dev/null
+++ b/srcpkgs/klfc/template
@@ -0,0 +1,23 @@
+# Template file for 'klfc'
+pkgname=klfc
+version=1.5.7
+revision=1
+build_style=haskell-stack
+stackage=nightly-2021-10-07
+short_desc="Keyboard layout files creator"
+maintainer="Nadeŭka <nadevko@riseup.net>"
+license=GPL-3.0-or-later
+homepage=https://github.com/39aldo39/klfc
+distfiles=$homepage/archive/refs/tags/v$version.tar.gz
+checksum=5a052c6f59917e99593e507e460e37b6633a388a43ef9ed0401b297c723c1eba
+python_version=3
+nopie_files=/usr/bin/klfc
+nocross="Cannot yet cross compile with Haskell"
+
+pre_install() {
+	vdoc README.md
+	vlicense LICENSE.txt
+	for i in doc/* examples; do
+		vcopy "$i" usr/share/doc/$pkgname
+	done
+}

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-05-19 12:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-01 16:31 [PR PATCH] New package: klfc-1.5.7 nadevko
2022-05-01 16:32 ` [PR PATCH] [Updated] " nadevko
2022-05-01 16:34 ` nadevko
2022-05-01 16:44 ` [PR REVIEW] " classabbyamp
2022-05-01 16:52 ` [PR PATCH] [Updated] " nadevko
2022-05-01 16:55 ` [PR REVIEW] " nadevko
2022-05-02  7:40 ` [PR PATCH] [Updated] " nadevko
2022-05-02 16:18 ` nadevko
2022-05-02 17:39 ` nadevko
2022-05-08 12:07 ` [PR PATCH] [Closed]: " nadevko
2022-05-08 12:28 [PR PATCH] " nadevko
2022-05-19 12:55 ` [PR PATCH] [Updated] " nadevko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).