-
-
Save efroese/886eb9be894164e09da06650afeec1e7 to your computer and use it in GitHub Desktop.
Homebrew formula for official ghc 7.10.2 binaries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Ghc < Formula | |
desc "Glorious Glasgow Haskell Compilation System" | |
homepage "https://haskell.org/ghc/" | |
url "https://downloads.haskell.org/~ghc/8.0.2/ghc-8.0.2-x86_64-apple-darwin.tar.xz" | |
sha256 "11625453e1d0686b3fa6739988f70ecac836cadc30b9f0c8b49ef9091d6118b1" | |
def install | |
system "./configure", "--prefix=#{prefix}" | |
ENV.deparallelize { system "make", "install" } | |
end | |
test do | |
(testpath/"hello.hs").write('main = putStrLn "Hello Homebrew"') | |
system "runghc", testpath/"hello.hs" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment