From c2a928eb51e872661281dbf3b0cd54f07797bc40 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 26 Jan 2016 09:45:47 +0000 Subject: [PATCH] Add Haskell::Cabal#cabal_clean_lib back to compat. We shouldn't have removed this DSL method without a compat fallback. Closes Homebrew/homebrew#48479. Signed-off-by: Mike McQuaid --- Library/Homebrew/compat.rb | 1 + Library/Homebrew/compat/language/haskell.rb | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 Library/Homebrew/compat/language/haskell.rb diff --git a/Library/Homebrew/compat.rb b/Library/Homebrew/compat.rb index b20e8049c2..19c92a5236 100644 --- a/Library/Homebrew/compat.rb +++ b/Library/Homebrew/compat.rb @@ -10,3 +10,4 @@ require "compat/download_strategy" require "compat/keg" require "compat/pathname" require "compat/dependency_collector" +require "compat/language/haskell" diff --git a/Library/Homebrew/compat/language/haskell.rb b/Library/Homebrew/compat/language/haskell.rb new file mode 100644 index 0000000000..8d1b3772e9 --- /dev/null +++ b/Library/Homebrew/compat/language/haskell.rb @@ -0,0 +1,10 @@ +module Language + module Haskell + module Cabal + def cabal_clean_lib + # avoid installing any Haskell libraries, as a matter of policy + rm_rf lib + end + end + end +end