<commit_before>-----------------------------------------------------------------------------
-- $Id: Package.hs,v 1.4 2002/09/09 11:32:38 simonmar Exp $
--
-- Package configuration defn.
-----------------------------------------------------------------------------

#ifdef PKG_TOOL
module Package ( 
	PackageConfig(..), defaultPackageConfig
#ifdef WANT_PRETTY
	, listPkgs	 	-- :: [PackageConfig] -> String
	, dumpPackages		-- :: [PackageConfig] -> String
	, dumpPkgGuts		-- :: PackageConfig -> Doc
	, dumpFieldContents	-- :: [String] -> Doc
#endif
 ) where
#endif

#ifdef WANT_PRETTY
#if __GLASGOW_HASKELL__ >= 504
import Text.PrettyPrint
#else
import Pretty
#endif
#endif

data PackageConfig
   = Package {
	name            :: String,
	import_dirs     :: [String],
	source_dirs     :: [String],
	library_dirs    :: [String],
	hs_libraries    :: [String],
	extra_libraries :: [String],
	include_dirs    :: [String],
	c_includes      :: [String],
	package_deps    :: [String],
	extra_ghc_opts  :: [String],
	extra_cc_opts   :: [String],
	extra_ld_opts   :: [String],
	framework_dirs  :: [String], -- ignored everywhere but on Darwin/MacOS X
	extra_frameworks:: [String]  -- ignored everywhere but on Darwin/MacOS X<commit_msg>[project @ 2002-09-09 12:10:01 by simonmar] Urk, the 'import Pretty' in this module was a bit of a hack; when compiled as part of the standalone ghc-pkg tool it referred to the Pretty library from the util package, but when compiled as part of the compiler it referred to the compiler's own Pretty module.  Hack around this.<commit_after>-----------------------------------------------------------------------------
-- $Id: Package.hs,v 1.5 2002/09/09 12:10:01 simonmar Exp $
--
-- Package configuration defn.
-----------------------------------------------------------------------------

#ifdef PKG_TOOL
module Package ( 
	PackageConfig(..), defaultPackageConfig
#ifdef WANT_PRETTY
	, listPkgs	 	-- :: [PackageConfig] -> String
	, dumpPackages		-- :: [PackageConfig] -> String
	, dumpPkgGuts		-- :: PackageConfig -> Doc
	, dumpFieldContents	-- :: [String] -> Doc
#endif
 ) where
#endif

#ifdef WANT_PRETTY
#if __GLASGOW_HASKELL__ >= 504 && !defined(INTERNAL_PRETTY)
import Text.PrettyPrint
#else
import Pretty
#endif
#endif

data PackageConfig
   = Package {
	name            :: String,
	import_dirs     :: [String],
	source_dirs     :: [String],
	library_dirs    :: [String],
	hs_libraries    :: [String],
	extra_libraries :: [String],
	include_dirs    :: [String],
	c_includes      :: [String],
	package_deps    :: [String],
	extra_ghc_opts  :: [String],
	extra_cc_opts   :: [String],
	extra_ld_opts   :: [String],
	framework_dirs  :: [String], -- ignored everywhere but on Darwin/MacOS X
	extra_frameworks:: [String]  -- ignored everywhere but on Darwin/MacOS X
{'fraction_non_alphanumeric': 0.22401433691756273, 'fraction_numerical': 0.01863799283154122, 'mean_word_length': 2.3107947805456703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2461219', 'n_tokens_mistral': 893, 'n_tokens_neox': 839, 'n_words': 233}