<commit_before>TOP = ..
include $(TOP)/mk/boilerplate.mk

INSTALLING=1

SRC_HC_OPTS += -package data -package text -package util -fglasgow-exts -cpp
HS_PROG = haddock.bin

HsParser_HC_OPTS += -Onot
HaddockVersion_HC_OPTS = -DHADDOCK_VERSION=$(ProjectVersion)

ifeq "$(INSTALLING)" "1"
ifeq "$(BIN_DIST)"   "1"
HADDOCKLIB=$$\"\"libdir/haddock
HADDOCKBIN=$$\"\"libexecdir/$(HS_PROG)
else
HADDOCKLIB=$(libdir)
HADDOCKBIN=$(libexecdir)/$(HS_PROG)
endif # BIN_DIST
else<commit_msg>[haddock @ 2002-05-05 19:40:51 by panne] As a temporary hack/workaround for a bug in GHC's simplifier, don't pass Happy the -c option for generating the parsers in this subdir. Furthermore, disable -O for HaddocParse, too.<commit_after>TOP = ..
include $(TOP)/mk/boilerplate.mk

INSTALLING=1

# NOTE: This is only a temporary workaround for a bug in GHC's simplifier!
GHC_HAPPY_OPTS = -ag

SRC_HC_OPTS += -package data -package text -package util -fglasgow-exts -cpp
HS_PROG = haddock.bin

HsParser_HC_OPTS      += -Onot
HaddockParse_HC_OPTS  += -Onot
HaddockVersion_HC_OPTS = -DHADDOCK_VERSION=$(ProjectVersion)

ifeq "$(INSTALLING)" "1"
ifeq "$(BIN_DIST)"   "1"
HADDOCKLIB=$$\"\"libdir/haddock
HADDOCKBIN=$$\"\"libexecdir/$(HS_PROG)
else
HADDOCKLIB=$(libdir)
HADDOCKBIN=$(libexecdir)/$(HS_PROG)
endif # BIN_DIST
else
{'fraction_non_alphanumeric': 0.14064914992272023, 'fraction_numerical': 0.015455950540958269, 'mean_word_length': 5.379310344827586, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3457609', 'n_tokens_mistral': 547, 'n_tokens_neox': 500, 'n_words': 115}