Permalink
Browse files

Adding support for archlinux on the ghc module

  • Loading branch information...
1 parent 6fd5dd3 commit d0c47da381e0f41003b4a57e858c146bdd4712ec @roman roman committed Sep 22, 2011
Showing with 11 additions and 3 deletions.
  1. +11 −3 ghc/manifests/install.pp
View
@@ -1,12 +1,12 @@
-class ghc::install($compile) {
- include apt
+class ghc::install($compile=false) {
if $compile {
ghc::compile { "compile-and-install-haskell-platform": }
}
else {
case $operatingsystem {
+ include apt
"Ubuntu": {
@@ -28,9 +28,17 @@
}
+ "Archlinux": {
+ include pacman
+
+ package { "haskell-platform":
+ ensure => installed
+ }
+
+ }
+
default: {
err("Don't know how to build ghc in your machine")
- #ghc::compile { "compile-and-install-haskell-platform": }
}
}

0 comments on commit d0c47da

Please sign in to comment.