<commit_before>{ cabal, hspec, parsec, text }:

cabal.mkDerivation (self: {
  pname = "shakespeare";
  version = "1.0.4";
  sha256 = "0aqcgfx3y9sbp7wvjmx6rxwi4r13qrfxs9a40gc00np03bpk1hxb";
  buildDepends = [ parsec text ];
  testDepends = [ hspec parsec text ];
  meta = {
    homepage = "http://www.yesodweb.com/book/shakespearean-templates";
    description = "A toolkit for making compile-time interpolated templates";
    license = self.stdenv.lib.licenses.mit;
    platforms = self.ghc.meta.platforms;
    maintainers = [
      self.stdenv.lib.maintainers.andres
      self.stdenv.lib.maintainers.simons
    ];
  };
})<commit_msg>haskell-shakespeare: patch to fix build with GHC 7.0.4<commit_after>{ cabal, fetchurl, hspec, parsec, text }:

cabal.mkDerivation (self: {
  pname = "shakespeare";
  version = "1.0.4";
  sha256 = "0aqcgfx3y9sbp7wvjmx6rxwi4r13qrfxs9a40gc00np03bpk1hxb";
  buildDepends = [ parsec text ];
  testDepends = [ hspec parsec text ];
  patchFlags = "-p2";
  patches = [ (fetchurl { url = "https://github.com/yesodweb/shakespeare/pull/102.patch";
                          sha256 = "02fp87sw7k8zyn8kgmjg8974gi7pp5fyvb4f84i983qycmlmh8xq";
                        })
            ];
  meta = {
    homepage = "http://www.yesodweb.com/book/shakespearean-templates";
    description = "A toolkit for making compile-time interpolated templates";
    license = self.stdenv.lib.licenses.mit;
    platforms = self.ghc.meta.platforms;
    maintainers = [
      self.stdenv.lib.maintainers.andres
      self.stdenv.lib.maintainers.simons
    ];
  };
})
{'fraction_non_alphanumeric': 0.12579821200510855, 'fraction_numerical': 0.04725415070242656, 'mean_word_length': 3.1786666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6813677', 'n_tokens_mistral': 626, 'n_tokens_neox': 589, 'n_words': 92}