Add home-configuration/kisshot/haskell-packages.scm

main
hashirama 2024-10-30 01:15:57 +00:00
parent 4d0e40d051
commit 5694058990
1 changed files with 26 additions and 0 deletions

View File

@ -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)