<commit_before>{cabal, ghcPaths, alex, happy}:

cabal.mkDerivation (self : {
  pname = "haddock";
  version = "2.7.2"; # Haskell Platform 2010.1.0.0 and 2010.2.0.0
  name = self.fname;
  sha256 = "4eaaaf62785f0ba3d37ba356cfac4679faef91c0902d8cdbf42837cbe5daab82";
  extraBuildInputs = [alex happy];
  propagatedBuildInputs = [ghcPaths];
  meta = {
    description = "a tool for automatically generating documentation from annotated Haskell source code";
  };
})
<commit_msg>Adding wrapper to get users packages<commit_after>{cabal, ghcPaths, alex, happy, makeWrapper}:

cabal.mkDerivation (self : {
  pname = "haddock";
  version = "2.7.2"; # Haskell Platform 2010.1.0.0 and 2010.2.0.0
  name = self.fname;
  sha256 = "4eaaaf62785f0ba3d37ba356cfac4679faef91c0902d8cdbf42837cbe5daab82";
  extraBuildInputs = [alex happy makeWrapper];
  propagatedBuildInputs = [ghcPaths];

  postInstall = ''
   wrapProgram $out/bin/haddock --add-flags "\$(${self.ghc.GHCGetPackages} ${self.ghc.ghcVersion} \"\$(dirname \$0)\" \"--optghc=-package-conf --optghc=\")"
  '';

  meta = {
    description = "a tool for automatically generating documentation from annotated Haskell source code";
  };
})

{'fraction_non_alphanumeric': 0.13644067796610168, 'fraction_numerical': 0.08898305084745763, 'mean_word_length': 4.467592592592593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '2141776', 'n_tokens_mistral': 505, 'n_tokens_neox': 439, 'n_words': 91}