<commit_before>require 'formula'

class Hugs98 < Formula
  homepage 'http://www.haskell.org/hugs/'
  url 'http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz'
  version 'plus-Sep2006'
  sha1 '1464a80c715bc5f786ea5a4e4257b2ff0dc7e1e9'

  depends_on 'readline'

  fails_with :clang do
    build 421
    cause %[runhugs: Error occurred\nERROR "libraries/bootlib/Data/Bits.hs":192 - Syntax error in declaration (unexpected `}', possibly due to bad layout)]
  end

  def patches
    {:p0 => [
      "https://trac.macports.org/export/80246/trunk/dports/lang/hugs98/files/patch-packages-base-include-HsBase.h.diff",
      "https://trac.macports.org/export/80246/trunk/dports/lang/hugs98/files/patch-libraries-tools-make-bootlib.diff"
    ]}
  end

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make"
    system "make install"
  end
end<commit_msg>hugs98: also fails with clang 425<commit_after>require 'formula'

class Hugs98 < Formula
  homepage 'http://www.haskell.org/hugs/'
  url 'http://cvs.haskell.org/Hugs/downloads/2006-09/hugs98-plus-Sep2006.tar.gz'
  version 'plus-Sep2006'
  sha1 '1464a80c715bc5f786ea5a4e4257b2ff0dc7e1e9'

  depends_on 'readline'

  fails_with :clang do
    build 425
    cause %[ERROR "libraries/bootlib/Data/Dynamic.hs" - Module "Main" already loaded]
  end

  def patches
    {:p0 => [
      "https://trac.macports.org/export/80246/trunk/dports/lang/hugs98/files/patch-packages-base-include-HsBase.h.diff",
      "https://trac.macports.org/export/80246/trunk/dports/lang/hugs98/files/patch-libraries-tools-make-bootlib.diff"
    ]}
  end

  def install
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make"
    system "make install"
  end
end
{'fraction_non_alphanumeric': 0.14240170031880978, 'fraction_numerical': 0.06907545164718384, 'mean_word_length': 3.203125, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5957331', 'n_tokens_mistral': 776, 'n_tokens_neox': 690, 'n_words': 108}