From 56940589903e824c3bd67d04d8e17f951a2b9796 Mon Sep 17 00:00:00 2001 From: hashirama Date: Wed, 30 Oct 2024 01:15:57 +0000 Subject: [PATCH] Add home-configuration/kisshot/haskell-packages.scm --- .../kisshot/haskell-packages.scm | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 home-configuration/kisshot/haskell-packages.scm diff --git a/home-configuration/kisshot/haskell-packages.scm b/home-configuration/kisshot/haskell-packages.scm new file mode 100644 index 0000000..88d3e7b --- /dev/null +++ b/home-configuration/kisshot/haskell-packages.scm @@ -0,0 +1,26 @@ +(define-module (kisshot haskell-packages) + #:export (haskell-packages-list)) + +;; global variable to be acessed by external means +(define haskell-packages-list '()) + +;; almost any haskell package has ghc- in front of it +(define-syntax haskell-packages + (syntax-rules () + ((_ names ...) + (begin + (set! haskell-packages-list + (list (string-append "ghc-" (symbol->string 'names)) ...)))))) + + +;; Call the macro here to define haskell-packages-list +(haskell-packages gi-gdk + gi-gtk + gi-gobject + ;;gi-gtksource + ;;gi-gtk-hs needs fixing in the channel + haskell-gi + haskell-gi-base + haskell-gi-overloading + async + xmonad-contrib)