h&Xv      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z {|}~      !!!!!!!!"""""""""""""""""""""""""""""""###########################################$$$$$$$$$$$$$$$$$$$$$%%%%%%%%%&''''''''''''((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))***++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---............................//////////////////////////////////////////////////////////////////////////////////////////////////00000000000000000000000000000000000011111111111111122222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222333333333333333333333333333344444444444444444444444444444444555566777777777777777777777777777777777777777 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9                  : : : : : : : : : : : : : : : : ; < < = = = = = = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ? @ A A B B B B B B B B B B B B B B B B C C C C C C C C C C C C C C C C C C C D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D E E E E E E E E E E E E E E E EEEEEEEEEEEEEFFFFFFFGGGGGGGGGGGG11111111111111111111111111111111111111HHHHHHHHHHHHHHHHHHHHHHHHHIIIIJKKLLLLLLLMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOPQRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWWWWWWWWWWXXXXXXXYYYYYYYYYYYYYYZZZZZZZZZ Safe-Inferred;+eVWXYZWXVYZ  Safe-Inferred+]Cabal2Applying module substitutions to semantic objects.]^]^[ Safe-Inferred89:.CabalAn 4, annotated with where it came from in a Cabal file.CabalDescription of where a module participating in mixin linking came from.CabalINVARIANT: entries for ModuleName m, have msrc_module is OpenModuleVar mCabalEvery Module in scope at a  is annotated with the  it comes from.CabalA  describes the modules and requirements that are in-scope as we are processing a Cabal package. Unlike a  ModuleShape6, there may be multiple modules in scope at the same ; this is only an error if we attempt to use those modules to fill a requirement. A  can influence the  ModuleShape via a reexport.Cabal An empty .  Safe-Inferred6;0eCabalA e describes the provisions and requirements of a library. We can extract a e from an .iCabalThe default module shape, with no provisions and no requirements.efghijefghij\ Safe-Inferred2fCabalStripped down version of LinkedComponent0 for things we don't need to know how to build.Cabal7The actual name of the package. This may DISAGREE with pc_pkgid9 for internal dependencies: e.g., an internal component lib may be munged to  z-pkg-z-lib+, but we still want to use it when we see lib in  build-dependsCabal!The actual name of the component.Cabal Convert an  into a *, which was brought into scope under the 0 (important for a package qualified reference.)   Safe-Inferred6;2qrstuvwqrstuvw] Safe-Inferred6:CabalThe exception thrown by  to terminate a thread.CabalAsync, but based on , as we don't depend on stm.Cabal Returns the " of the thread running the given .CabalSpawn an asynchronous action in a separate thread, and pass its Async handle to the supplied function. When the function returns or throws an exception,  is called on the Async. withAsync action inner = mask $ \restore -> do a <- async (restore action) restore (inner a) `finally` uninterruptibleCancel aThis is a useful variant of async that ensures an Async( is never left running unintentionally.Note: a reference to the child thread is kept alive until the call to  returns, so nesting many  calls requires linear memory.CabalWait for an asynchronous action to complete, and return its value. If the asynchronous action threw an exception, then the exception is re-thrown by . wait = atomically . waitSTMCabalWait for an asynchronous action to complete, and return either Left e# if the action raised an exception e, or Right a if it returned a value a. %waitCatch = atomically . waitCatchSTMCabal.Cancel an asynchronous action by throwing the AsyncCancelled' exception to it, and waiting for the ' thread to quit. Has no effect if the  has already completed. cancel a = throwTo (asyncThreadId a) AsyncCancelled <* waitCatch a Note that ) will not terminate until the thread the , refers to has terminated. This means that  will block for as long said thread blocks when receiving an asynchronous exception.For example, it could block if:It's executing a foreign call, and thus cannot receive the asynchronous exception;It's executing some cleanup handler after having received the exception, and the handler is blocking.CabalCancel an asynchronous actionThis is a variant of , but it is not interruptible.  Safe-Inferred;5UU Safe-Inferred;^PQRQPR Safe-Inferred;STTS^cabal-devel@haskell.org Windows-only Safe-Inferred;_ Safe-Inferred<{` Safe-Inferred=Cabal:Copies a file to a new destination. Often you should use  instead.CabalLike , but does not touch the target if source and destination are already byte-identical. This is recommended as it is useful for time-stamp based recompilation avoidance.CabalChecks if two files are byte-identical. Returns False if either of the files do not exist or if files are of different size.|}a Safe-Inferred>JK  Safe-InferredD~CabalEnable process jobs to ensure accurate determination of process completion in the presence of exec(3) on Windows.9Unfortunately the process job support is badly broken in process releases prior to 1.6.9, so we disable it in these versions, despite the fact that this means we may see sporadic build failures without jobs.On Windows 7 or before the jobs are disabled due to the fact that processes on these systems can only have one job. This prevents spawned process from assigning jobs to its own children. Suppose process A spawns process B. The B process has a job assigned (call it J1) and when it tries to spawn a new process C the C automatically inherits the job. But at it also tries to assign a new job J2 to C since it doesn@t have access J1. This fails on Windows 7 or before.Cabalbc= with process jobs enabled when appropriate, and defaulting  delegate_ctlc to .~~  Safe-InferredE dBSD3cabal-dev@haskell.org experimentalportable Safe-InferredEf Safe-InferredGCabalGive the *parent* of the person who invoked this; so it's most suitable for being called from a utility function. You probably want to call this using M; otherwise it's not very useful. We didn't implement this for base-4.8.1 because we cannot rely on freezing to have taken place.CabalThis function is for when you *really* want to add a call stack to raised IO, but you don't have a #e so you can't use f. If you have a  Verbosity$, please use that function instead.MNOMNOg Safe-InferredHCabalsetEnv name value, sets the specified environment variable to value.Throws hi if either name or value1 is the empty string or contains an equals sign.j(c) Sven Panne 2002-2005/BSD-style (see the file libraries/base/LICENSE)libraries@haskell.orgportable Safe-Inferred'N CabalDescribes whether an option takes an argument or not, and if so how the argument is parsed to a value of type a.=Compared to System.Console.GetOpt, we allow for parse errors.Cabalno argument expectedCabaloption requires argumentCabaloptional argumentCabal-What to do with options following non-optionsCabal+no option processing after first non-optionCabal*freely intersperse options and non-optionsCabalReturn a string describing the usage of a command, derived from the header (first argument) and the options described by the second argument.CabalProcess the command-line, and return the list of values that matched (and those that didn't). The arguments are:The order requirements (see )The option descriptions (see )9The actual command line arguments (presumably got from kl). returns a triple consisting of the option arguments, a list of non-options, and a list of error messages.CabalThis is almost the same as , but returns a quadruple consisting of the option arguments, a list of non-options, a list of unrecognized options, and a list of error messages. mBen Gamari 2015-2019cabal-devel@haskell.orgportable Safe-InferredNJose Iborra 2008BSD3cabal-devel@haskell.orgportable Safe-InferredOCabal"Parser with simple error reporting Safe-InferredWVCabalDesugar a "build-tools" entry into proper a executable dependency if possible.*An entry can be so desugared in two cases: The name in build-tools matches a locally defined executable. The executable dependency produced is on that exe in the current package.The name in build-tools matches a hard-coded set of known tools. For now, the executable dependency produced is one an executable in a package of the same, but the hard-coding could just as well be per-key.The first cases matches first.CabalGet everything from "build-tool-depends", along with entries from "build-tools" that we know how to desugar.This should almost always be used instead of just accessing the  field directly.CabalDoes the given executable dependency map to this current package?8This is a tiny function, but used in a number of places.'This function is only sound to call on s from the given package description. This is because it just filters the package names of each dependency, and does not check whether version bounds in fact exclude the current package, or the referenced components in fact exist in the current package.This is OK because when a package is loaded, it is checked (in no) that dependencies matching internal components do indeed have version bounds accepting the current package, and any depended-on component in the current package actually exists. In fact this check is performed by gathering the internal tool dependencies of each component of the package according to this module, and ensuring those properties on each so-gathered dependency.version bounds and components of the package are unchecked. This is because we sanitize exe deps so that the matching name implies these other conditions.CabalGet internal "build-tool-depends", along with internal "build-tools"This is a tiny function, but used in a number of places. The same restrictions that apply to  also apply to this function.2011, Dan Knappcabal-devel@haskell.orgportable Safe-InferredZCabalRepresents a dialect of C. The Monoid instance expresses backward compatibility, in the sense that 'mappend a b' is the least inclusive dialect which both a and b! can be correctly interpreted as.CabalA list of all file extensions which are recognized as possibly containing some dialect of C code. Note that this list is only for source files, not for header files.CabalTakes a dialect of C and whether code is intended to be passed through the preprocessor, and returns a filename extension for containing that code.CabalInfers from a filename's extension the dialect of C which it contains, and whether it is intended to be passed through the preprocessor.8Isaac Jones 2003-2004 Duncan Coutts 2007BSD3cabal-devel@haskell.orgportable Safe-Inferred6;]+Cabal#Types that represent boolean flags.Cabal1All flags are monoids, they come in two flavours:  list flags eg !--ghc-option=foo --ghc-option=bar&gives us all the values ["foo", "bar"] singular value flags, eg: --enable-foo --disable-foogives us Just False So this Flag type is for the latter singular kind of flag. Its monoid instance gives us the behaviour where it starts out as ' and later flags override earlier ones.Cabal   Safe-Inferred6;b1CabalThe $prefix path variableCabalThe $bindir path variableCabalThe $libdir path variableCabalThe  $libsubdir path variableCabalThe  $dynlibdir path variableCabalThe $datadir path variableCabalThe  $datasubdir path variableCabalThe $docdir path variableCabalThe $htmldir path variableCabalThe $pkg package name path variableCabalThe $version package version path variableCabalThe $pkgid package Id path variable, eg foo-1.0CabalThe $libname path variableCabal"The compiler name and version, eg  ghc-6.6.1CabalThe operating system name, eg windows or linuxCabalThe CPU architecture name, eg i386 or x86_64CabalThe compiler's ABI identifier,Cabal%The optional ABI tag for the compilerCabal+The executable name; used in shell wrappersCabal$The name of the test suite being runCabal,The result of the test suite being run, eg pass, fail, or error.Cabal#The name of the benchmark being runIsaac Jones 2003-2004BSD3cabal-devel@haskell.orgportable Safe-Inferred68;o8 CabalAn abstract path, possibly containing variables that need to be substituted for to get a real .CabalThe location prefix for the copy command.Cabalwhen using the ${pkgroot} as prefix. The CopyToDb will adjust the paths to be relative to the provided package database when copying / installing.Cabal)The installation directories in terms of s that contain variables.The defaults for most of the directories are relative to each other, in particular they are all relative to a single prefix. This makes it convenient for the user to override the default installation directory by only having to specify --prefix=... rather than overriding each individually. This is done by allowing $-style variables in the dirs. These are expanded by textual substitution (see ).A few of these installation directories are split into two components, the dir and subdir. The full installation path is formed by combining the two together with /. The reason for this is compatibility with other Unix build systems which also support --libdir and  --datadir/. We would like users to be able to configure --libdir=/usr/lib64 for example but because by default we want to support installing multiple versions of packages and building the same package for multiple compilers we append the libsubdir to get: /usr/lib64/$libname/$compiler.An additional complication is the need to support relocatable packages on systems which support such things, like Windows.Cabal9The directories where we will install files for packages.We have several different directories for different types of files since many systems have conventions whereby different types of files in a package are installed in different directories. This is particularly the case on Unix style systems.Cabalforeign librariesCabal5Substitute the install dir templates into each other.To prevent cyclic substitutions, only some variables are allowed in particular dir templates. If out of scope vars are present, they are not substituted for. Checking for any remaining unsubstituted vars can be done as a subsequent operation.-The reason it is done this way is so that in  we can replace  with the  and get resulting s that still have the  in them. Doing this makes it each to check which paths are relative to the $prefix.CabalConvert from abstract install directories to actual absolute ones by substituting for all the variables in the abstract paths, to get real absolute path.CabalCheck which of the paths are relative to the installation $prefix.If any of the paths are not relative, ie they are absolute paths, then it prevents us from making a relocatable package (also known as a "prefix independent" package).Cabal Convert a  to a  including any template vars.Cabal7Convert back to a path, any remaining vars are includedCabal=The initial environment has all the static stuff but no paths...cabal-devel@haskell.orgportable Safe-Inferredq9CabalNo unliteration.Cabal takes a filename (for error reports), and transforms the given string, to eliminate the literate comments from the program text.cabal-devel@haskell.orgportable Safe-InferredrCabalExtract the version number from the output of 'strip --version'.Invoking "strip --version" gives very inconsistent results. We ignore everything in parentheses (see #2497), look for the first word that starts with a number, and try parsing out the first two components of it. Non-GNU strip' doesn't appear to have a version flag.Thomas Tuegel 2010BSD3cabal-devel@haskell.orgportable Safe-InferredwsCabalIf true, then children of this group may be run in parallel. Note that this setting is not inherited by children. In particular, consider a group F with "concurrently = False" that has some children, including a group T with "concurrently = True". The children of group T may be run concurrently with each other, as long as none are run at the same time as any of the direct children of group F.CabalA human-readable description of the option to guide the user setting it.CabalPerform the test.Cabal1A name for the test, unique within a test suite.Cabal0Users can select groups of tests by their tags.Cabal5Descriptions of the options recognized by this test.CabalTry to set the named option to the given value. Returns an error message if the option is not supported or the value could not be correctly parsed; otherwise, a 5 with the option set to the given value is returned.CabalCreate a named group of tests, which are assumed to be safe to run in parallel.++ Safe-InferredyCCabalAn  is a , , etc. which is annotated with some other useful information that is useful for printing to users, etc.Invariant: if ann_id x == ann_id y, then ann_pid x == ann_pid y and ann_cname x == ann_cname y Safe-Inferredz.CabalDid this come from an entry in mixins", or was implicitly generated by  build-depends?CabalThis should always return & or  CSubLibName Safe-Inferred6;( Cabal?The first five fields are common across all algebraic variants.CabalIt would be very convenient to store the literal Library here, but if we do that, it will get serialized (via the Binary) instance twice. So instead we just provide the ComponentName, which can be used to find the Component in the PackageDescription. NB: eventually, this will NOT uniquely identify the ComponentLocalBuildInfo.Cabal The computed  of this component.Cabal The computed = which uniquely identifies this component. Might be hashed.Cabal:Is this an indefinite component (i.e. has unfilled holes)?Cabal"How the component was instantiatedCabalResolved internal and external package dependencies for this component. The  BuildInfo specifies a set of build dependencies that must be satisfied in terms of version ranges. This field fixes those dependencies to the specific versions available on this machine for this compiler.CabalThe set of packages that are brought into scope during compilation, including a  which may used to hide or rename modules. This is what gets translated into  -package-id. arguments. This is a modernized version of ', which is kept around for BC purposes.Cabal7The internal dependencies which induce a graph on the 0 of this package. This does NOT coincide with  because it ALSO records 'build-tool' dependencies on executables. Maybe one day  cabal-install& will also handle these correctly too!CabalCompatibility "package key" that we pass to older versions of GHC.CabalCompatibility "package name" that we register this component as.CabalA list of exposed modules (either defined in this component, or reexported from another component.)CabalConvenience field, specifying whether or not this is the "public library" that has the same name as the package. Safe-Inferred6; Safe-Inferred6;CabalA  represents a library depended on and explicitly specified by the user/client with  --dependencyIt enables Cabal to know which  to associate with a library Safe-InferredCabalUsed as a placeholder in $Distribution.Backpack.ReadyComponentCabalUsed by cabal new-repl,  cabal new-run and cabal new-buildCabalUsed by  cabal new-run and cabal new-buildCabal with . Safe-Inferred@CabalThe  contains all the information necessary to build a specific target (e.g., componentmodule4file) in a package. In principle, one can get the  from a  and LocalBuildInfo, but it is much more convenient to have the component in hand. Safe-Inferred)**CabalCabalCabal Wrapper for Note$: This operation uses lazy I/O. Use  to force all data to be read and consequently the internal file handle to be closed.CabalRepresents either textual or binary data passed via I/O functions which support binary/text modeCabal2How Text gets encoded is usually locale-dependent.Cabal2Raw binary which gets read/written in binary mode.Cabal Test whether  is emptyCabal Wrapper for  and This is the dual operation ot ., and consequently the handle is closed with hClose.Note: this performs lazy-IO.   Safe-Inferred"fCabal Convert a  into a  ByteStringCabalA shorthand for building up s >>> JsonObject [ "a" .= JsonNumber 42, "b" .= JsonBool True ] JsonObject [("a",JsonNumber 42),("b",JsonBool True)]    Safe-InferredCabalMonadic variant of  mapAccumL.! Safe-Inferred8$CabalA type to represent the unfolding of an expensive long running calculation that may fail (or maybe not expensive, but complicated!) We may get intermediate steps before the final result which may be used to indicate progress and/or logging messages.TODO: Apply Codensity to avoid left-associativity problem. See  4http://comonad.com/reader/2011/free-monads-for-less/ and http://blog.ezyang.com/2012/01/problem-set-the-codensity-transformation/CabalEmit a step and then continue.CabalFail the computation.Cabal Consume a  calculation. Much like  for lists but with two base cases, one for a final result and one for failure.Eg to convert into a simple  result use: $foldProgress (flip const) Left Rightp Safe-Inferred Cabal"The internal data structure for a , which either records the representative element of an equivalence class, or a link to the . that actually stores the representative type.CabalA variable which can be unified; alternately, this can be thought of as an equivalence class with a distinguished representative.CabalMutable write to a CabalRead the current value of .Cabal2Create a fresh equivalence class with one element.Cabal)Flatten any chains of links, returning a 8 which points directly to the canonical representation.Cabal6Return the canonical element of an equivalence class .CabalUnify two equivalence classes, so that they share a canonical element. Keeps the descriptor of point2.Cabal5Test if two points are in the same equivalence class." Safe-Inferred6;Cabal  #Ian Lynagh 2007BSD3cabal-devel@haskell.orgportable Safe-Inferred6; CabalIn  mode, we should not print anything unless an error occurs.Cabal&Print stuff we want to see by default.Cabal&Be more verbose about what's going on.CabalNot only are we verbose ourselves (perhaps even noisier than when being 3), but we tell everything we run to be verbose too.Cabal#Increase verbosity level, but stay  if we are.Cabal#Decrease verbosity level, but stay  if we are.CabalCombinator for transforming verbosity level while retaining the original hidden state.*For instance, the following property holdsisVerboseNoWrap (modifyVerbosity (max verbose) v) == isVerboseNoWrap vNote: you can use modifyVerbosity (const v1) v0 to overwrite v1's flags with v0 's flags.CabalNumeric verbosity level 0..3: 0 is , 3 is .Cabal/Turn on verbose call-site printing when we log.Cabal0Turn on verbose call-stack printing when we log.CabalTurn on -----BEGIN CABAL OUTPUT----- markers for output from Cabal (as opposed to GHC, or system dependent).CabalTurn off marking; useful for suppressing nondeterministic output.Cabal'Disable line-wrapping for log messages.CabalMark the verbosity as quiet.Cabal$Turn on timestamps for log messages.Cabal%Turn off timestamps for log messages.CabalSwitch logging to stderr.CabalSwitch logging to stdout.Cabal#Turn off warnings for log messages.Cabal,Helper function for flag enabling functions.Cabal-Helper function for flag disabling functions.CabalTurn off all flags.Cabal0Test if we should output call sites when we log.Cabal1Test if we should output call stacks when we log.Cabal!Test if we should output markets.Cabal3Test if line-wrapping is disabled for log messages.CabalTest if we had called  on the verbosity.Cabal0Test if we should output timestamps when we log.CabalTest if we should output to stderr when we log.Cabal.Test if we should output warnings when we log.Cabal+Helper function for flag testing functions.CabalParser verbosity-explicitEitherParsec parsecVerbosity "normal"Right (Verbosity {vLevel = Normal, vFlags = fromList [], vQuiet = False})6explicitEitherParsec parsecVerbosity "normal+nowrap "Right (Verbosity {vLevel = Normal, vFlags = fromList [VNoWrap], vQuiet = False})explicitEitherParsec parsecVerbosity "normal+nowrap +markoutput"Right (Verbosity {vLevel = Normal, vFlags = fromList [VNoWrap,VMarkOutput], vQuiet = False})explicitEitherParsec parsecVerbosity "normal +nowrap +markoutput"Right (Verbosity {vLevel = Normal, vFlags = fromList [VNoWrap,VMarkOutput], vQuiet = False})?explicitEitherParsec parsecVerbosity "normal+nowrap+markoutput"Right (Verbosity {vLevel = Normal, vFlags = fromList [VNoWrap,VMarkOutput], vQuiet = False})explicitEitherParsec parsecVerbosity "deafening+nowrap+stdout+stderr+callsite+callstack"Right (Verbosity {vLevel = Deafening, vFlags = fromList [VCallStack,VCallSite,VNoWrap,VStderr], vQuiet = False})Note:& this parser will eat trailing spaces.  q Safe-Inferred!CabalThe mutable counterpart of CabalThe mutable counterpart of .CabalThe mutable counterpart of a  ModuleSubst (not defined here).Cabal!An integer for uniquely labeling  nodes. We need these labels in order to efficiently serialize s into s (we use the label to check if any parent is the node in question, and if so insert a deBruijn index instead.) These labels must be unique across all s/$s which participate in unification!CabalA mutable version of # which can be imperatively unified.CabalA mutable version of # which can be imperatively unified.CabalContents of a mutable  reference.CabalContents of a mutable  reference.CabalA convenient alias for mutable references in the unification monad.CabalThe unification environment.Cabal%A supply of unique integers to label  cells. This is used to determine loops in unit identifiers (which can happen with mutual recursion.)CabalThe set of requirements in scope. When a provision is brought into scope, we unify with the requirement at the same module name to fill it. This mapping grows monotonically.CabalComponent id of the unit we're linking. We use this to detect if we fill a requirement with a local module, which in principle should be OK but is not currently supported by GHC.Cabal'How verbose the error message should beCabalThe error reporting contextCabal0The package index for expanding unit identifiersCabalAccumulated errorsCabalThe unification monad, this monad encapsulates imperative unification.Cabal+Run a computation in the unification monad.CabalLift a computation from  monad to  monad. Internal use only.CabalImperatively read a .CabalImperatively write a .Cabal(Get the current unification environment.Cabal)Add a fixed message to the error context.CabalAdd a message to the error context. It may make monadic queries.CabalConversion of  ModuleSubst to CabalConversion of  to  ModuleSubstCabalReturns  if there is no a mutually recursive unit. | Otherwise returns a list of signatures instantiated by given .Cabal An empty .Cabal Convert a e into a ", so we can do unification on it.Cabal Convert a  to a .Cabal Convert a  to a Cabal Convert a  to a )r Safe-InferredBCabalGiven to scopes of provisions and requirements, link them together.CabalLink a list of possibly provided modules to a single requirement. This applies a side-condition that all of the provided modules at the same name are *actually* the same module.CabalImperatively unify two modules.s Safe-Inferredk,t Safe-Inferred;u Safe-Inferred; v Safe-Inferred;.w Safe-Inferred#Isaac Jones, Simon Marlow 2003-2004=BSD3 portions Copyright (c) 2007, Galois Inc.cabal-devel@haskell.orgportable Safe-Inferred )*;CabalAdvanced options for  and .CabalKeep temporary files?Cabal/When should we output the marker? Things like die always get marked, but a 5 will only be output if we're not a quiet verbosity.CabalWhen should we emit the call stack? We always emit for internal errors, emit the trace for errors when we are in verbose mode, and otherwise only emit it if explicitly asked for using the  +callstack# verbosity flag. (At the moment,  is not used.CabalTag an = whose error string should be output to the screen verbatim.Cabal Check if an % should be output verbatim to screen.Cabal Create a ) whose error text will be output verbatimCabalPrefixing a message to indicate that it is a fatal error, if the  is not already present.Cabal4A prefix indicating that a message is a fatal error.Cabal.Prefix an error string with program name from Cabal,Annotate an error string with timestamp and .CabalGiven a block of IO code that may raise an exception, annotate it with the metadata from the current scope. Use this as close to external code that raises IO exceptions as possible, since this function unconditionally wraps the error message with a trace (so it is NOT idempotent.)Cabal2A semantic editor for the error message inside an .Cabal'A lens for the error message inside an .CabalBC wrapper around .Cabal Depending on , set the output handle to  or .CabalNon fatal conditions that may be indicative of an error or problem.We display these at the  verbosity level.CabalUseful status messages.We display these at the  verbosity level.This is for the ordinary helpful status messages that users see. Just enough information to know that things are working but not floods of detail.CabalDisplay a message at ( verbosity level, but without wrapping.CabalPretty-print a  status message at : verbosity level. Use this if you need fancy formatting.CabalDisplay a "setup status message". Prefer using setupMessage' if possible.Cabal,More detail on the operation of some action.6We display these messages when the verbosity level is Cabal'Detailed internal debugging information6We display these messages when the verbosity level is Cabal A variant of  that doesn't perform the automatic line wrapping. Produces better output in some cases.CabalPerform an IO action, catching any IO exceptions and printing an error if one occurs.Cabal!Run an IO computation, returning e- if it raises a "file does not exist" error.CabalWraps text unless the +nowrap verbosity flag is activeCabalPrepends a timestamp if  +timestamp verbosity flag is setThis is used by CabalWrap output with a marker if  +markoutput verbosity flag is set.NB: Why is markoutput done with start/end markers, and not prefixes? Markers are more convenient to add (if we want to add prefixes, we have to  and then ; here's it's just some concatenates). Note that even in the prefix case, we can't guarantee that the markers are unambiguous, because some of Cabal's output comes straight from external programs, where we don't have the ability to interpose on the output.This is used by CabalAppend a trailing newline to a string if it does not already have a trailing newline.Cabal8Prepend a call-site and/or call-stack based on VerbosityCabalDetermine if we should emit a call stack. If we trace, it also emits any prefix we should append.Cabal/Add all necessary metadata to a logging messageCabalHelper to use with one of the  rawSystem? variants, and exit unless the command completes successfully.CabalLog a command execution (that's typically about to happen) at info level, and log working directory and environment overrides at debug level if specified.CabalExecute the given command with the given arguments, exiting with the same exit code if the command fails.CabalExecute the given command with the given arguments, returning the command's exit code.CabalExecute the given command with the given arguments, returning the command's exit code.!Create the process argument with * to ensure consistent options with other  rawSystem functions in this module.CabalExecute the given command with the given arguments, returning the command's exit code. action is executed while the command is running, and would typically be used to communicate with the process through pipes.!Create the process argument with * to ensure consistent options with other  rawSystem functions in this module.CabalfromJust for dealing with 'Maybe Handle' values as obtained via bx. Creating a pipe using  CreatePipe guarantees a $ value for the corresponding handle.CabalExecute the given command with the given arguments and environment, exiting with the same exit code if the command fails.CabalExecute the given command with the given arguments, returning the command's exit code.Optional arguments allow setting working directory, environment and input and output handles.CabalExecute the given command with the given arguments, returning the command's exit code. action is executed while the command is running, and would typically be used to communicate with the process through pipes.Optional arguments allow setting working directory, environment and input and output handles.CabalExecute the given command with the given arguments, returning the command's output. Exits if the command exits with error.9Provides control over the binary/text mode of the output.CabalExecute the given command with the given arguments, returning the command's output, errors and exit code.Optional arguments allow setting working directory, environment and command input.Provides control over the binary/text mode of the input and output.Cabal#Ignore SIGPIPE in a subcomputation.CabalLook for a program and try to find it's version number. It can accept either an absolute path or the name of a program binary, in which case we will look for the program on the path.CabalLike the Unix xargs program. Useful for when we've got very long command lines that might overflow an OS limit on command line length and so you need to invoke a command multiple times to get all the args in.Use it with either of the rawSystem variants above. For example: xargs (32*1024) (rawSystemExit verbosity) prog fixedArgs bigArgsCabalFind a file by looking in a search path. The file path must match exactly.CabalFind a file by looking in a search path. The file path must match exactly.CabalFind a file by looking in a search path with one of a list of possible file extensions. The file base name should be given and it will be tried with each of the extensions in each element of the search path.CabalCabalCabalLike  but returns which element of the search path the file was found in, and the file path relative to that base directory.CabalFinds the files corresponding to a list of Haskell module names.As findModuleFile but for a list of module names.Cabal5Find the file corresponding to a Haskell module name.This is similar to  but specialised to a module name. The function fails if the file corresponding to the module is missing.Cabal9List all the files in a directory and all subdirectories.The order places files in sub-directories after all the files in their parent directories. The list is generated lazily so is not well defined if the source directory structure changes before the list is used.Cabal,Is this directory in the system search path?CabalCompare the modification times of two files to see if the first is newer than the second. The first file must exist but the second need not. The expected use case is when the second file is generated using the first. In this use case, if the result is True then the second file is out of date.CabalLike -, but also checks that the first file exists.CabalSame as createDirectoryIfMissing% but logs at higher verbosity levels.CabalCopies a file without copying file permissions. The target file is created with default permissions. Any existing target file is replaced.3At higher verbosity levels it logs an info message.CabalInstall an ordinary file. This is like a file copy but the permissions are set appropriately for an installed file. On Unix it is "-rw-r--r--" while on Windows it uses the default permissions for the target directory.CabalInstall an executable file. This is like a file copy but the permissions are set appropriately for an installed file. On Unix it is "-rwxr-xr-x" while on Windows it uses the default permissions for the target directory.CabalInstall a file that may or not be executable, preserving permissions.CabalGiven a relative path to a file, copy it to the given directory, preserving the relative path and creating the parent directories if needed.CabalCommon implementation of , ,  and .CabalCopies a bunch of files to a target directory, preserving the directory structure in the target location. The target directories are created if they do not exist.The files are identified by a pair of base directory and a path relative to that base. It is only the relative part that is preserved in the destination. For example: copyFiles normal "dist/src" [("", "src/Foo.hs"), ("dist/build/", "src/Bar.hs")]This would copy "src/Foo.hs" to "dist/src/src/Foo.hs" and copy "dist/build/src/Bar.hs" to "dist/src/src/Bar.hs".This operation is not atomic. Any IO failure during the copy (including any missing source files) leaves the target in an unknown state so it is best to use it with a freshly created directory so that it can be simply deleted if anything goes wrong.Cabal This is like  but uses .Cabal This is like  but uses .Cabal This is like  but uses .CabalThis installs all the files in a directory to a target location, preserving the directory layout. All the files are assumed to be ordinary rather than executable files.Cabal?Recursively copy the contents of one directory to another path.CabalLike ., but also checks that the file is executable.Cabal4Use a temporary filename that doesn't already exist.Cabal A version of  that additionally takes a  argument.Cabal%Create and use a temporary directory.Creates a new temporary directory inside the given directory, making use of the template. The temp directory is deleted after use. For example: >withTempDirectory verbosity "src" "sdist." $ \tmpDir -> do ...The tmpDir: will be a new subdirectory of the given directory, e.g.  src/sdist.342.Cabal A version of  that additionally takes a  argument.CabalWrite a file but only if it would have new content. If we would be writing the same as the existing content then leave the file as is so that we do not update the file's modification time.NB: Before Cabal-3.0 the file content was assumed to be ASCII-representable. Since Cabal-3.0 the file is assumed to be UTF-8 encoded.CabalSame as  but for  ByteStrings.CabalThe path name that represents the current directory. In Unix, it's ".", but this is system-specific. (E.g. AmigaOS uses the empty string "" for the current directory.)Cabal"Drop the extension if it's one of  , or return the path unchanged.CabalList of possible executable file extensions on the current build platform.CabalPackage description file (pkgname.cabal)CabalFind a package description file in the given directory. Looks for .cabal files.CabalCabalLike  , but calls die in case of error.CabalLike  , but calls die in case of error.CabalFind auxiliary package information in the given directory. Looks for  .buildinfo files.Cabal.a description of the action we were attemptingCabalthe action itselfCabalNew working dir or inheritCabalNew environment or inheritCabalstdinCabalstdoutCabalstderrCabalNew working dir or inheritCabalNew environment or inheritCabal7action to perform after process is created, but before waitForProcess.CabalstdinCabalstdoutCabalstderrCabalProgram locationCabal ArgumentsCabalNew working dir or inheritCabalNew environment or inheritCabalinput text and binary modeCabaliodata mode, acts as proxyCabaloutput, errors, exitCabal version argsCabal8function to select version number from program outputCaballocationCabalcwdCabalrelative search locationCabal File NameCabalsearch locationsCabal File NameCabalcwdCabal extensionsCabalrelative search locationsCabalbasenameCabal"build prefix (location of objects)Cabalsearch suffixesCabalmodulesCabal"build prefix (location of objects)Cabalsearch suffixesCabalmoduleCabalCreate its parents too?CabalTemp dir to create the file inCabalFile name template. See .CabalTemp dir to create the file inCabalFile name template. See .Cabal Where to lookCabal pkgname.cabalCabal project rootCabalrelative directoryCabal pkgname#.cabal relative to the project rootCabalDirectory to searchCabaldir/pkgname .buildinfo , if present-./0123456789:;<=>?@ABCDEFGHIJKL{|}|}{GFEDCB@?>=A<;1JLK086:975432/IH.-$ Safe-Inferred6; Cabal%NubListR : A right-biased version of  . That is +toNubListR ["-XNoFoo", "-XFoo", "-XNoFoo"] will result in ["-XFoo", "-XNoFoo"], unlike the normal ), which is left-biased. Built on top of 7 and 6.CabalNubList : A de-duplicated list that maintains the original order.Cabal'Smart constructor for the NubList type.Cabal7Lift a function over lists to a function over NubLists.Cabal1Helper used by NubList/NubListR's Read instances.Cabal(Smart constructor for the NubListR type.Cabal8Lift a function over lists to a function over NubListRs.Cabal>Binary instance for 'NubList a' is the same as for '[a]'. For 6, we just pull off constructor and put the list. For , we get the list and make a  out of it using .CabalMonoid operations on NubLists. For a valid Monoid instance we need to satisfy the required monoid laws; identity, associativity and closure.'Identity : by inspection: mempty  NubList xs == NubList xs  mempty1Associativity : by inspection: (NubList xs  NubList ys)  NubList zs == NubList xs  (NubList ys  NubList zs)Closure : appending two lists of type a and removing duplicates obviously does not change the type.% Safe-InferredFCabalThe 4 monad with specialized logging and error messages.CabalRun !, outputting traces according to , die if there is an error.Cabal"Output a warning trace message in .Cabal)Output an informational trace message in .Cabal+Fail the computation with an error message.Cabal:Format a message with context. (Something simple for now.)Cabal+Add a message to the error/warning context.&(c) Sergey Vinokurov 2017 BSD3-stylecabal-devel@haskell.org Safe-InferredCabal-Working directory to create response file in.Cabal Template for response file name.Cabal+Encoding to use for response file contents.Cabal$Arguments to put into response file.'Duncan Coutts 2013cabal-devel@haskell.orgportable Safe-Inferred6;CabalA specific dirCabalThe system defaultCabalA search path to use when locating executables. This is analogous to the unix $PATH or win32 %PATH% but with the ability to use the system default method for finding executables () which on unix is simply looking on the $PATH* but on win32 is a bit more complicated).The default to use is [ProgSearchPathDefault] but you can add extra dirs either before, after or instead of the default, e.g. here we add an extra dir to search after the usual ones. 8['ProgramSearchPathDefault', 'ProgramSearchPathDir' dir]Cabal Interpret a  to construct a new $PATH env var. Note that this is close but not perfect because on Windows the search algorithm looks at more than just the %PATH%.Cabal=Get the system search path. On Unix systems this is just the $PATH6 env var, but on windows it's a bit more complicated.()Isaac Jones 2006, Duncan Coutts 2007-2009cabal-devel@haskell.orgportable Safe-Inferred6;?CabalWhere a program was found. Also tells us whether it's specified by user or not. This includes not just the path, but the program as well.CabalThe user gave the path to this program, eg. --ghc-path=/usr/bin/ghc-6.6Cabal$The program was found automatically.CabalRepresents a program which has been configured and is thus ready to be run.(These are usually made by configuring a =, but if you have to construct one directly then start with  and override any extra fields.CabalJust the name againCabal,The version of this program, if it is known.CabalDefault command-line args for this program. These flags will appear first on the command line, so they can be overridden by subsequent flags.CabalOverride command-line args for this program. These flags will appear last on the command line, so they override all earlier flags.CabalOverride environment variables for this program. These env vars will extend/override the prevailing environment of the current to form the environment for the new process.CabalA key-value map listing various properties of the program, useful for feature detection. Populated during the configuration step, key names depend on the specific program.CabalLocation of the program. eg. /usr/bin/ghc-6.4CabalIn addition to the  where the program was found, these are additional locations that were looked at. The combination of ths found location and these not-found locations can be used to monitor to detect when the re-configuring the program might give a different result (e.g. found in a different location).Cabal-Represents a program which can be configured.9Note: rather than constructing this directly, start with  and override any extra fields.Cabal'The simple name of the program, eg. ghcCabalA function to search for the program if its location was not specified by the user. Usually this will just be a call to .It is supplied with the prevailing search path which will typically just be used as-is, but can be extended or ignored as needed.For the purpose of change monitoring, in addition to the location where the program was found, it returns all the other places that were tried.CabalTry to find the version of the program. For many programs this is not possible or is not necessary so it's OK to return Nothing.CabalA function to do any additional configuration after we have located the program (and perhaps identified its version). For example it could add args, or environment vars.CabalA function that filters any arguments that don't impact the output from a commandline. Used to limit the volatility of dependency hashes when using new-build.Cabal&The full path of a configured program.Cabal/Suppress any extra arguments added by the user.CabalMake a simple named program.By default we'll just search for it in the path and not try to find the version name. You can override these behaviours if necessary, eg: (simpleProgram "foo") { programFindLocation = ... , programFindVersion ... }CabalMake a simple . 2simpleConfiguredProgram "foo" (FoundOnSystem path))Duncan Coutts 2009cabal-devel@haskell.orgportable Safe-Inferred)* (Cabal7Represents a specific invocation of a specific program.This is used as an intermediate type between deciding how to call a program and actually doing it. This provides the opportunity to the caller to adjust how the program will be called. These invocations can either be run directly or turned into shell or batch scripts.Cabal6TODO: remove this, make user decide when constructing .CabalReturn the current environment extended with the given overrides. If an entry is specified twice in  overrides%, the second entry takes precedence.CabalLike the unix xargs program. Useful for when we've got very long command lines that might overflow an OS limit on command line length and so you need to invoke a command multiple times to get all the args in.It takes four template invocations corresponding to the simple, initial, middle and last invocations. If the number of args given is small enough that we can get away with just a single invocation then the simple one is used:  $ simple argsIf the number of args given means that we need to use multiple invocations then the templates for the initial, middle and last invocations are used: $ initial args_0 $ middle args_1 $ middle args_2 ... $ final args_n*Duncan Coutts 2009cabal-devel@haskell.orgportable Safe-Inferred)* CabalGenerate a system script, either POSIX shell script or Windows batch file as appropriate for the given system.Cabal5Generate a POSIX shell script that invokes a program.Cabal5Generate a Windows batch file that invokes a program.+Thomas Tuegel 2011cabal-devel@haskell.orgportable Safe-Inferred Cabal%Invoke hpc with the given parameters.Prior to HPC version 0.7 (packaged with GHC 7.8), hpc did not handle multiple .mix paths correctly, so we print a warning, and only pass it the first path in the list. This means that e.g. test suites that import their library as a dependency can still work, but those that include the library modules directly (in other-modules) don't.CabalPath to .tix fileCabalPaths to .mix file directoriesCabal(Path where html output should be locatedCabal(List of modules to include in the reportCabalPath to .tix fileCabalPaths to .mix file directoriesCabal)Path where html output should be locatedCabalList of modules to includeCabalPaths to .tix filesCabalPath to resultant .tix fileCabal%List of modules to exclude from unionCabalPaths to .tix filesCabalPath to resultant .tix fileCabal%List of modules to exclude from union,(c) David Himmelstrup 2005, Bjorn Bringert 2007, Duncan Coutts 2008-2009cabal-devel@haskell.orgportable Safe-Inferred6;&Cabal(We maintain the invariant that, for any =, there is only one instance of the package in our database.Cabal)The default package index which contains InstalledPackageInfo. Normally use this.Cabal>The collection of information about packages from one or more  PackageDB8s. These packages generally should have an instance of -Packages are uniquely identified in by their , they can also be efficiently looked up by package name or by name and version.Cabal*Build an index out of a bunch of packages.If there are duplicates by $ then later ones mask earlier ones.CabalMerge two indexes.Packages from the second mask packages from the first if they have the exact same ."For packages with the same source , packages from the second are "preferred" over those from the first. Being preferred means they are top result when we do a lookup by source . This is the mechanism we use to prefer user packages over global packages.Cabal(Inserts a single package into the index.8This is equivalent to (but slightly quicker than) using  or  with a singleton index.Cabal2Removes a single installed package from the index.Cabal&Removes all packages with this source  from the index.CabalRemoves all packages with this (case-sensitive) name from the index.9NB: Does NOT delete internal libraries from this package.Cabal$Get all the packages from the index.Cabal$Get all the packages from the index.4They are grouped by package name (case-sensitively).$(Doesn't include private libraries.)Cabal$Get all the packages from the index.They are grouped by source package id (package name and version).#(Doesn't include private libraries)Cabal$Get all the packages from the index.7They are grouped by source package id and library name.%This DOES include internal libraries.Cabal!Does a lookup by unit identifier..Since multiple package DBs mask each other by (, then we get back at most one package.CabalDoes a lookup by component identifier. In the absence of Backpack, this is just a .Cabal4Does a lookup by source package id (name & version).>There can be multiple installed packages with the same source  but different . They are returned in order of preference, with the most preferred first.CabalConvenient alias of 0, but assuming only one package per package ID.Cabal%Does a lookup by source package name.Cabal=Does a lookup by source package name and a range of versions.We get back any number of versions of the specified package name, all satisfying the version range constraint.This does NOT work for internal dependencies, DO NOT use this function on those; use  instead.INVARIANT: List of eligible  is non-empty.Cabal=Does a lookup by source package name and a range of versions.We get back any number of versions of the specified package name, all satisfying the version range constraint.INVARIANT: List of eligible  is non-empty.Cabal/Does a case-insensitive search by package name.If there is only one package that compares case-insensitively to this name then the search is unambiguous and we get back all versions of that package. If several match case-insensitively but one matches exactly then it is also unambiguous.If however several match case-insensitively and none match exactly then we have an ambiguous result, and we get back all the versions of all the packages. The list of ambiguous results is split by exact package name. So it is a non-empty list of non-empty lists.Cabal9Does a case-insensitive substring search by package name.That is, all packages that contain the given string in their name.CabalCabalFind if there are any cycles in the dependency graph. If there are no cycles the result is [].This actually computes the strongly connected components. So it gives us a list of groups of packages where within each group they all depend on each other, directly or indirectly.CabalAll packages that have immediate dependencies that are not in the index.Returns such packages along with the dependencies that they're missing.CabalTries to take the transitive closure of the package dependencies.If the transitive closure is complete then it returns that subset of the index. Otherwise it returns the broken packages as in .Note that if the result is Right []3 it is because at least one of the original given s do not occur in the index.CabalTakes the transitive closure of the packages reverse dependencies. The given s must be in the index.Cabal+Builds a graph of the package dependencies.Dependencies on other packages that are not in the index are discarded. You can check if there are any such dependencies with .CabalGiven a package index where we assume we want to use all the packages (use  if you need to get such a index subset) find out if the dependencies within it use consistent versions of each package. Return all cases where multiple packages depend on different versions of some other package.Each element in the result is a package name along with the packages that depend on it and the versions they require. These are guaranteed to be distinct.Cabal7A rough approximation of GHC's module finder, takes a  and turns it into a map from module names to their source packages. It's used to initialize the  build-deps field in  cabal init.##-Isaac Jones 2003-2005BSD3cabal-devel@haskell.orgportable Safe-Inferred)Cabal3Helper combinator to do parsing plumbing for files.Given a parser and a filename, return the parse of the file, after checking if the file exists.:Argument order is chosen to encourage partial application.CabalCollapse duplicate experimental feature warnings into single warning, with a count of further sitesCabal#File contents to final value parserCabalVerbosity levelCabal File to readCabal#File contents to final value parserCabalVerbosity levelCabal File name.#Isaac Jones, Simon Marlow 2003-2004=BSD3 portions Copyright (c) 2007, Galois Inc.cabal-devel@haskell.orgportable Safe-Inferred84e CabalFirst argument: Is this a **/*.ext pattern? Second argument: should we match against the exact extensions, or accept a suffix? Third argument: the extensions to accept.CabalLiteral file name.Cabal,A single subdirectory component + remainder.Cabal$The glob matched the value supplied.CabalThe glob did not match the value supplied because the cabal-version is too low and the extensions on the file did not precisely match the glob's extensions, but rather the glob was a proper suffix of the file's extensions; i.e., if not for the low cabal-version, it would have matched.CabalThe glob couldn't match because the directory named doesn't exist. The directory will be as it appears in the glob (i.e., relative to the directory passed to 4, and, for 'data-files', relative to 'data-dir').Cabal#Extract the matches from a list of s.Note: throws away the  results; chances are that you want to check for these and error out if any are present.CabalReturns % if the glob didn't match at all, or  the result if the glob matched (or would have matched with a higher cabal-version).Cabal This will  when the glob matches no files, or if the glob refers to a missing directory, or if the glob fails to parse.The Version argument must be the spec version of the package description being processed, as globs behave slightly differently in different spec versions. The first  argument is the directory that the glob is relative to. It must be a valid directory (and hence it can't be the empty string). The returned values will not include this prefix. The second  is the glob itself.CabalLike  but with customizable dieCabal?Match files against a pre-parsed glob, starting in a directory.The Version argument must be the spec version of the package description being processed, as globs behave slightly differently in different spec versions.The  argument is the directory that the glob is relative to. It must be a valid directory (and hence it can't be the empty string). The returned values will not include this prefix.CabalExtract the (possibly null) constant prefix from the pattern. This has the property that, if '(pref, final) = splitConstantPrefix pat, then -pat === foldr GlobStem (GlobFinal final) pref.CabalThe pattern's extensionCabalThe candidate file's extension/Isaac Jones 2003-2004BSD3cabal-devel@haskell.orgportable Safe-Inferred6;G!CabalSome compilers (notably GHC) support profiling and can instrument programs so the system can account costs to different functions. There are different levels of detail that can be used for this accounting. For compilers that do not support this notion or the particular detail levels, this is either ignored or just capped to some similar level they do support.CabalSome compilers support emitting debug info. Some have different levels. For compilers that do not the level is just capped to the level they do support.CabalSome compilers support optimising. Some have different levels. For compilers that do not the level is just capped to the level they do support.CabalWe typically get packages from several databases, and stack them together. This type lets us be explicit about that stacking. For example typical stacks include: [GlobalPackageDB] [GlobalPackageDB, UserPackageDB] [GlobalPackageDB, SpecificPackageDB "package.conf.inplace"]Note that the  is invariably at the bottom since it contains the rts, base and other special compiler-specific packages.We are not restricted to using just the above combinations. In particular we can use several custom package dbs and the user package db together.>When it comes to writing, the top most (last) package is used.CabalSome compilers have a notion of a database of available packages. For some there is just one global db of packages, other compilers support a per-user or an arbitrary db specified at some location in the file system. This can be used to build isolated environments of packages, for example to build a collection of related packages without installing them globally.CabalCompiler flavour and version.CabalTag for distinguishing incompatible ABI's on the same architecture/os.CabalOther implementations that this compiler claims to be compatible with.CabalSupported language standards.CabalSupported extensions.Cabal?A key-value map for properties not covered by the above fields.CabalIs this compiler compatible with the compiler flavour we're interested in?For example this checks if the compiler is actually GHC or is another compiler that claims to be compatible with some version of GHC, e.g. GHCJS. 6if compilerCompatFlavor GHC compiler then ... else ...CabalIs this compiler compatible with the compiler flavour we're interested in, and if so what version does it claim to be compatible with.For example this checks if the compiler is actually GHC-7.x or is another compiler that claims to be compatible with some GHC-7.x version. case compilerCompatVersion GHC compiler of Just (Version (7:_)) -> ... _ -> ...CabalReturn the package that we should register into. This is the package db at the top of the stack.CabalMake package paths absoluteCabalFor the given compiler, return the extensions it does not support.CabalFor the given compiler, return the flags for the supported extensions.CabalLooks up the flag for a given extension, for a given compiler. Ignores the subtlety of extensions which lack associated flags.CabalLooks up the flag for a given extension, for a given compiler. However, the extension may be valid for the compiler but not have a flag. For example, NondecreasingIndentation is enabled by default on GHC 7.0.4, hence it is considered a supported extension but not an accepted flag.The outer layer of Maybe indicates whether the extensions is supported, while the inner layer indicates whether it has a flag. When building strings, it is often more convenient to use  , which ignores the difference.Cabal0Does this compiler support parallel --make mode?Cabal.Does this compiler support reexported-modules?Cabal>Does this compiler support thinning/renaming on package flags?Cabal:Does this compiler have unified IPIDs (so no package keys)Cabal(Does this compiler support package keys?Cabal$Does this compiler support unit IDs?Cabal$Does this compiler support Backpack?CabalDoes this compiler support a package database entry with: "dynamic-library-dirs"?CabalDoes this compiler's "ar" command supports response file arguments (i.e. @file-style arguments).CabalDoes this compiler's "ar" command support llvm-ar's -L flag, which compels the archiver to add an input archive's members rather than adding the archive itself.Cabal4Does this compiler support Haskell program coverage?Cabal%Does this compiler support profiling?CabalDoes this compiler support a package database entry with: "visibility"?Cabal&Utility function for GHC only features?0Duncan Coutts 2009, 2013cabal-devel@haskell.orgportable Safe-Inferred"SCabal+Additional variations in the behaviour for .Cabal7Allows re-registering / overwriting an existing packageCabalInsist on the ability to register multiple instances of a single version of a single package. This will fail if the hc-pkg does not support it, see  and .CabalRequire that no checks are performed on the existence of package files mentioned in the registration info. This must be used if registering prior to putting the files in their final place. This will fail if the hc-pkg does not support it, see .Cabal6Information about the features and capabilities of an hc-pkg program.Cabalno package DB stack supportedCabal'hc-pkg does not support verbosity flagsCabal-use package-conf option instead of package-dbCabal*supports directory style package databasesCabal*requires directory style package databasesCabal%supports --enable-multi-instance flagCabal#supports multi-instance via recacheCabal$supports --force-files or equivalentCabalCall hc-pkg9 to initialise a package database at the location {path}. hc-pkg init {path}CabalRun hc-pkg using a given package DB stack, directly forwarding the provided command-line arguments to it.Cabal Defaults are True, False and FalseCabalCall hc-pkg to register a package. hc-pkg register {filename | -} [--user | --global | --package-db]CabalCall hc-pkg to unregister a package = 7.6 uses the '-package-db' flag. See  0https://gitlab.haskell.org/ghc/ghc/-/issues/5977.3)Isaac Jones 2006, Duncan Coutts 2007-2009cabal-devel@haskell.orgportable Safe-Inferredr CabalThe default list of programs. These programs are typically used internally to Cabal.4)Isaac Jones 2006, Duncan Coutts 2007-2009cabal-devel@haskell.orgportable Safe-Inferred6BCabalThe configuration is a collection of information about programs. It contains information both about configured programs and also about programs that we are yet to configure.The idea is that we start from a collection of unconfigured programs and one by one we try to configure them at which point we move them into the configured collection. For unconfigured programs we record not just the  but also any user-provided arguments and location for the program.CabalThe / and 1 instances do not preserve all the unconfigured Programs because  is not in / because it contains functions. So to fully restore a deserialised . use this function to add back all the known s.It does not add the default programs, but you probably want them, use ) in addition to any extra you might need.Cabal/Add a known program that we may configure laterCabalGet the current  used by the . This is the default list of locations where programs are looked for when configuring them. This can be overridden for specific programs (with ), and specific known programs can modify or ignore this search path in their own configuration code.CabalChange the current  used by the . This will affect programs that are configured from here on, so you should usually set it before configuring any programs.CabalModify the current  used by the . This will affect programs that are configured from here on, so you should usually modify it before configuring any programs.CabalUser-specify this path. Basically override any path information for this program in the configuration. If it's not a known program ignore it.CabalUser-specify the arguments for this program. Basically override any args information for this program in the configuration. If it's not a known program, ignore it..CabalLike ) but for a list of progs and their paths.CabalLike ( but for a list of progs and their args.CabalGet the path that has been previously specified for a program, if any.CabalGet any extra args that have been previously specified for a program.Cabal Try to find a configured programCabal,Update a configured program in the database.CabalList all configured programs.CabalTry to configure a specific program. If the program is already included in the collection of unconfigured programs then we use any user-supplied location and arguments. If the program gets configured successfully it gets added to the configured collection.Note that it is not a failure if the program cannot be configured. It's only a failure if the user supplied a location and the program could not be found at that location.The reason for it not being a failure at this stage is that we don't know up front all the programs we will need, so we try to configure them all. To verify that a program was actually successfully configured use .Cabal$Configure a bunch of programs using  . Just a .CabalUnconfigure a program. This is basically a hack and you shouldn't use it, but it can be handy for making sure a  actually reconfigures.CabalTry to configure all the known programs that have not yet been configured.Cabalreconfigure a bunch of programs given new user-specified args. It takes the same inputs as  and - and for all progs with a new path it calls .Cabal;Check that a program is configured and available to be run.It raises an exception if the program could not be configured, otherwise it returns the configured program.Cabal;Check that a program is configured and available to be run. It returns 9 if the program couldn't be configured, or is not found.Cabal;Check that a program is configured and available to be run.Additionally check that the program version number is suitable and return it. For example you could require  AnyVersion or  (, [1,0] [])It returns the configured program, its version number and a possibly updated . If the program could not be configured or the version is unsuitable, it returns an error value.CabalLike , but raises an exception in case of error instead of returning 'Left errMsg'.Cabal4Note that this instance does not preserve the known s. See  for details.Cabal4Note that this instance does not preserve the known s. See  for details.Cabal4Note that this instance does not preserve the known s. See  for details.Cabal Program nameCabal"user-specified path to the programCabal Program nameCabaluser-specified args5)Isaac Jones 2006, Duncan Coutts 2007-2009cabal-devel@haskell.orgportable Safe-InferredCabal"Runs the given configured program.Cabal6Runs the given configured program and gets the output.Cabal?Looks up the given program in the program database and runs it.Cabal?Looks up the given program in the program database and runs it.Cabal VerbosityCabalThe program to runCabalAny extra arguments to addCabal VerbosityCabalThe program to runCabalAny extra arguments to addCabal verbosityCabalThe program to runCaballook up the program hereCabalAny extra arguments to addCabal verbosityCabalThe program to runCaballook up the program hereCabalAny extra arguments to add6cabal-devel@haskell.orgportable Safe-Inferred7Duncan Coutts 2007BSD3cabal-devel@haskell.org(non-portable (ExistentialQuantification) Safe-InferredCabalwraps a  CommandUI/ together with a function that turns it into a Command. By hiding the type of flags for the UI allows construction of a list of all UIs at the top level of the program. That list can then be used for generation of manual page as well as for executing the selected command.Cabal(Common flags that apply to every commandCabal Long command line option stringsCabal!Short command line option stringsCabalAn OptionField takes one or more OptDescrs, describing the command line interface for the field.CabalWe usually have a data type for storing configuration values, where every field stores a configuration option, and the user sets the value either via command line flags or a configuration file. An individual OptionField models such a field, and we usually build a list of options associated to a configuration data type.CabalThe name of the command as it would be entered on the command line. For example "build".CabalA short, one line description of the command to use in help texts.CabalA function that maps a program name to a usage summary for this command.Cabal;Additional explanation of the command to use in help texts.Cabal+Post-Usage notes and examples in help textsCabalInitial / empty flagsCabal&All the Option fields for this command CabalCreate an option taking a single OptDescr. No explicit Name is given for the Option, the name is the first LFlag given. Example:   sf lf d get set * sf": Short option name, for example: ['d']. No hyphen permitted. * lf!: Long option name, for example:  ["debug"]. No hyphens permitted. * d: Description of the option, shown to the user in help messages. * get(: Get the current value of the flag. * set: Set the value of the flag. Gets the current value of the flag as a parameter. CabalCreate an option taking several OptDescrs. You will have to give the flags and description individually to the OptDescr constructor. CabalCreate a string-valued command line interface. Usually called in the context of   or  . Example:   ad mkflag showflagad&: Placeholder shown to the user, e.g. FILES+ if files are expected parameters.mkflag,: How to parse the argument into the option.showflag: If parsing goes wrong, display a useful error message to the user. CabalCreate a string-valued command line interface with a default value. Cabal!(String -> a) variant of "reqArg" Cabal!(String -> a) variant of "optArg" Cabalcreate a Choice option Cabalcreate a Choice option out of an enumeration type. As long flags, the Show output is used. As short flags, the first character which does not conflict with a previous one is used. Cabal Cabal:Show flags in the standard long option command line formatCabalThe help text for this command with descriptions of all the options. Cabal0Default "usage" documentation text for commands. CabalCreate "usage" documentation from a list of parameter configurations. CabalMake a Command from standard GetOpt options. Cabal'Parse a bunch of command line arguments CabalMark command as hidden. Hidden commands don't show up in the 'progname help' or 'progname --help' output. CabalUtility function, many commands do not accept additional flags. This action fails with a helpful error message if the user supplies any extra. Cabal6Helper function for creating globalCommand description CabalMkOptDescr constructors partially applied to flags and description. CabalnameCabalsynopsisCabalusage alternativesCabalinitial/empty flagsCabaloptions Cabal&Is the command a global or subcommand?        88Isaac Jones 2003-2004 Duncan Coutts 2007BSD3cabal-devel@haskell.orgportable Safe-Inferred6; Cabala shortcut option which builds documentation linked to hackage. It implies: * `--html-location=' 7https://hackage.haskell.org/package/$prg-$version/docs' * `--quickjump` * `--gen-index` * `--gen-contents` * `--hyperlinked-source` Cabala shortcut option which builds self contained directory which contains all the documentation, it implies: * `--quickjump` * `--gen-index` * `--gen-contents` * `--hyperlinked-source`-And it will also pass `--base-url` option to haddock. Cabaloutput directory of combined haddocks, the default is './haddocks' CabalhaddocksInterfaces is inferred by the haddocksAction%; currently not exposed to the user. CabalGoverns whether modules from a given interface should be visible or hidden in the Haddock generated content page. We don't expose this functionality to the user, but simply use   for only local packages. Visibility of modules is available since haddock-2.26.1. Cabal9When we build haddock documentation, there are two cases: We build haddocks only for the current development version, intended for local use and not for distribution. In this case, we store the generated documentation in  distdochtml/ packagename.We build haddocks for intended for uploading them to hackage. In this case, we need to follow the layout that hackage expects from documentation tarballs, and we might also want to use different flags than for development builds, so in this case we store the generated documentation in  distdochtml/ packageid-docs. Cabal Flags to register and  unregister2: (user package, gen-script, in-place, verbosity) Cabal Flags to sdist: (snapshot, verbosity) Cabal Flags to install: (package db, verbosity) Cabal Flags to copy6: (destdir, copy-prefix (backwards compat), verbosity) Cabal Flags to  configure command.+IMPORTANT: every time a new flag is added, z{ should be updated. IMPORTANT: every time a new flag is added, it should be added to the Eq instance CabalAll programs that cabal may run Cabaluser specified programs paths Cabaluser specified programs args CabalExtend the $PATH Cabal(The "flavor" of the compiler, e.g. GHC. Cabalgiven compiler location Cabalgiven hc-pkg location CabalEnable vanilla library CabalEnable profiling in the library CabalBuild shared library CabalBuild static library Cabal+Enable dynamic linking of the executables. Cabal0Enable fully static linking of the executables. Cabal%Enable profiling in the executables. Cabal1Enable profiling in the library and executables. Cabal8Profiling detail level in the library and executables. Cabal'Profiling detail level in the library CabalExtra arguments to  configure CabalEnable optimization. CabalInstalled executable prefix. CabalInstalled executable suffix. CabalInstallation paths Cabal"path to search for extra libraries Cabalpath to search for extra libraries when linking fully static executables Cabal0path to search for extra frameworks (OS X only) Cabalpath to search for header files Cabalexplicit IPID to be used Cabalexplicit CID to be used Cabalbe as deterministic as possible (e.g., invariant over GHC, database, etc). Used by the test suite Cabal "dist" prefix CabalCabal file to use Cabalverbosity level CabalThe --user/--global flag CabalWhich package DBs to use Cabal!Enable compiling library for GHCi CabalEnable -split-sections with GHC CabalEnable -split-objs with GHC CabalEnable executable stripping CabalEnable library stripping Cabal)Additional constraints for dependencies. CabalThe packages depended on. CabalThe requested Backpack instantiation. If empty, either this package does not use Backpack, or we just want to typecheck the indefinite package. CabalEnable test suite compilation CabalEnable benchmark compilation CabalEnable program coverage Cabal$Enable program coverage (deprecated) CabalAll direct dependencies and flags are provided on the command line by the user via the '--dependency' and '--flags' options. CabalHalt and show an error message indicating an error in flag assignment Cabal Enable relocatable package built CabalEmit debug info. CabalShould we dump available build information on build? Dump build information to disk before attempting to build, tooling can parse these files and use them to compile the source files themselves. CabalWhether to use response files at all. They're used for such tools as haddock, or ld. CabalAllow depending on private sublibraries. This is used by external tools (like cabal-install) so they can add multiple-public-libraries compatibility to older ghcs by checking visibility externally. Cabal:Flags that apply at the top level, not to any sub-command. CabalMore convenient version of  . Results in an # if internal invariant is violated.Cabal Inverse to .Cabal5Pretty-print a single entry of a module substitution. CabalParse a PackageDB stack entry CabalShow a PackageDB stack entryCabalHelp text for test and bench commands.CabalFor each known program PROG in progDb , produce a  with-PROG . CabalLike *, but allows to customise the option name.CabalFor each known program PROG in progDb , produce a  PROG-option . CabalFor each known program PROG in progDb , produce a  PROG-options . CabalArguments to pass to a  configure script, e.g. generated by autoconf. CabalHelper function to split a string into a list of arguments. It's supposed to handle quoted things sensibly, eg: splitArgs "--foo=\"C:/Program Files/Bar/" --baz" = ["--foo=C:/Program Files/Bar", "--baz"] splitArgs "\"-DMSGSTR=\\\"foo bar\\\"\" --baz" = ["-DMSGSTR=\"foo bar\"","--baz"]CabalEither "test" or  "benchmark".Cabal Help text.     9 Safe-Inferred6;1 Cabal1Data cached after configuration step. See also  . CabalOptions passed to the configuration step. Needed to re-run configuration when .cabal is out of date Cabal9The final set of flags which were picked for this package Cabal;What components were enabled during configuration, and why. CabalExtra args on the command line for the configuration step. Needed to re-run configuration when .cabal is out of date CabalThe installation directories for the various different kinds of files TODO: inplaceDirTemplates :: InstallDirs FilePath Cabal The compiler we're building with CabalThe platform we're building for CabalWhere to build the package. Cabal6Path to the cabal file, if given during configuration. CabalAll the components to build, ordered by topological sort, and with their INTERNAL dependencies over the intrapackage dependency graph. TODO: this is assumed to be short; otherwise we want some sort of ordered map. CabalA map from component name to all matching components. These coincide with  CabalAll the info about the installed packages that the current package depends on (directly or indirectly). The copy saved on disk does NOT include internal dependencies (because we just don't have enough information at this point to have an InstalledPackageInfo for an internal dep), but we will often update it with the internal dependencies; see for example X|<. (This admonition doesn't apply for per-component builds.) Cabal5the filename containing the .cabal file, if available CabalWARNING WARNING WARNING Be VERY careful about using this function; we haven't deprecated it but using it could introduce subtle bugs related to .In principle, this is supposed to contain the resolved package description, that does not contain any conditionals. However, it MAY NOT contain the description with a  applied to it; see  for the whole sordid saga. As much as possible, Cabal library should avoid using this parameter. Cabal"Location and args for all programs Cabal)What package database to use, global/user CabalWhether to build normal libs. Cabal,Whether to build profiling versions of libs. Cabal)Whether to build shared versions of libs. CabalWhether to build static versions of libs (with all other libs rolled in) Cabal'Whether to link executables dynamically Cabal,Whether to link executables fully statically Cabal+Whether to build executables for profiling. Cabal"Level of automatic profile detail. Cabal"Level of automatic profile detail. Cabal2Whether to build with optimization (if available). Cabal*Whether to emit debug info (if available). Cabal1Whether to build libs suitable for use with GHCi. Cabal*Use -split-sections with GHC, if available Cabal&Use -split-objs with GHC, if available Cabal+Whether to strip executables during install Cabal)Whether to strip libraries during install Cabal-Whether to enable executable program coverage Cabal*Whether to enable library program coverage Cabal/Prefix to be prepended to installed executables Cabal.Suffix to be appended to installed executables Cabal Extract the ) from the public library component of a   if it exists, or make a fake component ID based on the package ID. Cabal Extract the  of a  . This is a "safe" use of  Cabal Extract the " from the library component of a  ? if it exists, or make a fake unit ID based on the package ID. CabalExtract the compatibility package key from the public library component of a   if it exists, or make a fake package key based on the package ID.Cabal+Convenience function to generate a default  from a 0. The idea is to call this once, and then use * everywhere else. Private to this module. Cabal Return all s associated with '. In the presence of Backpack there may be more than one! Has a prime because it takes a # argument which may disagree with   in  . Cabal Return all s associated with ':. In the presence of Backpack there may be more than one! CabalReturn the list of default s associated with a configured package, in the order they need to be built. Has a prime because it takes a # argument which may disagree with   in  . CabalExecute f for every  in the package, respecting the build dependency order. (TODO: We should use Shake!) Has a prime because it takes a # argument which may disagree with   in  . Cabal3Return the list of all targets needed to build the uids, in the order they need to be built. Has a prime because it takes a # argument which may disagree with   in  . CabalExecute f for every  needed to build uids, respecting the build dependency order. Has a prime because it takes a # argument which may disagree with   in  . CabalIs coverage enabled for test suites? In practice, this requires library and executable profiling to be enabled.9 9 Isaac Jones 2003-2004BSD3cabal-devel@haskell.orgportable Safe-Inferred;ؗ Cabal#Perform the action on each enabled & in the package description with the . Cabal#Perform the action on each enabled 3 in the package description. Extended version of + that also gives corresponding build info. Cabal#Perform the action on each enabled  in the package description. Cabal%Perform the action on each buildable  or  (Component) in the PackageDescription, subject to the build order specified by the compBuildOrder field of the given  CabalDetermine the directories containing the dynamic libraries of the transitive dependencies of the component we are building.When wanted, and possible, returns paths relative to the installDirs  CabalGet all module names that needed to be built by GHC; i.e., all of these s have interface files associated with them that need to be installed. CabalBackwards compatibility function which computes the InstallDirs assuming that $libname points to the public library (or some fake package identifier if there is no public library.) IF AT ALL POSSIBLE, please use   instead. CabalSee . CabalBackwards compatibility function which computes the InstallDirs assuming that $libname points to the public library (or some fake package identifier if there is no public library.) IF AT ALL POSSIBLE, please use   instead. CabalSee  CabalBuilding for inplace?Cabal&Generate prefix-relative library pathsCabalComponent that is being built  '&%$#"!(+*)   '&%$#"!$#"!+*)(    :Thomas Tuegel 2011BSD3cabal-devel@haskell.orgportable Safe-Inferred# Cabal?Path to the .tix file containing a test suite's sum statistics. CabalAttempt to guess the way the test suites in this package were compiled and linked with the library so the correct module interfaces are found. Cabal*Generate the HTML markup for a test suite. Cabal Safe-Inferred Cabal/Logs test suite results, itemized by test case. CabalLogs all test results for a package, broken down first by test suite and then by test case. CabalA  1 with package and platform information specified. CabalThe directory where we put build results for a foreign libraryCabalCreate a library name for a static library from a given name. Prepends lib+ and appends the static library extension (.a).CabalCreate a library name for a shared library from a given name. Prepends lib and appends the #-* as well as the shared library extension.CabalCreate a library name for a bundled shared library from a given name. This matches the naming convention for shared libraries as implemented in GHC's packageHsLibs function in the Packages module. If the given name is prefixed with HS, then this prepends lib and appends the compiler flavour/version and shared library extension e.g.: "HSrts-1.0" -> "libHSrts-1.0-ghc8.7.20190109.so" Otherwise the given name should be prefixed with C, then this strips the C , prepends lib5 and appends the shared library extension e.g.: Cffi -> "libffi.so"CabalDefault extension for executable files on the current platform. (typically "" on Unix and "exe" on Windows or OS/2)Cabal5Extension for object files. For GHC the extension is "o".CabalExtension for dynamically linked (or shared) libraries (typically "so" on Unix and "dll" on Windows)CabalExtension for static librariesTODO: Here, as well as in dllExtension, it's really the target OS that we're interested in, not the build OS.   FAndres Loeh 2009BSD3cabal-devel@haskell.orgportable Safe-InferredCabal'The flags for the supported extensions.CabalHack to add version numbers to UHC-built-in packages. This should sooner or later be fixed on the UHC side.Cabal*Name of the installed package config file.CabalCheck if a certain dir contains a valid package. Currently, we are looking only for the presence of an installed package configuration. TODO: Actually make use of the information provided in the file.Cabal4Create a trivial package info from a directory name.G Safe-InferredKCabalinstall locationCabal&install location for dynamic librariesCabalBuild location  Isaac Jones 2003-2007cabal-devel@haskell.orgportable Safe-Inferred&TCabal'The kinds of entries we can stick in a .ghc.environment file.Cabal  -- a commentCabal package-id foo-1.0-4fe301a...Cabalglobal-package-db, user-package-db or package-db blahpackage.conf.dCabal clear-package-dbCabal/Adjust the way we find and configure gcc and ldCabal.Strip out flags that are not supported in ghciCabal&GHC's rendering of its host or target  as used in its platform strings and certain file locations (such as user package db location).Cabal&GHC's rendering of its host or target  as used in its platform strings and certain file locations (such as user package db location).CabalGHC's rendering of its platform and compiler version string as used in certain file locations (such as user package db location). For example x86_64-linux-7.10.4Cabal3Make entries for a GHC environment file based on a $ and a bunch of package (unit) ids.If you need to do anything more complicated then either use this as a basis and add more entries, or just make all the entries directly.CabalWrite a .ghc.environment-$arch-$os-$ver file in the given directory.The  and GHC ,% are needed as part of the file name.%Returns the name of the file written.CabalThe .ghc.environment-$arch-$os-$ver file nameCabal.Render a bunch of GHC environment file entriesCabal/Render an individual GHC environment file entryCabaldirectory in which to put itCabalthe GHC target platformCabalthe GHC versionCabal the content! Safe-Inferred%&6&1 Safe-Inferred9+CabalA collection of: * C input files * C++ input files * GHC input files * GHC input modules)Used to correctly build and link sources.CabalBuilding an executable, starting the REPL, and building foreign libraries are all very similar and implemented in . The 6 distinguishes between the various kinds of operation.Cabal9Given a single package DB, return all installed packages.Cabal8Given a package DB stack, return all installed packages.Cabal Return the $ to the global GHC package database.Cabal Return the & to the per-user GHC package database.Cabal:Get the packages from specific PackageDBs, not cumulative.Cabal.Start a REPL without loading any source files.CabalBuild a foreign libraryCabalBuild an executable with GHC.Cabal8Target name for a foreign library (the actual file name)We do not use mkLibName and co here because the naming for foreign libraries is slightly different (we don't use "_p" or compiler version suffices, and we don't want the "lib" prefix on Windows).TODO: We do use  and co here, but really that's wrong: they use the OS used to build cabal to determine which extension to use, rather than the target OS (but this is wrong elsewhere in Cabal as well).Cabal#Name for the library when building.If the `lib-version-info` field or the `lib-version-linux` field of a foreign library target is set, we need to incorporate that version into the SONAME field.If a foreign library foo has lib-version-info 5:1:2, it should be built as libfoo.so.3.2.1. We want it to get soname libfoo.so.3. However, GHC does not allow overriding soname by setting linker options, as it sets a soname of its own (namely the output filename), after the user-supplied linker options. Hence, we have to compile the library with the soname as its filename. We rename the compiled binary afterwards.This method allows to adjust the name of the library at build time such that the correct soname can be set.CabalMain module name when overridden by ghc-options: -main-is ... or  if no -main-is flag could be found. In case of ,  can be assumed.CabalDecode argument to '-main-is'Returns ( if argument set only the function name.This code has been stolen/refactored from GHC's DynFlags.setMainIs function. The logic here is deliberately imperfect as it is intended to be bug-compatible with GHC's parser. See discussion in  https://github.com/haskell/cabal/pull/4539#discussion_r118981753.CabalLocate and return the  required to build and link.Cabal-FilePath has a Haskell extension: .hs or .lhsCabal(Generic build function. See comment for .Cabal Do we need the RPATH workaround?See Note [RPATH].Cabal7Extract (and compute) information about the RTS library!TODO: This hardcodes the name as  HSrts-ghc version. I don't know if we can find this information somewhere. We can lookup the  hsLibraries field of  but it will tell us [HSrts, Cffi], which doesn't really help.CabalReturns True if the modification date of the given source file is newer than the object file we last compiled for it, or if no object file exists yet.Cabal3Finds the object file name of the given source fileCabal7Calculate the RPATHs for the component we are building. Calculates relative RPATHs when   is set.CabalRemove the "-threaded" flag when building a foreign library, as it has no effect when used with "-shared". Returns the updated , along with whether or not the flag was present, so we can use it to link against the appropriate RTS on our own.CabalExtracts a String representing a hash of the ABI of a built library. It can fail if the library has not yet been built.CabalInstall executables for GHCJS.Cabal Install foreign library for GHC.Cabal6Install for ghc, .hi, .a and, if --with-ghci given, .oCabalGet the JavaScript file name and command and arguments to run a program compiled by GHCJS the exe should be the base program name without exe extensionCabalComponent we are buildingCabalWhere to copy the files toCabalBuild locationCabalExecutable (prefix,suffix)Cabalinstall locationCabalBuild locationCabalinstall locationCabal&install location for dynamic librariesCabalBuild location55HIsaac Jones 2003-2007BSD3cabal-devel@haskell.orgportable Safe-InferredQ!CabalA collection of: * C input files * C++ input files * GHC input files * GHC input modules)Used to correctly build and link sources.CabalBuilding an executable, starting the REPL, and building foreign libraries are all very similar and implemented in . The 6 distinguishes between the various kinds of operation.CabalGiven something like usrlocalbinghc-6.6.1(.exe) we try and find the corresponding tool; e.g. if the tool is ghc-pkg, we try looking for a versioned or unversioned ghc-pkg in the same dir, that is: /usr/local/bin/ghc-pkg-ghc-6.6.1(.exe) /usr/local/bin/ghc-pkg-6.6.1(.exe) /usr/local/bin/ghc-pkg(.exe)CabalGiven something like usrlocalbinghc-6.6.1(.exe) we try and find a corresponding ghc-pkg, we try looking for both a versioned and unversioned ghc-pkg in the same dir, that is: /usr/local/bin/ghc-pkg-ghc-6.6.1(.exe) /usr/local/bin/ghc-pkg-6.6.1(.exe) /usr/local/bin/ghc-pkg(.exe)CabalGiven something like usrlocalbinghc-6.6.1(.exe) we try and find a corresponding hsc2hs, we try looking for both a versioned and unversioned hsc2hs in the same dir, that is: /usr/local/bin/hsc2hs-ghc-6.6.1(.exe) /usr/local/bin/hsc2hs-6.6.1(.exe) /usr/local/bin/hsc2hs(.exe)CabalGiven something like usrlocalbinghc-6.6.1(.exe) we try and find a corresponding haddock, we try looking for both a versioned and unversioned haddock in the same dir, that is: /usr/local/bin/haddock-ghc-6.6.1(.exe) /usr/local/bin/haddock-6.6.1(.exe) /usr/local/bin/haddock(.exe)Cabal9Given a single package DB, return all installed packages.Cabal8Given a package DB stack, return all installed packages.CabalGiven a list of !(PackageDB, InstalledPackageInfo) pairs, produce a  PackageIndex. Helper function used by  and .Cabal Return the ' to the GHC application data directory.Cabal Return the $ to the global GHC package database.Cabal Return the & to the per-user GHC package database.Cabal:Get the packages from specific PackageDBs, not cumulative.Cabal.Start a REPL without loading any source files.CabalBuild a foreign libraryCabalBuild an executable with GHC.Cabal8Target name for a foreign library (the actual file name)We do not use mkLibName and co here because the naming for foreign libraries is slightly different (we don't use "_p" or compiler version suffices, and we don't want the "lib" prefix on Windows).TODO: We do use  and co here, but really that's wrong: they use the OS used to build cabal to determine which extension to use, rather than the target OS (but this is wrong elsewhere in Cabal as well).Cabal#Name for the library when building.If the `lib-version-info` field or the `lib-version-linux` field of a foreign library target is set, we need to incorporate that version into the SONAME field.If a foreign library foo has lib-version-info 5:1:2, it should be built as libfoo.so.3.2.1. We want it to get soname libfoo.so.3. However, GHC does not allow overriding soname by setting linker options, as it sets a soname of its own (namely the output filename), after the user-supplied linker options. Hence, we have to compile the library with the soname as its filename. We rename the compiled binary afterwards.This method allows to adjust the name of the library at build time such that the correct soname can be set.CabalMain module name when overridden by ghc-options: -main-is ... or  if no -main-is flag could be found. In case of ,  can be assumed.CabalDecode argument to '-main-is'Returns ( if argument set only the function name.This code has been stolen/refactored from GHC's DynFlags.setMainIs function. The logic here is deliberately imperfect as it is intended to be bug-compatible with GHC's parser. See discussion in  https://github.com/haskell/cabal/pull/4539#discussion_r118981753.CabalLocate and return the  required to build and link.Cabal-FilePath has a Haskell extension: .hs or .lhsCabal(Generic build function. See comment for .Cabal Do we need the RPATH workaround?See Note [RPATH].Cabal7Extract (and compute) information about the RTS library!TODO: This hardcodes the name as  HSrts-ghc version. I don't know if we can find this information somewhere. We can lookup the  hsLibraries field of  but it will tell us [HSrts, Cffi], which doesn't really help.CabalReturns True if the modification date of the given source file is newer than the object file we last compiled for it, or if no object file exists yet.Cabal3Finds the object file name of the given source fileCabal7Calculate the RPATHs for the component we are building. Calculates relative RPATHs when   is set.CabalDetermine whether the given  is intended to link against the threaded RTS. This is used to determine which RTS to link against when building a foreign library with a GHC without support for  -flink-rts.CabalExtracts a String representing a hash of the ABI of a built library. It can fail if the library has not yet been built.CabalInstall executables for GHC.Cabal Install foreign library for GHC.Cabal6Install for ghc, .hi, .a and, if --with-ghci given, .oCabalComponent we are buildingCabalWhere to copy the files toCabalBuild locationCabalExecutable (prefix,suffix)Cabalinstall locationCabalBuild locationCabalinstall locationCabal&install location for dynamic librariesCabalBuild location55I Safe-Inferred"V`CabalConstruct a JSON document describing the build information for a package.Cabal A variant of  if you need to call  and  yourself.If you change the format or any name in the output json, don't forget to update the schema at (/doc/json-schemas/build-info.schema.json and the docs of --enable-build-info/--disable-build-info.CabalGet the command-line arguments that would be passed to the compiler to build the given component.Cabal#The source directory of the packageCabal'Mostly information from the .cabal fileCabalConfiguration informationCabal#Flags that the user passed to buildCabalCompiler information. Needs to be passed explicitly, as we can't extract that information here without some partial function.Cabal=Json representation of buildinfo alongside generated warningsCabalThe  from CabalThe  from JIsaac Jones 2003-2004BSD3cabal-devel@haskell.orgportable Safe-InferredYCabal Perform the "./setup install" and " ./setup copy" actions. Move files into place based on the prefix argument.2This does NOT register libraries, you should call register to do that.CabalCopy package global files.Cabal'Copy files associated with a component.Cabal&Install the files listed in data-filesCabal:Install the files listed in install-includes for a libraryCabal information from the .cabal fileCabal#information from the configure stepCabalflags sent to copy or installKIsaac Jones 2003-2005, Ross Paterson 2006, Duncan Coutts 2007-2008cabal-devel@haskell.orgportable Safe-Inferred[@CabalGenerates the name of the environment variable controlling the path component of interest.Note: The format of these strings is part of Cabal's public API; changing this function constitutes a *backwards-compatibility* break.Cabalpath component; one of "bindir", "libdir", -- "datadir", "libexecdir", or "sysconfdir"Cabalenvironment variable nameL Safe-Inferred`Cabal:The name of the stub executable associated with a library  TestSuite.CabalThe filename of the source file for the stub executable associated with a library  TestSuite.Cabal$Write the source file for a library  TestSuite stub executable.Cabal2Source code for library test suite stub executableCabalMain function for test stubs. Once, it was written directly into the stub, but minimizing the amount of code actually in the stub maximizes the number of detectable errors when Cabal is compiled.Cabal The test runner used in library  TestSuite$ stub executables. Runs a list of s. An executable calling this function is meant to be invoked as the child of a Cabal process during  ./setup test. A  , provided by Cabal, is read from the standard input; it supplies the name of the test suite and the location of the machine-readable test suite log file. Human-readable log information is written to the standard output for capture by the calling Cabal process.CabalFrom a test stub, write the  : to temporary file for the calling Cabal process to read.Caballibrary  TestSuite# for which a stub is being createdCabal6path to directory where stub source should be locatedM Safe-Inferred`NLennart Kolmodin 2008BSD3cabal-devel@haskell.orgportable Safe-Inferred|%CabalA record of operations needed to check the contents of packages. Used by .Cabal-Results of some kind of failed package check.There are a range of severities, from merely dubious to totally insane. All of them come with a human readable explanation. In future we may augment them with more machine readable explanations, for example to help an IDE suggest automatic corrections.CabalThis package description is no good. There's no way it's going to build sensibly. This should give an error at configure time.CabalA problem that is likely to affect building the package, or an issue that we'd like every package author to be aware of, even if the package is never distributed.CabalAn issue that might not be a problem for the package author but might be annoying or detrimental when the package is distributed to users. We should encourage distributed packages to be free from these issues, but occasionally there are justifiable reasons so we cannot ban them entirely.CabalLike PackageDistSuspicious but will only display warnings rather than causing abnormal exit when you run 'cabal check'.CabalAn issue that is OK in the author's environment but is almost certain to be a portability problem for other environments. We can quite legitimately refuse to publicly distribute packages with these problems.CabalExplanations of 's errors/warnings.CabalWhich field does  refer to?CabalWhich stanza does  refer to?CabalPretty printing .CabalPretty printing .CabalWraps  into .CabalPretty printing .CabalPretty printing .Cabal?Check for common mistakes and problems in package descriptions.This is the standard collection of checks covering all aspects except for checks that require looking at files within the package. For those see .It requires the  and optionally a particular configuration of that package. If you pass  then we just check a version of the generic description using .Cabal,Check that this package description is sane.CabalChecks GHC options from all ghc-*-options fields in the given PackageDescription and reports commonly misused or non-portable flagsCabalExtracts GHC options belonging to the given field from the given PackageDescription using given function and checks them for commonly misused or non-portable flagsCabal3Check that the package declares the version in the "cabal-version" field correctly.CabalCheck the build-depends fields for any weirdness or bad practice.Cabalcabal-version <2.2 + Paths_module + default-extensions: doesn't build.Cabalcabal-version <2.2 + PackageInfo_module + default-extensions: doesn't build.Cabalcabal-version <2.2 + *_module + default-extensions: doesn't build.CabalChecks GHC options from all ghc-*-options fields from the given BuildInfo and reports flags that are OK during development process, but are unacceptable in a distributed packageCabalChecks the given list of flags belonging to the given field and reports flags that are OK during development process, but are unacceptable in a distributed packageCabalSanity check things that requires IO. It looks at the files in the package and expects to find the package unpacked in at the given file path.CabalSanity check things that requires looking at files in the package. This is a generalised version of 7 that can work in any monad for which you can provide  operations.The point of this extra generality is to allow doing checks in some virtual file system, for example a tarball in memory.CabalFind a package description file in the given directory. Looks for .cabal files. Like , but generalized over monads.CabalCheck the names of all files in a package for portability problems. This should be done for example when creating or validating a package tarball.Cabal=Check a file name is valid for the portable POSIX tar format.The POSIX tar format has a restriction on the length of file names. It is unfortunately not a simple restriction like a maximum length. The exact restriction is that either the whole path be 100 characters or less, or it be possible to split the path on a directory separator such that the first part is 155 characters or less and the second part 100 characters or less.Cabal Similar to ,  inspects the files included in the package, but is primarily looking for files in the working tree that may have been missed or other similar problems that can only be detected pre-distribution.Because Hackage necessarily checks the uploaded tarball, it is too late to check these on the server; these checks only make sense in the development and package-creation environment. Hence we can use IO, rather than needing to pass a  dictionary around.Cabal/Discover problems with the package's wildcards.CabalCheck that setup dependencies, have proper bounds. In particular, base and Cabal upper bounds are mandatory.CabalWhether a path is a good relative path. We aren't worried about perfect cross-platform compatibility here; this function just checks the paths in the (local) .cabal0 file, while only Hackage needs the portability.let test fp = putStrLn $ show (isGoodRelativeDirectoryPath fp) ++ "; " ++ show (isGoodRelativeFilePath fp)4Note that "foo./bar.hs" would be invalid on Windows.7traverse_ test ["foo/bar/quu", "a/b.hs", "foo./bar.hs"]Nothing; NothingNothing; NothingNothing; NothingTrailing slash is not allowed for files, for directories it is ok. test "foo/"Nothing; Just "trailing slash"Leading ./ is fine, but . and ./ are not valid files.'traverse_ test [".", "./", "./foo/bar"]$Nothing; Just "trailing dot segment"Nothing; Just "trailing slash"Nothing; Nothing*Lastly, not good file nor directory cases:traverse_ test ["", "/tmp/src", "foo//bar", "foo/.", "foo/./bar", "foo/../bar"]$Just "empty path"; Just "empty path"6Just "posix absolute path"; Just "posix absolute path"4Just "empty path segment"; Just "empty path segment"Just "trailing same directory segment: ."; Just "trailing same directory segment: ."Just "same directory segment: ."; Just "same directory segment: ."Just "parent directory segment: .."; Just "parent directory segment: .."For the last case,  doesn't warn:5traverse_ (print . isGoodRelativeGlob) ["foo/../bar"]#Just "parent directory segment: .."CabalSee .This is barebones function. We check whether the glob is a valid file by replacing stars * with xses.CabalSee .Cabal pkgname.cabalMartin Sjögren 2004BSD3cabal-devel@haskell.orgportable Safe-Inferredn,,O Safe-Inferred6;CabalAn opaque type representing a file's modification time, represented internally as a 64-bit unsigned integer in the Windows UTC format.CabalReturn modification time of the given file. Works around the low clock resolution problem that  has on GHC < 7.8.This is a modified version of the code originally written for Shake by Neil Mitchell. See module Development.Shake.FileInfo.Cabal!Convert POSIX seconds to ModTime.CabalConvert  to .Cabal!Return age of given file in days.CabalReturn the current time as .Cabal7Based on code written by Neil Mitchell for Shake. See sleepFileTimeCalibrate in . Returns a pair of microsecond values: first, the maximum delay seen, and the recommended delay to use before testing for file modification change. The returned delay is never smaller than 10 ms, but never larger than 1 second. Safe-InferredCabalA state monad for doing instantiations (can't use actual State because that would be an extra dependency.)Cabal The state of ; a mapping from  s to their ready component, or Nothing if its an external component which we don't know how to build.CabalAn > is a library with requirements which we will typecheck only.Cabal The requirements of the library.Cabal0The modules exported/reexported by this library.CabalThe dependencies which need to be passed to the compiler to bring modules into scope. These are > because these may refer to partially instantiated libraries.CabalAn  is a library which is fully instantiated (or, possibly, has no requirements at all.)Cabal"How this library was instantiated.CabalDependencies induced by . These are recorded here because there isn't a convenient way otherwise to get the  we need to fill componentPackageDeps as needed.Cabal0The modules exported/reexported by this library.CabalThe dependencies which need to be passed to the compiler to bring modules into scope. These always refer to installed fully instantiated libraries.CabalA  is one that we can actually generate build products for. We have a ready component for the typecheck-only products of every indefinite package, as well as a ready component for every way these packages can be fully instantiated.CabalThe  for this package. At the moment, this is used in only one case, which is to determine if an export is of a module from this library (indefinite libraries record these exports as ); 9 can be conveniently used to test for equality, whereas % cannot always be used in this case.CabalCorresponds to  . Invariant: if  records a , it coincides with this one.CabalCorresponds to  .CabalCorresponds to  . Build-tools don't participate in mix-in linking. (but what if they could?)CabalCorresponds to  .CabalExtra metadata depending on whether or not this is an indefinite library (typechecked only) or an instantiated component (can be compiled).CabalThe final, string  that will uniquely identify the compilation products of this component.CabalCorresponds to  .CabalCompute the dependencies of a ! that should be recorded in the depends field of InstalledPackageInfo.CabalGet the  of a  IF it is a library.CabalGiven a list of  s, expand the module graph so that we have an instantiated graph containing all of the instantiated components we need to build.:Instantiation intuitively follows the following algorithm:instantiate a definite unit id p[S]: recursively instantiate each module M in S recursively instantiate modules exported by this unit recursively instantiate dependencies substituted by SThe implementation is a bit more involved to memoize instantiation if we have done it already. We also call  improveUnitId during this process, so that fully instantiated components are given  HashedUnitId.P Safe-Inferred "%&6Q Safe-InferredCabalPrint a Setup message stating (1) what operation we are doing, for (2) which component (with enough details to uniquely identify the build in question.)Cabal'Operation being done (capitalized), on:CabalPackageCabalComponent nameCabal3Instantiation, if available. Polymorphic to take  OpenModule or ModuleRIsaac Jones 2003-2004BSD3cabal-devel@haskell.orgportable Safe-InferredCabal Compute the $ of a library that we built inplace.Cabal5Create an empty package DB at the specified location.CabalRun hc-pkg using a given package DB stack, directly forwarding the provided command-line arguments to it.Cabal Construct  for a library in a package, given a set of installation directories.Cabal Construct 3 for a library that is in place in the build tree.:This function knows about the layout of in place packages.Cabal Construct 6 for the final install location of a library package.;This function knows about the layout of installed packages.Cabal(Install in the user's database?; verboseCabal8Translate relative include dir paths to absolute paths.Cabaltop of the build treeCaballocation of the dist treeS+(c) 2003-2005, Isaac Jones, Malcolm WallaceBSD3cabal-devel@haskell.orgportable Safe-InferredN CabalA preprocessor for turning non-Haskell files with the given extension into plain Haskell source files.CabalFunction to determine paths to possible extra C sources for a preprocessor: just takes the path to the build directory and uses this to search for C sources with names that match the preprocessor's output name format.CabalThe interface to a preprocessor, which may be implemented using an external program, but need not be. The arguments are the name of the input file, the name of the output file and a verbosity level. Here is a simple example that merely prepends a comment to the given source file: ppTestHandler :: PreProcessor ppTestHandler = PreProcessor { platformIndependent = True, runPreProcessor = mkSimplePreProcessor $ \inFile outFile verbosity -> do info verbosity (inFile++" has been preprocessed to "++outFile) stuff <- readFile inFile writeFile outFile ("-- preprocessed as a test\n\n" ++ stuff) return ExitSuccessWe split the input and output file names into a base directory and the rest of the file name. The input base dir is the path in the list of search dirs that this file was found in. The output base dir is the build dir where all the generated source files are put.The reason for splitting it up this way is that some pre-processors don't simply generate one output .hs file from one input file but have dependencies on other generated files (notably c2hs, where building one .hs file may require reading other .chi files, and then compiling the .hs file may require reading a generated .h file). In these cases the generated files need to embed relative path names to each other (eg the generated .hs file mentions the .h file in the FFI imports). This path must be relative to the base directory where the generated files are located, it cannot be relative to the top level of the build tree because the compilers do not look for .h files relative to there, ie we do not use "-I .", instead we use "-I dist/build" (or whatever dist dir has been set by the user)Most pre-processors do not care of course, so mkSimplePreProcessor and runSimplePreProcessor functions handle the simple case.CabalThis function can reorder all modules, not just those that the require the preprocessor in question. As such, this function should be well-behaved and not reorder modules it doesn't have dominion over!CabalJust present the modules in the order given; this is the default and it is appropriate for preprocessors which do not have any sort of dependencies between modules.Cabal(Apply preprocessors to the sources from 2 for a given component (lib, exe, or test suite).XXX: This is terribleCabalFind the first extension of the file that exists, and preprocess it if required.Cabal>Convenience function; get the suffixes of these preprocessors.CabalStandard preprocessors: GreenCard, c2hs, hsc2hs, happy, alex and cpphs.CabalStandard preprocessors with possible extra C sources: c2hs, hsc2hs.CabalFind any extra C sources generated by preprocessing that need to be added to the component (addresses issue #238).Cabalsource directoriesCabalbuild directoryCabalpreprocess for sdistCabalmodule file nameCabal verbosityCabalbuiltin suffixesCabalpossible preprocessorsCabalfail on missing fileTIsaac Jones 2003-2005BSD3cabal-devel@haskell.orgportable Safe-Inferred)CabalHooks allow authors to add specific functionality before and after a command is run, and also to specify additional preprocessors.WARNING: The hooks interface is under rather constant flux as we try to understand users needs. Setup files that depend on this interface may break in future releases.CabalRead the description fileCabal3Custom preprocessors in addition to and overriding .CabalThese programs are detected at configure time. Arguments for them are added to the configure command.Cabal$Hook to run before configure commandCabal?Over-ride this hook to get different behavior during configure.Cabal#Hook to run after configure commandCabalHook to run before build command. Second arg indicates verbosity level.Cabal;Over-ride this hook to get different behavior during build.CabalHook to run after build command. Second arg indicates verbosity level.CabalHook to run before repl command. Second arg indicates verbosity level.CabalOver-ride this hook to get different behavior during interpretation.CabalHook to run after repl command. Second arg indicates verbosity level.CabalHook to run before clean command. Second arg indicates verbosity level.Cabal;Over-ride this hook to get different behavior during clean.CabalHook to run after clean command. Second arg indicates verbosity level.CabalHook to run before copy commandCabal:Over-ride this hook to get different behavior during copy.CabalHook to run after copy commandCabal"Hook to run before install commandCabal=Over-ride this hook to get different behavior during install.CabalHook to run after install command. postInst should be run on the target, not on the build machine.Cabal#Hook to run before register commandCabalOver-ride this hook to get different behavior during registration.Cabal"Hook to run after register commandCabal%Hook to run before unregister commandCabalOver-ride this hook to get different behavior during unregistration.Cabal$Hook to run after unregister commandCabalHook to run before hscolour command. Second arg indicates verbosity level.Cabal>Over-ride this hook to get different behavior during hscolour.CabalHook to run after hscolour command. Second arg indicates verbosity level.CabalHook to run before haddock command. Second arg indicates verbosity level.Cabal=Over-ride this hook to get different behavior during haddock.CabalHook to run after haddock command. Second arg indicates verbosity level.Cabal Hook to run before test command.Cabal:Over-ride this hook to get different behavior during test.CabalHook to run after test command.Cabal!Hook to run before bench command.Cabal;Over-ride this hook to get different behavior during bench.Cabal Hook to run after bench command.CabalEmpty  which do nothing.++UThomas Tuegel 2010BSD3cabal-devel@haskell.orgportable Safe-InferredCabal Perform the " ./setup test " action.Cabal!positional command-line argumentsCabal information from the .cabal fileCabal#information from the configure stepCabalflags sent to testVJohan Tibell 2011BSD3cabal-devel@haskell.orgportable Safe-InferredPCabal Perform the " ./setup bench " action.Cabal!positional command-line argumentsCabal information from the .cabal fileCabal#information from the configure stepCabalflags sent to benchmarkAIsaac Jones 2003-2005BSD3cabal-devel@haskell.orgportable Safe-Inferred"%&6+CabalAn external dependency from the package database, OR an internal dependency which we are getting from the package database.CabalAn internal dependency ( should be a library name) which we are going to have to build. (The  here is a hack to get a modest amount of polymorphism out of the  typeclass.)Cabal/The errors that can be thrown when reading the  setup-config file.CabalNo header found.CabalIncorrect header.CabalCannot parse file contents.CabalNo file!CabalMismatched version.Cabal Format a  as a user-facing error message.Cabal Read the . Throw an exception if the file is missing, if the file cannot be read, or if the file was created by an older version of Cabal.Cabal Read the 5, returning either an error or the local build info.CabalTry to read the .Cabal Read the . Throw an exception if the file is missing, if the file cannot be read, or if the file was created by an older version of Cabal.CabalTry to read the .Cabal$After running configure, output the   to the .Cabal(Identifier of the current Cabal package.Cabal+Identifier of the current compiler package.Cabal Parse the  setup-config file header, returning the package identifiers for Cabal and the compiler.Cabal Generate the  setup-config file header.CabalCheck that localBuildInfoFile is up-to-date with respect to the .cabal file.CabalGet the path of dist/setup-config.CabalReturn the "dist/" prefix, or the default prefix. The prefix is taken from (in order of highest to lowest preference) the override prefix, the "CABAL_BUILDDIR" environment variable, or the default prefix.CabalReturn the "dist/" prefix, or the default prefix. The prefix is taken from (in order of highest to lowest preference) the override prefix, the "CABAL_BUILDDIR" environment variable, or  + is used. Call this function to resolve a  *DistPref0 flag whenever it is not known to be set. (The  *DistPref; flags are always set to a definite value before invoking  UserHooks.)Cabal Perform the "./setup configure" action. Returns the  .setup-config file.Cabal,Check if the user used any deprecated flags.CabalSanity check: if '--exact-configuration' was given, ensure that the complete flag assignment was specified on the command line.CabalCreate a PackageIndex that makes *any libraries that might be* defined internally to this package look like installed packages, in case an executable should refer to any of them as dependencies.It must be *any libraries that might be* defined rather than the actual definitions, because these depend on conditionals in the .cabal file, and we haven't resolved them yet. finalizePD does the resolution of conditionals, and it takes internalPackageSet as part of its input.CabalReturns true if a dependency is satisfiable. This function may report a dependency satisfiable even when it is not, but not vice versa. This is to be passed to finalizeCabal;Finalize a generic package description. The workhorse is 7 but there's a bit of other nattering about necessary.(TODO: what exactly is the business with  flaggedTests and flaggedBenchmarks?Cabal>Check for use of Cabal features which require compiler supportCabal$Select dependencies for the package.Cabal?Select and apply coverage settings for the build based on the   and .Cabal4Compute the effective value of the profiling flags --enable-library-profiling and --enable-executable-profiling from the specified  . This may be useful for external Cabal tools which need to interact with Setup in a backwards-compatible way: the most predictable mechanism for enabling profiling across many legacy versions is to NOT use --enable-profiling! and use those two flags instead. Note that --enable-executable-profiling also affects profiling of benchmarks and (non-detailed) test suites.CabalSelect and apply profiling settings for the build based on the   and .CabalTest for a package dependency and record the version we have installed.CabalList all installed packages in the given package databases. Non-existent package databases do not cause errors, they just get skipped with a warning and treated as empty ones, since technically they do not contain any package.CabalLike , but for a single package DB.,NB: Why isn't this always a fall through to ? That is because  performs some sanity checks on the package database stack in question. However, when sandboxes are involved these sanity checks are not desirable.CabalA set of files (or directories) that can be monitored to detect when there might have been a change in the installed packages.CabalThe user interface specifies the package dbs to use with a combination of --global, --user and $--package-db=global|user|clear|$file. This function combines the global/user flag and interprets the package-db flag into a single package db stack.CabalConfigure a required program, ensuring that it exists in the PATH (or where the user has specified the program must live) and making it available for use via the ; interface. If the program is known (exists in the input ), we will make sure that the program matches the required version; otherwise we will accept any version of the program and assume that it is a simpleProgram.CabalMakes a " from C compiler and linker flags.This can be used with the output from configuration programs like pkg-config and similar package-specific programs like mysql-config, freealut-config etc. For example: ccflags <- getDbProgramOutput verbosity prog progdb ["--cflags"] ldflags <- getDbProgramOutput verbosity prog progdb ["--libs"] ldflags_static <- getDbProgramOutput verbosity prog progdb ["--libs", "--static"] return (ccldOptionsBuildInfo (words ccflags) (words ldflags) (words ldflags_static))Cabal=Output package check warnings and errors. Exit if any errors.Cabal0Preform checks if a relocatable build is allowedCabalThe file path of the  setup-config file.CabalThe file path of the  setup-config file.CabalThe dist directory path.CabalThe dist directory path.CabalThe dist directory path.CabalThe dist directory path.CabalThe   to write.CabalThe file contents.CabalThe processed package.CabalThe dist directory path.Cabaldefault "dist" prefixCabaloverride "dist" prefixCabaloverride "dist" prefixCabaluse external internal deps?Cabalexact configuration?Cabal allow depending on private libs?Cabal installed setCaballibrary componentsCabalrequired dependenciesCabaltests if a dependency is satisfiable. Might say it's satisfiable even when not.Cabalinstalled packagesCabal required depsCabalPackage id of current packageCabalpackage librariesCabalInstalled packagesCabal;Packages for which we have been given specific deps to useCabal'Are we configuring a single component?CabalThe stack of package databases.Cabal Path to the .cabal file's directory  WSimon Marlow 2004BSD3cabal-devel@haskell.orgportable Safe-InferredyCabalCreate a source distribution.Cabal#List all source files of a package.Since  Cabal-3.4 returns a single list. There shouldn't be any executable files, they are hardly portable.Cabal A variant of  with configurable die.Note: may still die/ directly. For example on missing include file.Since @3.4.0.0Cabal)Prepare a directory tree of source files.Cabal)Find the setup script file, if it exists.CabalCreate a default setup script in the target directory, if it doesn't exist.CabalFind the main executable file.CabalFind a module definition file#TODO: I don't know if this is rightCabalGiven a list of include paths, try to find the include file named f. Return the name of the file and the full path, or exit with error if there's no such file.CabalRemove the auto-generated modules (like 'Paths_*') from 'exposed-modules' and 'other-modules'.CabalPrepare a directory tree of source files for a snapshot version. It is expected that the appropriate snapshot version has already been set in the package description, eg using  or .Cabal Modifies a  by appending a snapshot number corresponding to the given date.Cabal Modifies a , by appending a snapshot number corresponding to the given date.CabalGiven a date produce a corresponding integer representation. For example given a date 18032008 produce the number 20080318.CabalCreate an archive from a tree of source files, and clean up the tree.Cabal8Given a buildinfo, return the names of all source files.CabalNote: must be called with the CWD set to the directory containing the '.cabal' file.Cabal)The name of the tarball without extension Cabalinformation from the tarballCabalverbosity & snapshotCabalbuild prefix (temp dir)Cabal'extra preprocessors (includes suffixes)Cabal verbosityCabaldirectory with cabal fileCabalinfo from the cabal fileCabal&extra preprocessors (include suffixes)Cabalrelative pathsCabal verbosityCabal alternative. Since ! prefixes the error message with  errorPrefix, whatever is passed in here and wants to die should do the same. See issue #7331.Cabaldirectory with cabal fileCabalinfo from the cabal fileCabal&extra preprocessors (include suffixes)Cabalrelative pathsCabal verbosityCabal alternative. Since ! prefixes the error message with  errorPrefix, whatever is passed in here and wants to die should do the same. See issue #7331.Cabaldirectory with cabal fileCabalinfo from the cabal fileCabal&extra preprocessors (include suffixes)Cabalrelative pathsCabal verbosityCabalinfo from the cabal fileCabalsource tree to populateCabal'extra preprocessors (includes suffixes)CabalcwdCabalmain-isCabal verbosityCabalinfo from the cabal fileCabalsource tree to populateCabal'extra preprocessors (includes suffixes)Cabal verbosityCabalinfo from the cabal fileCabal source treeCabal verbosityCabalinfo from cabal fileCabalsource tree to archiveCabalname of archive to createCabal alternative. Since ! prefixes the error message with  errorPrefix, whatever is passed in here and wants to die should do the same. See issue #7331.Cabal3cwd -- change me to 'BuildPath Absolute PackageDir'CabalExtra preprocessorsCabalExposed modules  XIsaac Jones 2003-2005, Ross Paterson 2006, Duncan Coutts 2007-2008, 2012BSD3cabal-devel@haskell.orgportable Safe-InferredCabal4Build the libraries and executables in this package.Cabal&Write available build information for   to disk.Dumps detailed build information 'build-info.json' to the given directory. Build information contains basics such as compiler details, but also lists what modules a component contains and how to compile the component, assuming lib:Cabal made sure that dependencies are up-to-date.Cabal7Start an interpreter without loading any package files.CabalAdd extra C sources generated by preprocessing to build information.CabalAdd extra C++ sources generated by preprocessing to build information.CabalAdd extra C-- sources generated by preprocessing to build information.CabalAdd extra ASM sources generated by preprocessing to build information.CabalAdd extra JS sources generated by preprocessing to build information.CabalAdd extra HS modules generated by preprocessing to build information.Cabal+Add extra source dir for generated modules.CabalTranslate a exe-style # component into an exe for buildingCabalTranslate a exe-style # component into an exe for buildingCabalTranslate a lib-style ( component into a lib + exe for buildingCabalInitialize a new package db file for libraries defined internally to the package.CabalBuild a foreign libraryNOTE: We assume that we already checked that we can actually build the foreign library in configure.CabalRuns  on every configured component.CabalCreates the autogenerated files for a particular configured component.Cabal!Generate and write out the Paths_ pkg.hs, PackageInfo_ pkg.hs, and cabal_macros.h filesCabal'Mostly information from the .cabal fileCabalConfiguration informationCabal#Flags that the user passed to buildCabal%preprocessors to run before compilingCabal3To which directory should the build-info be dumped?Cabal=Should we dump detailed build information for this component?Cabal'Mostly information from the .cabal fileCabalConfiguration informationCabal#Flags that the user passed to buildCabal'Mostly information from the .cabal fileCabalConfiguration informationCabal#Flags that the user passed to buildCabal%preprocessors to run before compilingCabal "dist" prefixCabal'mostly information from the .cabal fileCabalConfiguration informationCabalThe verbosity to useCabal "dist" prefixCabal'mostly information from the .cabal fileCabalConfiguration informationCabalThe verbosity to useYIsaac Jones 2003-2005BSD3cabal-devel@haskell.orgportable Safe-Inferred';Cabal1The FilePath of a directory, it's a monoid under .CabalA record that represents the arguments to the haddock executable, a product monoid.Cabal?Path to the interface file, relative to argOutputDir, required.CabalPackage name, required.Cabal!(Hide modules ?, modules to hide)CabalIgnore export lists in modules?Cabal(Template for modules, template for symbols, template for lines).CabalGenerate hyperlinked sourcesCabalGenerate quickjump indexCabalOptional custom CSS file.CabalOptional URL to contents page.CabalGenerate contentsCabalOptional URL to index page.CabalGenerate indexCabal9Optional base url from which static files will be loaded.Cabal%HTML or Hoogle doc or both? Required.Cabal (Interface file, URL to the HTML docs and hyperlinked-source for links).Cabal$Where to generate the documentation.CabalPage title, required.CabalPrologue text, required for  , ignored by haddocks.CabalPrologue file name, ignored by , optional for haddocks.Cabal Additional flags to pass to GHC.Cabal"To find the correct GHC, required.CabalRe-exported modulesCabalModules to process.Cabal#haddock's static / auxiliary files.Cabal7Get Haddock program and check if it matches the requestCabalExecute Haddock configured with  HaddocksFlags. It is used to build index and contents for documentation of multiple packages.Cabal*Call haddock with the specified arguments.CabalGiven a list of s, return a list of interfaces and HTML paths, and an optional warning for packages with missing documentation.Cabalquickjump featureCabaltemplate for HTML locationCabaltemplate for HTML locationCabaltemplate for HTML locationCabaltemplate for HTML locationCabaltemplate for HTML locationCabalrequire targetsCabalCalled when the  exe is not found.  ZIsaac Jones 2003-2005BSD3cabal-devel@haskell.orgportable Safe-Inferred CabalA simple implementation of main for a Cabal setup script. It reads the package description file using IO, and performs the action specified on the command line.Cabal A version of  that is passed the command line arguments, rather than getting them from the environment.CabalA customizable version of .CabalA customizable version of - that also takes the command line arguments.CabalLike , but accepts the package description as input rather than using IO to read it.CabalA customizable version of .CabalA customizable version of - that also takes the command line arguments.CabalCombine the preprocessors in the given hooks with the preprocessors built into cabal.CabalTry to read the Cabal Read the  or throw an exception.CabalHooks that correspond to a plain instantiation of the "simple" build systemCabalBasic autoconf : runs  ./configure , if present.the pre-hooks , , , ,  and + read additional build information from package .buildinfo , if present.Thus  configure/ can use local system information to generate package .buildinfo and possibly other files.,4                              _``  c    !!!!!!!!"""""""""""""""""""""""""""""""#e##########################################f$$$$$$$$$$$$$$$$$$$$$%%%%%%%%%&''''''''''''((((((((((((((((((((((((((((((((((((((())))))))))))))))))))))***++,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,---............................//////////////////////////////////////////////////////////////////////////////////////////////////000000000000000000000000000000000000yyyyyyyyyyyyyyy22222222222222222222222222222222222222222222222222222222222222222222222222222222222222 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 77 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9               : : : : : : : : : : : : : : : : ; < < = = = = = = > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ? @ ~ ~ B B B B B BBBBBBBBBBBCCCCCCCCCCCCCCCCCCCDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDEEEEEEEEEEEEEEEEEEEEEEEEEEEEFFFFFFFGGGGGGGGGGGG1111111111111111111111111HHHHHHHHHHHHHHHHHHHHHHHHHIIIIJKKLLLLLLLMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOPQRRRRRRRRRRRRRRSSSSSSSSSSSSSSSSSSSSSSTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTUVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWWWWWWWWWWX|XXXXXXYYYYYYYYYYYYYYZZZZZZZZZ[[[[[[[[[[[[[[[[[[[\\\\\\\\\\]]]]]]]]]]]^_``````idddgkkgjjj j jjjjjj jjmppppppppp####qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqrrrssstttttttttttttttttttttuuuuuuuuuvvvvvvvvvvvvvvvvvvvvvvvvvwwwwwwwwk$%'++,n--......///yy24477888889:@}}BBDDDDDDDDDDDDDDDDFFFFF1111111111111111HHHHHHHHHHHHHHHHHHHHHHIJJJJLNNNNNNNNNNNNNNNNNNNNNNNnnnnnnnnnnnOSSSAAAAAAAAAAAAAAAAAAAWWWWWWWWWWXXXXXXXXXXXXYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYZZZ%Cabal-3.10.2.0-ATxaDu8XkoZ4ekYeIWx1UlDistribution.Compat.Stack"Distribution.Simple.LocalBuildInfoDistribution.MakeDistribution.Simple.UtilsDistribution.Compat.DirectoryDistribution.Compat.FilePathDistribution.Compat.CreatePipe Distribution.Backpack.FullUnitIdDistribution.Backpack.ModSubst!Distribution.Backpack.ModuleShape$Distribution.Backpack.PreModuleShapeDistribution.Compat.Process Distribution.Compat.ResponseFileDistribution.ReadE$Distribution.Simple.BuildToolDependsDistribution.Simple.CCompilerDistribution.Simple.Flag(Distribution.Simple.InstallDirs.InternalDistribution.Simple.InstallDirs$Distribution.Simple.PreProcess.Unlit$Distribution.Simple.Program.InternalDistribution.TestSuiteDistribution.Types.AnnotatedId#Distribution.Types.ComponentInclude*Distribution.Types.ComponentLocalBuildInfo Distribution.Types.DumpBuildInfo!Distribution.Types.GivenComponent$Distribution.Types.PackageName.MagicDistribution.Types.TargetInfoDistribution.Utils.IODataDistribution.Utils.JsonDistribution.Utils.MapAccumDistribution.Utils.ProgressDistribution.Verbosity.InternalDistribution.VerbosityDistribution.Utils.NubListDistribution.Utils.LogProgress(Distribution.Simple.Program.ResponseFile Distribution.Simple.Program.Find!Distribution.Simple.Program.TypesDistribution.Simple.Program.Run"Distribution.Simple.Program.ScriptDistribution.Simple.Program.Hpc Distribution.Simple.PackageIndex&Distribution.Simple.PackageDescriptionDistribution.Simple.GlobDistribution.Simple.Compiler!Distribution.Simple.Program.HcPkgDistribution.Simple.GHCJSDistribution.Simple.Program.GHC#Distribution.Simple.Program.BuiltinDistribution.Simple.Program.DbDistribution.Simple.Program!Distribution.Simple.Program.StripDistribution.Simple.CommandDistribution.Simple.Setup!Distribution.Types.LocalBuildInfoDistribution.Simple.Hpc+Distribution.Simple.Build.PackageInfoModule Distribution.Simple.Build.Macros%Distribution.Backpack.ComponentsGraphDistribution.Simple.Test.LogDistribution.Simple.Program.LdDistribution.Simple.Program.ArDistribution.Simple.Configure)Distribution.Backpack.ConfiguredComponent%Distribution.Backpack.LinkedComponentDistribution.Simple.BuildTargetDistribution.Simple.BuildPathsDistribution.Simple.UHC Distribution.Simple.HaskellSuiteDistribution.Simple.GHC!Distribution.Simple.ShowBuildInfoDistribution.Simple.Install%Distribution.Simple.Build.PathsModuleDistribution.Simple.Test.LibV09Distribution.Simple.Test.ExeV10%Distribution.PackageDescription.CheckDistribution.Compat.TimeDistribution.Backpack.Configure$Distribution.Backpack.DescribeUnitIdDistribution.Simple.RegisterDistribution.Simple.PreProcessDistribution.Simple.UserHooksDistribution.Simple.TestDistribution.Simple.BenchDistribution.Simple.SrcDistDistribution.Simple.BuildDistribution.Simple.HaddockDistribution.Simple!Distribution.Backpack.ModuleScope*Distribution.Backpack.PreExistingComponentDistribution.Compat.Async$Distribution.Compat.GetShortPathName%Distribution.Compat.Internal.TempFileDistribution.Compat.CopyFile$Distribution.Compat.Prelude.InternalSystem.ProcessprocDistribution.Compat.SnocList Verbosity annotateIODistribution.Compat.EnvironmentControl.Exception IOExceptionDistribution.GetOptSystem.EnvironmentgetArgsDistribution.LexDistribution.PackageCheckDistribution.Utils.UnionFindDistribution.Backpack.UnifyMDistribution.Backpack.MixLinkDistribution.ZinzaPrelude'Distribution.Simple.Build.PathsModule.Z-Distribution.Simple.Build.PackageInfoModule.Z"Distribution.Simple.Build.Macros.Z Paths_Cabal CreatePipe Distribution.Simple.GHC.ImplInfo D.C.SetupfilterConfigureFlagsbuild#Distribution.Simple.ConfigureScriptDistribution.Backpack.Id Distribution.Simple.GHC.Internal)Distribution.Simple.GHC.EnvironmentParserDistribution.ModuleNamemainfindPackageDescTestType$Distribution.Backpack.ReadyComponentbaseGHC.Stack.Types CallStack,Cabal-syntax-3.10.2.0-4s9v55YS0UyD8dLofJ8HlN%Distribution.Types.PackageDescription getComponentlookupComponentpkgBuildableComponents pkgComponentsDistribution.Types.Component componentNamecomponentBuildablecomponentBuildInfo foldComponentCBenchCTestCExeCFLibCLib ComponentDistribution.LicenseUnknownLicense OtherLicenseUnspecifiedLicenseAllRightsReserved PublicDomainApacheMPLISCMITBSD4BSD3BSD2LGPLAGPLGPLLicense Distribution.Types.ComponentNamecomponentNameStringshowComponentName CFLibNameCExeName CTestName CBenchName CNotLibNameCLibName ComponentNameDistribution.Types.LibraryNamedefaultLibName LSubLibName LMainLibName LibraryNameDistribution.Types.VersionVersionDistribution.Utils.GenericisRelativeOnAnyPlatformisAbsoluteOnAnyPlatform unintersperse lowercaseequatingsafeInitsafeLastsafeTailsafeHeadlistUnionRight ordNubRight listUnionordNubByordNubtakeWhileEndLEdropWhileEndLEnormaliseLineEndings writeUTF8FilewithUTF8FileContents readUTF8File ignoreBOM toUTF8LBStoUTF8BS fromUTF8LBS fromUTF8BSwriteFileAtomicwithFileContentswrapLinewrapTextData.Ord comparing Data.OldList intercalate isInfixOf GHC.StackwithFrozenCallStack callStack GHC.ExceptionprettyCallStackdirectory-1.3.6.2System.Directory makeAbsolute listDirectory doesPathExistfilepath-1.4.2.2System.FilePath.PosixstripExtension isExtensionOfprocess-1.6.13.2System.Process.Internals createPipeFullDb FullUnitIdexpandOpenUnitId expandUnitId$fShowFullUnitId$fGenericFullUnitIdModSubstmodSubst $fModSubst(,) $fModSubst[] $fModSubstMap $fModSubstSet$fModSubstOpenUnitId$fModSubstOpenModule ModuleShapemodShapeProvidesmodShapeRequiresemptyModuleShapeshapeInstalledPackage$fModSubstModuleShape$fStructuredModuleShape$fBinaryModuleShape$fEqModuleShape$fShowModuleShape$fGenericModuleShapePreModuleShapepreModShapeProvidespreModShapeRequirestoPreModuleShaperenamePreModuleShapemixLinkPreModuleShape$fEqPreModuleShape$fShowPreModuleShape$fGenericPreModuleShapecreateTempDirectorysetFileOrdinarysetFileExecutableenableProcessJobsexpandResponse WithCallStackparentSrcLocPrefixwithLexicalCallStackannotateCallStackIOReadErunReadE succeedReadE failReadE parsecToReadEparsecToReadEErrunexpectMsgString$fFunctorReadEdesugarBuildToolgetAllToolDependencies isInternalgetAllInternalToolDependenciesCDialectC ObjectiveC CPlusPlusObjectiveCPlusPluscSourceExtensionscDialectFilenameExtensionfilenameCDialect$fSemigroupCDialect$fMonoidCDialect $fEqCDialect$fShowCDialect BooleanFlagasBoolFlagNoFlagtoFlagfromFlagfromFlagOrDefault flagToMaybeflagElim flagToListallFlags maybeToFlag $fEnumFlag $fBoundedFlag$fSemigroupFlag $fMonoidFlag$fApplicativeFlag $fFunctorFlag$fStructuredFlag $fBinaryFlag$fBooleanFlagBool$fEqFlag $fGenericFlag $fShowFlag $fReadFlagPathTemplateVariable PrefixVar BindirVar LibdirVar LibsubdirVar DynlibdirVar DatadirVar DatasubdirVar DocdirVar HtmldirVar PkgNameVar PkgVerVarPkgIdVar LibNameVar CompilerVarOSVarArchVarAbiVar AbiTagVarExecutableNameVarTestSuiteNameVarTestSuiteResultVarBenchmarkNameVar PathComponentOrdinaryVariable$fReadPathTemplateVariable$fShowPathTemplateVariable $fStructuredPathTemplateVariable$fBinaryPathTemplateVariable$fReadPathComponent$fShowPathComponent$fStructuredPathComponent$fBinaryPathComponent$fEqPathComponent$fOrdPathComponent$fGenericPathComponent$fEqPathTemplateVariable$fOrdPathTemplateVariable$fGenericPathTemplateVariablePathTemplateEnv PathTemplateCopyDest NoCopyDestCopyToCopyToDbInstallDirTemplates InstallDirsprefixbindirlibdir libsubdir dynlibdirflibdir libexecdir libexecsubdir includedirdatadir datasubdirdocdirmandirhtmldir haddockdir sysconfdircombineInstallDirsdefaultInstallDirsdefaultInstallDirs'substituteInstallDirTemplatesabsoluteInstallDirsprefixRelativeInstallDirstoPathTemplatefromPathTemplatecombinePathTemplatesubstPathTemplateinitialPathTemplateEnvpackageTemplateEnvcompilerTemplateEnvplatformTemplateEnvabiTemplateEnvinstallDirsTemplateEnv$fSemigroupInstallDirs$fMonoidInstallDirs$fStructuredInstallDirs$fBinaryInstallDirs$fBinaryCopyDest$fReadPathTemplate$fShowPathTemplate$fStructuredPathTemplate$fBinaryPathTemplate$fEqPathTemplate$fOrdPathTemplate$fGenericPathTemplate $fEqCopyDest$fShowCopyDest$fGenericCopyDest$fEqInstallDirs$fReadInstallDirs$fShowInstallDirs$fFunctorInstallDirs$fGenericInstallDirsplainunlitstripExtractVersionResultPassFailErrorProgressFinishedOptionsGroup ExtraOptions groupName concurrently groupTests OptionType OptionFile OptionString OptionNumber OptionBool OptionEnum OptionSet OptionRngSeedoptionFileMustExistoptionFileIsDiroptionFileExtensionsoptionStringMultilineoptionNumberIsIntoptionNumberBounds OptionDescr optionNameoptionDescription optionType optionDefault TestInstancerunnametagsoptions setOption testGroup $fEqResult $fReadResult $fShowResult$fEqOptionDescr$fReadOptionDescr$fShowOptionDescr$fEqOptionType$fReadOptionType$fShowOptionType AnnotatedIdann_pid ann_cnameann_id$fFunctorAnnotatedId$fPackageAnnotatedId$fOrdAnnotatedId$fEqAnnotatedId$fShowAnnotatedIdComponentInclude ci_ann_id ci_renaming ci_implicitci_idci_pkgidci_cnameComponentLocalBuildInfoLibComponentLocalBuildInfoFLibComponentLocalBuildInfoExeComponentLocalBuildInfoTestComponentLocalBuildInfoBenchComponentLocalBuildInfocomponentLocalNamecomponentComponentIdcomponentUnitIdcomponentIsIndefinite_componentInstantiatedWithcomponentPackageDepscomponentIncludescomponentExeDepscomponentInternalDepscomponentCompatPackageKeycomponentCompatPackageNamecomponentExposedModulescomponentIsPubliccomponentIsIndefinitemaybeComponentInstantiatedWith$fIsNodeComponentLocalBuildInfo#$fStructuredComponentLocalBuildInfo$fBinaryComponentLocalBuildInfo $fGenericComponentLocalBuildInfo$fReadComponentLocalBuildInfo$fShowComponentLocalBuildInfo DumpBuildInfoNoDumpBuildInfo$fStructuredDumpBuildInfo$fBinaryDumpBuildInfo$fReadDumpBuildInfo$fShowDumpBuildInfo$fEqDumpBuildInfo$fOrdDumpBuildInfo$fEnumDumpBuildInfo$fBoundedDumpBuildInfo$fGenericDumpBuildInfoGivenComponentgivenComponentPackagegivenComponentNamegivenComponentId$fStructuredGivenComponent$fBinaryGivenComponent$fGenericGivenComponent$fReadGivenComponent$fShowGivenComponent$fEqGivenComponent nonExistentPackageThisIsCabalBugfakePackageNamefakePackageCabalFileName fakePackageId TargetInfo targetCLBItargetComponent$fIsNodeTargetInfo IODataModeIODataModeTextIODataModeBinaryKnownIODataModehGetIODataContentstoIOData iodataModeIOData IODataText IODataBinary withIODatanull hPutContents$fNFDataIOData$fKnownIODataModeByteString$fKnownIODataMode[]Json JsonArrayJsonBoolJsonNull JsonNumber JsonObject JsonString renderJson.= $fShowJson mapAccumM$fApplicativeStateM$fFunctorStateM stepProgress failProgress foldProgress$fAlternativeProgress$fApplicativeProgress$fMonadProgress$fFunctorProgress VerbosityFlag VCallStack VCallSiteVNoWrap VMarkOutput VTimestampVStderrVNoWarnVerbosityLevelSilentNormalVerbose Deafening$fStructuredVerbosityLevel$fBinaryVerbosityLevel$fStructuredVerbosityFlag$fBinaryVerbosityFlag$fGenericVerbosityFlag$fShowVerbosityFlag$fReadVerbosityFlag$fEqVerbosityFlag$fOrdVerbosityFlag$fEnumVerbosityFlag$fBoundedVerbosityFlag$fGenericVerbosityLevel$fShowVerbosityLevel$fReadVerbosityLevel$fEqVerbosityLevel$fOrdVerbosityLevel$fEnumVerbosityLevel$fBoundedVerbosityLevelsilentnormalverbose deafening moreVerbose lessVerbosemodifyVerbosityintToVerbosityflagToVerbosity showForCabal showForGHCverboseCallSiteverboseCallStackverboseMarkOutputverboseUnmarkOutput verboseNoWrapverboseTimestampverboseNoTimestamp verboseStderrverboseNoStderr verboseNoWarnverboseNoFlagsverboseHasFlagsisVerboseCallSiteisVerboseCallStackisVerboseMarkOutputisVerboseNoWrapisVerboseQuietisVerboseTimestampisVerboseStderrisVerboseNoWarn$fPrettyVerbosity$fParsecVerbosity$fStructuredVerbosity$fBinaryVerbosity$fBoundedVerbosity$fEnumVerbosity$fOrdVerbosity $fEqVerbosity$fGenericVerbosity$fShowVerbosity$fReadVerbosityTempFileOptionsoptKeepTempFiles cabalVersiondieNoVerbositydieWithLocation'die' dieNoWraptopHandlerWith topHandlerwarnnotice noticeNoWrap noticeDoc setupMessageinfo infoNoWrapdebug debugNoWrap chattyTryhandleDoesNotExistwithOutputMarker maybeExit rawSystemExitrawSystemExitCode rawSystemProcrawSystemProcActionfromCreatePiperawSystemExitWithEnvrawSystemIOWithEnvrawSystemIOWithEnvAndActionrawSystemStdoutrawSystemStdInOut ignoreSigPipefindProgramVersionxargs findFileCwd findFileExfindFileWithExtensionfindFileCwdWithExtensionfindAllFilesCwdWithExtensionfindAllFilesWithExtensionfindFileWithExtension' findFirstFilefindModuleFilesExfindModuleFileExgetDirectoryContentsRecursiveisInSearchPathaddLibraryPathmoreRecentFileexistsAndIsMoreRecentThancreateDirectoryIfMissingVerbosecopyFileVerboseinstallOrdinaryFileinstallExecutableFileinstallMaybeExecutableFile copyFileTo copyFilesinstallOrdinaryFilesinstallExecutableFilesinstallMaybeExecutableFilesinstallDirectoryContentscopyDirectoryRecursivedoesExecutableExistdefaultTempFileOptions withTempFilewithTempFileExwithTempDirectorywithTempDirectoryEx rewriteFileExrewriteFileLBS currentDirshortRelativePathdropExeExtension exeExtensionsdefaultPackageDescfindPackageDescCwdtryFindPackageDesctryFindPackageDescCwdfindHookedPackageDesc $fEqTraceWhenNubListR fromNubListRNubList fromNubList toNubList overNubList toNubListR overNubListR$fStructuredNubList$fBinaryNubList $fReadNubList $fShowNubList$fSemigroupNubList$fMonoidNubList$fReadNubListR$fShowNubListR$fSemigroupNubListR$fMonoidNubListR $fEqNubListR $fEqNubList$fGenericNubList LogProgressrunLogProgress warnProgress infoProgress dieProgressaddProgressCtx$fMonadLogProgress$fApplicativeLogProgress$fFunctorLogProgresswithResponseFileProgramSearchPathEntryProgramSearchPathDirProgramSearchPathDefaultProgramSearchPathdefaultProgramSearchPathfindProgramOnSearchPathprogramSearchPathAsPATHVargetSystemSearchPath"$fStructuredProgramSearchPathEntry$fBinaryProgramSearchPathEntry$fEqProgramSearchPathEntry$fGenericProgramSearchPathEntryProgramLocation UserSpecified FoundOnSystem locationPathConfiguredProgram programIdprogramVersionprogramDefaultArgsprogramOverrideArgsprogramOverrideEnvprogramPropertiesprogramLocationprogramMonitorFilesProgArgProgram programNameprogramFindLocationprogramFindVersionprogramPostConfprogramNormaliseArgs programPathsuppressOverrideArgs simpleProgramsimpleConfiguredProgram$fStructuredProgramLocation$fBinaryProgramLocation$fStructuredConfiguredProgram$fBinaryConfiguredProgram $fShowProgram$fEqConfiguredProgram$fGenericConfiguredProgram$fReadConfiguredProgram$fShowConfiguredProgram$fEqProgramLocation$fGenericProgramLocation$fReadProgramLocation$fShowProgramLocation IOEncodingIOEncodingTextIOEncodingUTF8ProgramInvocationprogInvokePathprogInvokeArgs progInvokeEnvprogInvokePathEnv progInvokeCwdprogInvokeInputprogInvokeInputEncodingprogInvokeOutputEncodingemptyProgramInvocationsimpleProgramInvocationprogramInvocationrunProgramInvocationgetProgramInvocationOutputgetProgramInvocationLBS#getProgramInvocationOutputAndErrorsgetEffectiveEnvironmentmultiStageProgramInvocationinvocationAsSystemScriptinvocationAsShellScriptinvocationAsBatchFilemarkupunion SearchResultNone Unambiguous AmbiguousInstalledPackageIndex PackageIndexfromListmergeinsert deleteUnitIddeleteSourcePackageIddeletePackageName allPackagesallPackagesByNameallPackagesBySourcePackageId&allPackagesBySourcePackageIdAndLibName lookupUnitIdlookupComponentIdlookupSourcePackageIdlookupPackageIdlookupPackageNamelookupDependencylookupInternalDependency searchByNamesearchByNameSubstringsearchWithPredicatedependencyCyclesbrokenPackagesdependencyClosurereverseDependencyClosuretopologicalOrderreverseTopologicalOrderdependencyGraphdependencyInconsistenciesmoduleNameIndex$fSemigroupPackageIndex$fMonoidPackageIndex$fStructuredPackageIndex$fBinaryPackageIndex$fEqPackageIndex$fGenericPackageIndex$fShowPackageIndex$fReadPackageIndexreadGenericPackageDescriptionreadHookedBuildInfo parseStringGlobGlobSyntaxErrorStarInDirectoryStarInFileNameStarInExtensionNoExtensionOnStar EmptyGlobLiteralFileNameGlobStarVersionDoesNotSupportGlobStarVersionDoesNotSupportGlob GlobResult GlobMatchGlobWarnMultiDotGlobMissingDirectoryexplainGlobSyntaxErrorfileGlobMatches parseFileGlobmatchDirFileGlobmatchDirFileGlobWithDierunDirFileGlobisRecursiveInRoot$fEqIsRecursive$fEqGlobSyntaxError$fShowGlobSyntaxError$fShowGlobResult$fEqGlobResult$fOrdGlobResult$fFunctorGlobResultProfDetailLevelProfDetailNoneProfDetailDefaultProfDetailExportedFunctionsProfDetailToplevelFunctionsProfDetailAllFunctionsProfDetailTopLateProfDetailOther CompilerFlagDebugInfoLevel NoDebugInfoMinimalDebugInfoNormalDebugInfoMaximalDebugInfoOptimisationLevelNoOptimisationNormalOptimisationMaximumOptimisationPackageDBStack PackageDBGlobalPackageDB UserPackageDBSpecificPackageDBCompiler compilerIdcompilerAbiTagcompilerCompatcompilerLanguagescompilerExtensionscompilerPropertiesshowCompilerIdshowCompilerIdWithAbicompilerFlavorcompilerVersioncompilerCompatFlavorcompilerCompatVersion compilerInforegistrationPackageDBabsolutePackageDBPathsabsolutePackageDBPathflagToOptimisationLevelflagToDebugInfoLevelunsupportedLanguageslanguageToFlagsunsupportedExtensionsextensionsToFlagsparmakeSupportedreexportedModulesSupportedrenamingPackageFlagsSupportedunifiedIPIDRequiredpackageKeySupportedunitIdSupportedbackpackSupportedlibraryDynDirSupportedarResponseFilesSupportedarDashLSupportedcoverageSupportedprofilingSupportedlibraryVisibilitySupportedflagToProfDetailLevelknownProfDetailLevelsshowProfDetailLevel$fStructuredPackageDB$fBinaryPackageDB$fStructuredOptimisationLevel$fBinaryOptimisationLevel$fStructuredDebugInfoLevel$fBinaryDebugInfoLevel$fStructuredCompiler$fBinaryCompiler$fStructuredProfDetailLevel$fBinaryProfDetailLevel$fEqProfDetailLevel$fGenericProfDetailLevel$fReadProfDetailLevel$fShowProfDetailLevel $fEqCompiler$fGenericCompiler$fShowCompiler$fReadCompiler$fBoundedDebugInfoLevel$fEnumDebugInfoLevel$fEqDebugInfoLevel$fGenericDebugInfoLevel$fReadDebugInfoLevel$fShowDebugInfoLevel$fBoundedOptimisationLevel$fEnumOptimisationLevel$fEqOptimisationLevel$fGenericOptimisationLevel$fReadOptimisationLevel$fShowOptimisationLevel $fEqPackageDB$fGenericPackageDB$fOrdPackageDB$fShowPackageDB$fReadPackageDBRegisterOptionsregisterAllowOverwriteregisterMultiInstanceregisterSuppressFilesCheck HcPkgInfo hcPkgProgram noPkgDbStack noVerboseFlagflagPackageConfsupportsDirDbsrequiresDirDbsnativeMultiInstancerecacheMultiInstancesuppressFilesCheckinitinvokedefaultRegisterOptionsregister unregisterrecacheexposedescribehidedumplistinitInvocationregisterInvocationunregisterInvocationrecacheInvocationexposeInvocationdescribeInvocationhideInvocationdumpInvocationlistInvocation GhcImplInfosupportsHaskell2010supportsGHC2021 reportsNoExtalwaysNondecIndentflagGhciScript flagProfAuto flagProfLate flagDebugInfosupportsDebugLevelssupportsPkgEnvFilesflagWarnMissingHomeModules getImplInfo GhcProfAutoGhcProfAutoAllGhcProfAutoToplevelGhcProfAutoExported GhcProfLateGhcDynLinkMode GhcStaticOnlyGhcDynamicOnlyGhcStaticAndDynamicGhcOptimisationGhcNoOptimisationGhcNormalOptimisationGhcMaximumOptimisationGhcSpecialOptimisationGhcModeGhcModeCompile GhcModeLink GhcModeMakeGhcModeInteractiveGhcModeAbiHash GhcOptions ghcOptMode ghcOptExtraghcOptExtraDefaultghcOptInputFilesghcOptInputScriptsghcOptInputModulesghcOptOutputFileghcOptOutputDynFileghcOptSourcePathClearghcOptSourcePathghcOptThisUnitIdghcOptThisComponentIdghcOptInstantiatedWith ghcOptNoCodeghcOptPackageDBsghcOptPackagesghcOptHideAllPackagesghcOptWarnMissingHomeModulesghcOptNoAutoLinkPackagesghcOptLinkLibsghcOptLinkLibPathghcOptLinkOptionsghcOptLinkFrameworksghcOptLinkFrameworkDirs ghcOptLinkRts ghcOptNoLinkghcOptLinkNoHsMainghcOptLinkModDefFilesghcOptCcOptionsghcOptCxxOptionsghcOptAsmOptionsghcOptCppOptionsghcOptCppIncludePathghcOptCppIncludesghcOptFfiIncludesghcOptCcProgramghcOptLanguageghcOptExtensionsghcOptExtensionMapghcOptOptimisationghcOptDebugInfoghcOptProfilingModeghcOptProfilingAutoghcOptSplitSectionsghcOptSplitObjs ghcOptNumJobs ghcOptHPCDirghcOptGHCiScriptsghcOptHiSuffixghcOptObjSuffixghcOptDynHiSuffixghcOptDynObjSuffix ghcOptHiDir ghcOptObjDirghcOptOutputDir ghcOptStubDirghcOptDynLinkModeghcOptStaticLib ghcOptShared ghcOptFPicghcOptDylibName ghcOptRPathsghcOptVerbosityghcOptExtraPath ghcOptCabalnormaliseGhcArgsrunGHC ghcInvocationrenderGhcOptionspackageDbArgsDb$fSemigroupGhcOptions$fMonoidGhcOptions$fShowGhcOptions$fGenericGhcOptions$fShowGhcProfAuto$fEqGhcProfAuto$fShowGhcDynLinkMode$fEqGhcDynLinkMode$fShowGhcOptimisation$fEqGhcOptimisation $fShowGhcMode $fEqGhcModebuiltinPrograms ghcProgram runghcProgram ghcPkgProgram ghcjsProgramghcjsPkgProgram hmakeProgram jhcProgram uhcProgram hpcProgramhaskellSuiteProgramhaskellSuitePkgProgram happyProgram alexProgram gccProgram arProgram stripProgram hsc2hsProgram c2hsProgram cpphsProgramhscolourProgramdoctestProgramhaddockProgramgreencardProgram ldProgram tarProgram cppProgrampkgConfigProgram ProgramDbemptyProgramDbdefaultProgramDbrestoreProgramDbaddKnownProgramaddKnownProgramslookupKnownProgram knownProgramsgetProgramSearchPathsetProgramSearchPathmodifyProgramSearchPathuserSpecifyPathuserMaybeSpecifyPathuserSpecifyArgsuserSpecifyPathsuserSpecifyArgssuserSpecifiedArgs lookupProgram updateProgramconfiguredProgramsconfigureProgramunconfigureProgramconfigureAllKnownProgramsreconfigureProgramsrequireProgram needProgramlookupProgramVersionrequireProgramVersion$fStructuredProgramDb$fBinaryProgramDb$fReadProgramDb$fShowProgramDb runProgramgetProgramOutput runDbProgramgetDbProgramOutputstripExestripLib CommandSpecCommand CommandType NormalCommand HiddenCommand CommandParse CommandHelp CommandList CommandErrorsCommandReadyToGo MkOptDescrArgPlaceHolderOptFlagsLFlagsSFlagsOptDescrReqArgOptArg ChoiceOptBoolOpt OptionField optionDescr DescriptionNameShowOrParseArgsShowArgs ParseArgs CommandUI commandNamecommandSynopsis commandUsagecommandDescription commandNotescommandDefaultFlagscommandOptionsoption multiOptionreqArgoptArgreqArg'optArg'noArgboolOptboolOpt' choiceOptchoiceOptFromEnum liftOption liftOptionLcommandShowOptions usageDefaultusageAlternatives mkCommandUIcommandParseArgs hiddenCommandcommandAddAction commandsRun noExtraFlagsgetNormalCommandDescriptions helpCommandUIcommandFromSpec$fFunctorCommandParseBenchmarkFlagsbenchmarkDistPrefbenchmarkVerbositybenchmarkOptions TestFlags testDistPref testVerbosity testHumanLogtestMachineLogtestShowDetails testKeepTix testWrappertestFailWhenNoTestSuites testOptionsTestShowDetailsNeverFailuresAlways StreamingDirect ReplFlagsreplProgramPathsreplProgramArgs replDistPref replVerbosity replReloadreplReplOptions ReplOptionsreplOptionsFlagsreplOptionsNoLoad BuildFlagsbuildProgramPathsbuildProgramArgs buildDistPrefbuildVerbosity buildNumJobs buildArgsbuildCabalFilePath CleanFlags cleanSaveConf cleanDistPrefcleanVerbositycleanCabalFilePathHaddockProjectFlagshaddockProjectHackagehaddockProjectLocalhaddockProjectDirhaddockProjectProloguehaddockProjectGenIndexhaddockProjectGenContentshaddockProjectInterfaceshaddockProjectProgramPathshaddockProjectProgramArgshaddockProjectHooglehaddockProjectHtmlLocationhaddockProjectExecutableshaddockProjectTestSuiteshaddockProjectBenchmarkshaddockProjectForeignLibshaddockProjectInternalhaddockProjectCsshaddockProjectLinkedSourcehaddockProjectQuickJumphaddockProjectHscolourCsshaddockProjectKeepTempFileshaddockProjectVerbosityhaddockProjectLib VisibilityVisibleHidden HaddockFlagshaddockProgramPathshaddockProgramArgs haddockHoogle haddockHtmlhaddockHtmlLocationhaddockForHackagehaddockExecutableshaddockTestSuiteshaddockBenchmarkshaddockForeignLibshaddockInternal haddockCsshaddockLinkedSourcehaddockQuickJumphaddockHscolourCsshaddockContents haddockIndexhaddockDistPrefhaddockKeepTempFileshaddockVerbosityhaddockCabalFilePathhaddockBaseUrl haddockLib haddockArgs HaddockTarget ForHackageForDevelopment HscolourFlags hscolourCSShscolourExecutableshscolourTestSuiteshscolourBenchmarkshscolourForeignLibshscolourDistPrefhscolourVerbosityhscolourCabalFilePath RegisterFlags regPackageDB regGenScript regGenPkgConf regInPlace regDistPref regPrintId regVerbosityregArgsregCabalFilePath SDistFlags sDistSnapshotsDistDirectory sDistDistPrefsDistListSourcessDistVerbosity InstallFlagsinstallPackageDB installDestinstallDistPrefinstallUseWrapperinstallInPlaceinstallVerbosityinstallCabalFilePath CopyFlagscopyDest copyDistPref copyVerbositycopyArgscopyCabalFilePath ConfigFlags configArgsconfigPrograms_configProgramPathsconfigProgramArgsconfigProgramPathExtraconfigHcFlavor configHcPath configHcPkgconfigVanillaLib configProfLibconfigSharedLibconfigStaticLib configDynExeconfigFullyStaticExe configProfExe configProfconfigProfDetailconfigProfLibDetailconfigConfigureArgsconfigOptimizationconfigProgPrefixconfigProgSuffixconfigInstallDirsconfigScratchDirconfigExtraLibDirsconfigExtraLibDirsStaticconfigExtraFrameworkDirsconfigExtraIncludeDirs configIPID configCIDconfigDeterministicconfigDistPrefconfigCabalFilePathconfigVerbosityconfigUserInstallconfigPackageDBs configGHCiLibconfigSplitSectionsconfigSplitObjsconfigStripExesconfigStripLibsconfigConstraintsconfigDependenciesconfigInstantiateWithconfigConfigurationsFlags configTestsconfigBenchmarksconfigCoverageconfigLibCoverageconfigExactConfigurationconfigFlagErrorconfigRelocatableconfigDebugInfoconfigDumpBuildInfoconfigUseResponseFiles!configAllowDependingOnPrivateLibs GlobalFlags globalVersionglobalNumericVersiondefaultDistPrefdefaultGlobalFlags globalCommandemptyGlobalFlagsconfigProgramsconfigAbsolutePathsdefaultConfigFlagsconfigureCommandconfigureOptionsreadPackageDbList readPackageDbshowPackageDbList showPackageDbinstallDirsOptionsemptyConfigFlagsdefaultCopyFlags copyCommandemptyCopyFlagsdefaultInstallFlagsinstallCommandemptyInstallFlagsdefaultSDistFlags sdistCommandemptySDistFlagsdefaultRegisterFlagsregisterCommandunregisterCommandemptyRegisterFlagsemptyHscolourFlagsdefaultHscolourFlagshscolourCommanddefaultHaddockFlagshaddockCommandhaddockOptionsemptyHaddockFlagsdefaultHaddockProjectFlagshaddockProjectCommandhaddockProjectOptionsemptyHaddockProjectFlagsdefaultCleanFlags cleanCommandemptyCleanFlagsdefaultBuildFlags buildCommand buildOptionsemptyBuildFlagsdefaultReplFlags replCommand replOptionsdefaultTestFlags testCommand testOptions'emptyTestFlagsdefaultBenchmarkFlagsbenchmarkCommandbenchmarkOptions'emptyBenchmarkFlagsprogramFlagsDescriptionprogramDbPaths'programDbOptionstrueArgfalseArgoptionDistPrefoptionVerbosity optionNumJobs configureArgsconfigureCCompilerconfigureLinker splitArgs$fSemigroupGlobalFlags$fMonoidGlobalFlags$fSemigroupConfigFlags$fMonoidConfigFlags$fEqConfigFlags$fStructuredConfigFlags$fBinaryConfigFlags$fSemigroupCopyFlags$fMonoidCopyFlags$fSemigroupInstallFlags$fMonoidInstallFlags$fSemigroupSDistFlags$fMonoidSDistFlags$fSemigroupRegisterFlags$fMonoidRegisterFlags$fSemigroupHscolourFlags$fMonoidHscolourFlags$fParsecHaddockTarget$fPrettyHaddockTarget$fStructuredHaddockTarget$fBinaryHaddockTarget$fSemigroupHaddockFlags$fMonoidHaddockFlags$fSemigroupHaddockProjectFlags$fMonoidHaddockProjectFlags$fSemigroupCleanFlags$fMonoidCleanFlags$fSemigroupBuildFlags$fMonoidBuildFlags$fSemigroupReplOptions$fMonoidReplOptions$fStructuredReplOptions$fBinaryReplOptions$fSemigroupReplFlags$fMonoidReplFlags$fSemigroupTestShowDetails$fMonoidTestShowDetails$fParsecTestShowDetails$fPrettyTestShowDetails$fStructuredTestShowDetails$fBinaryTestShowDetails$fSemigroupTestFlags$fMonoidTestFlags$fSemigroupBenchmarkFlags$fMonoidBenchmarkFlags$fShowBenchmarkFlags$fGenericBenchmarkFlags$fShowTestFlags$fGenericTestFlags$fEqTestShowDetails$fOrdTestShowDetails$fEnumTestShowDetails$fBoundedTestShowDetails$fGenericTestShowDetails$fShowTestShowDetails$fShowReplFlags$fGenericReplFlags$fShowReplOptions$fGenericReplOptions$fReadBuildFlags$fShowBuildFlags$fGenericBuildFlags$fShowCleanFlags$fGenericCleanFlags$fShowHaddockProjectFlags$fGenericHaddockProjectFlags$fEqVisibility$fShowVisibility$fShowHaddockFlags$fGenericHaddockFlags$fEqHaddockTarget$fShowHaddockTarget$fGenericHaddockTarget$fShowHscolourFlags$fGenericHscolourFlags$fShowRegisterFlags$fGenericRegisterFlags$fShowSDistFlags$fGenericSDistFlags$fShowInstallFlags$fGenericInstallFlags$fShowCopyFlags$fGenericCopyFlags$fGenericConfigFlags$fReadConfigFlags$fShowConfigFlags$fGenericGlobalFlagsLocalBuildInfo configFlagsflagAssignmentcomponentEnabledSpecextraConfigArgsinstallDirTemplatescompiler hostPlatformbuildDir cabalFilePathcomponentGraphcomponentNameMap installedPkgs pkgDescrFile localPkgDescr withPrograms withPackageDBwithVanillaLib withProfLib withSharedLib withStaticLib withDynExewithFullyStaticExe withProfExewithProfLibDetailwithProfExeDetailwithOptimization withDebugInfo withGHCiLib splitSections splitObjs stripExes stripLibs exeCoverage libCoverage progPrefix progSuffix relocatablelocalComponentId localPackage localUnitIdlocalCompatPackageKeycomponentNameTargets' unitIdTarget'componentNameCLBIsallTargetsInBuildOrder'withAllTargetsInBuildOrder'neededTargetsInBuildOrder'withNeededTargetsInBuildOrder' testCoveragecomponentNameTargets unitIdTargetallTargetsInBuildOrderwithAllTargetsInBuildOrderneededTargetsInBuildOrderwithNeededTargetsInBuildOrder$fStructuredLocalBuildInfo$fBinaryLocalBuildInfo$fGenericLocalBuildInfo$fReadLocalBuildInfo$fShowLocalBuildInfocomponentBuildDir withLibLBI withExeLBI withBenchLBI withTestLBIenabledTestLBIsenabledBenchLBIswithAllComponentsInBuildOrderallComponentsInBuildOrderdepLibraryPaths allLibModulesabsoluteComponentInstallDirsabsoluteInstallCommandDirs"prefixRelativeComponentInstallDirsWayVanillaProfDynmixDirtixDir tixFilePathhtmlDirguessWay markupTest markupPackage $fBoundedWay $fEnumWay$fEqWay $fReadWay $fShowWaygeneratePackageInfoModulegenerateCabalMacrosHeadergeneratePackageVersionMacrosComponentsWithDepsComponentsGraphdispComponentsWithDepsmkComponentsGraphcomponentsGraphToListcomponentCycleMsgTestLogsTestLog GroupLogstestNametestOptionsReturned testResult TestSuiteLog testSuiteNametestLogslogFile PackageLogpackageplatform testSuiteslocalPackageLogcountTestResults suitePassed suiteFailed suiteErrortestSuiteLogPathsummarizePackage summarizeTestsummarizeSuiteFinishsummarizeSuiteStart$fReadPackageLog$fShowPackageLog$fEqPackageLog$fReadTestSuiteLog$fShowTestSuiteLog$fEqTestSuiteLog$fReadTestLogs$fShowTestLogs $fEqTestLogscombineObjectFilescreateArLibArchivecomputeComponentIdcomputeCompatPackageKeyConfiguredComponentMapConfiguredComponent cc_ann_id cc_component cc_public cc_exe_deps cc_includescc_cidcc_pkgidcc_namedispConfiguredComponenttoConfiguredComponentextendConfiguredComponentMaptoConfiguredComponentsnewPackageDepsBehaviourLinkedComponentMapLinkedComponent lc_ann_id lc_component lc_exe_deps lc_public lc_includeslc_sig_includeslc_shapelc_cidlc_pkgidlc_uidlc_instsdispLinkedComponenttoLinkedComponenttoLinkedComponentsextendLinkedComponentMap$fPackageLinkedComponent QualLevelQL1QL2QL3BuildTargetProblemBuildTargetExpectedBuildTargetNoSuchBuildTargetAmbiguousUserBuildTargetProblemUserBuildTargetUnrecognised BuildTargetBuildTargetComponentBuildTargetModuleBuildTargetFileUserBuildTargetreadTargetInfosbuildTargetComponentNamereadBuildTargetsreadUserBuildTargetsreportUserBuildTargetProblemsshowUserBuildTargetshowBuildTargetresolveBuildTargetsreportBuildTargetProblems$fBinaryBuildTarget $fMonadMatch$fApplicativeMatch$fFunctorMatch$fMonadPlusMatch$fAlternativeMatch$fShowMaybeAmbiguous $fShowMatch$fShowMatchError$fEqMatchError$fEqComponentKind$fOrdComponentKind$fShowComponentKind$fEnumComponentKind$fBoundedComponentKind$fEnumQualLevel$fShowQualLevel$fShowBuildTargetProblem$fShowUserBuildTargetProblem$fEqBuildTarget$fShowBuildTarget$fGenericBuildTarget$fShowUserBuildTarget$fEqUserBuildTarget$fOrdUserBuildTargetsrcPref hscolourPref buildInfoPrefhaddockDirName haddockPrefautogenPackageModulesDirautogenComponentModulesDir cppHeaderNameautogenPathsModuleNameautogenPackageInfoModuleName haddockNamegetLibSourceFilesgetExeSourceFilesgetFLibSourceFilesgetSourceFiles exeBuildDir flibBuildDirmkGenericStaticLibName mkLibName mkProfLibNamemkGenericSharedLibNamemkSharedLibNamemkStaticLibNamemkGenericSharedBundledLibName exeExtension objExtension dllExtensionstaticLibExtension configuregetInstalledPackagesbuildLibbuildExe installLibregisterPackageinplacePackageDbPath hstoolVersionnumericVersiongetCompilerVersion getExtensions getLanguages initPackageDB packageDbOptGhcEnvironmentFileEntryGhcEnvFileCommentGhcEnvFilePackageIdGhcEnvFilePackageDbGhcEnvFileClearPackageDbStackghcPlatformAndVersionStringsimpleGhcEnvironmentFilewriteGhcEnvironmentFilerenderGhcEnvironmentFile ParseErrorExcparseGhcEnvironmentFilereadGhcEnvironmentFile getGhcInfogetPackageDBContents getLibDirgetGlobalPackageDB getInstalledPackagesMonitorFilesreplLibstartInterpreter buildFLibreplFLibreplExe libAbiHashcomponentGhcOptionscomponentCcGhcOptions installExe installFLib isDynamic hcPkgInfopkgRootrunCmd getGhcAppDir mkBuildInfo mkBuildInfo'mkCompilerInfomkComponentInfoinstallgeneratePathsModule pkgPathEnvVarrunTeststubName stubFilePathwriteSimpleTestStubsimpleTestStubstubMain stubWriteLogCheckPackageContentOps doesFileExistdoesDirectoryExistgetDirectoryContentsgetFileContents PackageCheckPackageBuildImpossiblePackageBuildWarningPackageDistSuspiciousPackageDistSuspiciousWarnPackageDistInexcusable explanationCheckExplanation ParseWarning NoNameFieldNoVersionFieldNoTargetUnnamedInternalDuplicateSectionsIllegalLibraryNameNoModulesExposedSignaturesCabal2AutogenNotExposedAutogenIncludesNotIncludedNoMainIs NoHsLhsMainMainCCabal1_18AutogenNoOtherAutogenIncludesNotIncludedExeTestsuiteTypeNotKnownTestsuiteNotSupportedBenchmarkTypeNotKnownBenchmarkNotSupportedNoHsLhsMainBenchInvalidNameWinZPrefix NoBuildType NoCustomSetupUnknownCompilersUnknownLanguagesUnknownExtensionsLanguagesAsExtensionDeprecatedExtensions MissingFieldSynopsisTooLong ShortDescInvalidTestWithImpossibleInternalDepImpossibleInternalExeMissingInternalExe NONELicense NoLicenseAllRightsReservedLicenseLicenseMessParseUnrecognisedLicense UncommonBSD4UnknownLicenseVersion NoLicenseFileUnrecognisedSourceRepo MissingTypeMissingLocation MissingModule MissingTag SubdirRelPathSubdirGoodRelPathOptFasmOptViaCOptHpcOptProfOptOOptHideOptMakeOptONotOptOOneOptOTwoOptSplitSections OptSplitObjsOptWlsOptExtsOptRts OptWithRts COptONumberCOptCPPOptAlternativesRelativeOutside AbsolutePathBadRelativePAth DistPointRecursiveGlobInRoot InvalidOnWinFilePathTooLongFilePathNameTooLongFilePathSplitTooLong FilePathEmpty CVTestSuiteCVDefaultLanguageCVDefaultLanguageComponentCVExtraDocFiles CVMultiLib CVReexportedCVMixinsCVExtraFrameworkDirsCVDefaultExtensionsCVExtensionsDeprecated CVSourcesCVExtraDynamicCVVirtualModulesCVSourceRepository CVExtensions CVCustomSetupCVExpliticDepsCustomSetupCVAutogenPathsCVAutogenPackageInfo GlobNoMatchGlobExactMatch GlobNoDir UnknownOS UnknownArchUnknownCompilerBaseNoUpperBoundsMissingUpperBoundsSuspiciousFlagNameDeclaredUsedFlagsNonASCIICustomFieldRebindableClashPathsRebindableClashPackageInfoWErrorUnneeded JUnneededFDeferTypeErrorsUnneededDynamicUnneededProfilingUnneededUpperBoundSetupDuplicateModulePotentialDupModuleBOMStartNotPackageNameNoDesc MultiDesc UnknownFileMissingSetupFileMissingConfigureScriptUnknownDirectoryMissingSourceControlMissingExpectedDocFilesWrongFieldForExpectedDocFileswrapParseWarningppPackageCheck checkPackagecheckConfiguredPackagecheckPackageFilescheckPackageContentcheckPackageFileNames$fShowPackageCheck $fEqPathKind$fEqPackageCheck$fOrdPackageCheck$fEqCheckExplanation$fOrdCheckExplanation$fShowCheckExplanation $fEqCEField $fOrdCEField $fShowCEField $fEqCEType $fOrdCEType $fShowCEType defaultMaindefaultMainArgsModTime getModTimeposixSecondsToModTime getFileAge getCurTimecalibrateMtimeChangeDelay $fReadModTime $fShowModTime$fStructuredModTime$fBinaryModTime$fGenericModTime$fBoundedModTime $fEqModTime $fOrdModTime!configureComponentLocalBuildInfos setupMessage'generateRegistrationInfoabiHashcreatePackageDBdoesPackageDBExistdeletePackageDB invokeHcPkggeneralInstalledPackageInfoinplaceInstalledPackageInfoabsoluteInstalledPackageInfointernalPackageDBPathPPSuffixHandler PreProcessorplatformIndependent ppOrderingrunPreProcessorunsortedmkSimplePreProcessorrunSimplePreProcessorpreprocessComponent ppGreenCardppUnlitppCppppCpp'ppHsc2hsppC2hsplatformDefinesppHappyppAlex ppSuffixesknownSuffixHandlerspreprocessExtras UserHooksreadDeschookedPreProcessorshookedProgramspreConfconfHookpostConfpreBuild buildHook postBuildpreReplreplHookpostReplpreClean cleanHook postCleanpreCopycopyHookpostCopypreInstinstHookpostInstpreRegregHookpostRegpreUnreg unregHook postUnreg preHscolour hscolourHook postHscolour preHaddock haddockHook postHaddockpreTesttestHookpostTestpreBench benchHook postBenchArgsemptyUserHookstestbenchConfigStateFileErrorConfigStateFileNoHeaderConfigStateFileBadHeaderConfigStateFileNoParseConfigStateFileMissingConfigStateFileBadVersiongetConfigStateFiletryGetConfigStateFiletryGetPersistBuildConfiggetPersistBuildConfigmaybeGetPersistBuildConfigwritePersistBuildConfigcheckPersistBuildConfigOutdatedlocalBuildInfoFile findDistPreffindDistPrefOrDefaultgetInternalLibrariescomputeEffectiveProfilinginterpretPackageDbFlagsccLdOptionsBuildInfoconfigCompilerAuxExconfigCompilerExcheckForeignDeps$fExceptionConfigStateFileError$fShowConfigStateFileErrorsdistlistPackageSourceslistPackageSourcesWithDie prepareTreeprepareSnapshotTreesnapshotPackagesnapshotVersiondateToSnapshotNumber createArchiveprintPackageProblemsreplcreateInternalPackageDBinitialBuildStepscomponentInitialBuildStepswriteAutogenFileshaddockcreateHaddockIndexhaddockPackagePathshscolour$fSemigroupDirectory$fMonoidDirectory$fSemigroupHaddockArgs$fMonoidHaddockArgs$fGenericHaddockArgs $fEqOutput$fReadDirectory$fShowDirectory $fEqDirectory$fOrdDirectorydefaultMainWithHooksdefaultMainWithHooksArgsdefaultMainNoReaddefaultMainWithHooksNoReaddefaultMainWithHooksNoReadArgssimpleUserHooksautoconfUserHooks WithSourceDistribution.Backpack OpenModule ModuleSourceModuleRequiresModuleProvides ModuleNameDistribution.Types.PackageName PackageName ModuleScopeemptyModuleScopeModuleWithSource FromMixinsFromBuildDependsFromExposedModulesFromOtherModulesFromSignaturesmodScopeProvidesmodScopeRequiresdispModuleSource unWithSource getSource'Distribution.Types.InstalledPackageInfoInstalledPackageInfoPreExistingComponent pc_pkgname pc_compnameipiToPreExistingComponent pc_munged_idpc_uidpc_cid pc_open_uidpc_shapeAsyncCancelledcancelAsyncMGHC.MVarMVar asyncThreadId GHC.Conc.SyncThreadIdAsync withAsyncuninterruptibleCancelwait waitCatch withAsyncNFgetShortPathName System.IO openTempFileopenBinaryTempFileopenNewBinaryFilecopyFilecopyFileChanged filesEqualcopyOrdinaryFilecopyExecutableFilesetDirOrdinaryGHC.Base++ghc-primGHC.PrimseqGHC.Listfilterzipprint Data.Tuplefstsnd otherwisemap$GHC.Real fromIntegral realToFrac Control.MonadguardjoinGHC.EnumBoundedminBoundmaxBoundEnumfromEnumpredsucctoEnumenumFromThenTo enumFromToenumFrom enumFromThen GHC.ClassesEq==/= GHC.FloatFloating**acosacoshasinasinhatanatanhcoscoshexploglogBasepisinsinhsqrttanhtan Fractional/ fromRationalrecipIntegraldivdivModmodquotquotRem toIntegerremMonadreturn>>=>> Data.DataDataFunctorfmap<$GHC.NumNum*+abssignumnegate fromInteger-Ordminmaxcompare><=>=<GHC.ReadRead readsPrecreadListReal toRational RealFloatatan2 decodeFloat encodeFloatexponent floatDigits floatRadix floatRangeisDenormalizedisIEEE isInfiniteisNaNisNegativeZero significand scaleFloatRealFracceilingfloorproperFractiontruncateroundGHC.ShowShowshow showsPrecshowListData.Typeable.InternalTypeableControl.Monad.Fail MonadFailfail Data.StringIsString fromString Applicative<**><*>pure Data.FoldableFoldableelemfoldMapfoldlfoldl'foldrlengthmaximumminimumproducttoListsumData.Traversable Traversabletraverse sequenceA GHC.GenericsGeneric Semigroup<>Monoidmconcatmemptymappend GHC.TypesBoolFalseTrueStringCharDoubleFloatIntGHC.IntInt8Int16Int32Int64 ghc-bignumGHC.Num.IntegerInteger GHC.MaybeMaybeNothingJustOrderingGTLTEQRationalIOWordGHC.WordWord8Word16Word32Word64 Data.EitherEitherLeftRightNonEmpty:|Distribution.Compat.Prelude traceShow traceShowIdtracefoldl1foldr1 genericRnf<<>>Distribution.Compat.NonEmptySet NonEmptySetDistribution.Compat.SemigroupgmemptygmappendDistribution.Utils.Structured StructuredDistribution.Compat.Exception catchExitcatchIOtryIOpretty-1.1.3.6Text.PrettyPrint.HughesPJ<+>deepseq-1.4.6.1Control.DeepSeqdeepseqforceNFDatarnfcontainers-0.6.5.1Data.Set.InternalSetData.Map.InternalMapbinary-0.8.9.0Data.Binary.ClassBinarygetputListput||not&&GHC.Exception.Type SomeExceptionGHC.ErrerrorerrorWithoutStackTrace undefined$!.=<<apasTypeOfconstflipidliftMliftM2orduntilwhen Alternative<|>emptysomemany MonadPlusmzeromplussubtractcurryuncurry Data.Functor<$>void Data.Functionon Data.Maybe catMaybes fromMaybeisJust isNothing listToMaybemapMaybemaybe maybeToList!!breakcycledrop dropWhileiteratelookuprepeat replicatereversescanlscanl1scanrscanr1spansplitAttake takeWhileunzipunzip3zip3zipWithzipWith3showChar showParen showStringshowsShowSGHC.Charchr^^^evengcdlcmodd GHC.UnicodeisAlpha isAlphaNumisDigitisSpaceisUppertoLowertoUpperText.ParserCombinators.ReadPReadSlex readParen Data.ProxyProxyeitherpartitionEithers Text.Read readMaybereads dropWhileEnd intersperse isPrefixOf isSuffixOflinesnubnubBy partitionsortsortByunfoldrunlinesunwordswordsallandanyconcat concatMapfindfor_notElemor sequence_ traverse_Data.Functor.ConstConstgetConst Data.TypeabletypeRepTypeRep ExceptiondisplayException toException fromExceptionGHC.IO.Exception userErrorIOErrorGHC.IOcatchevaluatethrowIOFilePathioErrorExitCode ExitSuccess ExitFailure appendFilegetChar getContentsgetLineinteractputCharputStrputStrLnreadFilereadIOreadLn writeFileData.Functor.IdentityIdentity runIdentityforfilterMfoldMunless System.Exit exitFailure exitSuccessexitWithData.List.NonEmptyheadlastnonEmptytail Data.VoidabsurdvacuousVoid Control.ArrowfirstSnocListsnoc runSnocListsetEnvunsetEnv lookupEnvgetEnvironmentArgDescrNoArgArgOrder RequireOrderPermute usageInfogetOptgetOpt'OptiontokenizeQuotedWordsDistribution.Types.BuildInfobuildToolDepends BuildInfoDistribution.Types.ComponentId ComponentIdDistribution.Types.UnitIdUnitId!Distribution.Types.ModuleRenamingModuleRenamingversion0GHC.IO.Handle.Text hGetContentshPutStr GHC.IO.HandlehCloseLinkPoint writePoint readPointfreshrepr equivalent verboseQuiet verboseFlag verboseNoFlag isVerboseFlagModuleProvidesU ModuleScopeU ModuleSubstU UnitIdUniqueUnitIdU'Distribution.Types.ModuleModuleUnitIdUModuleUModuleU'UnifRefUnifEnv unify_uniq unify_reqsunify_self_cidunify_verbosity unify_ctxunify_db unify_errsUnifyM runUnifyMliftSTGHC.STST readUnifRef writeUnifRef getUnifEnv addErrContextaddErrContextMconvertModuleSubstconvertModuleSubstUconvertUnitIdU' OpenUnitIdemptyModuleScopeUconvertIncludeconvertModuleScopeUconvertModuleProvidesconvertModuleProvidesUModuleWithSourceU UnitIdThunkU ModuleVarUaddErrfailWith failIfErrstryM convertUnitId convertModuleconvertUnitIdUconvertModuleUmixLink linkProvision unifyModuleDistribution.Pretty prettyShowforM_Writer execWritertellZ zPackageNamezVersionDigits zSupportsCppzSupportsNoRebindableSyntax zAbsolute zRelocatable zIsWindowszIsI386zIsX8664zPrefixzBindirzLibdir zDynlibdirzDatadir zLibexecdir zSysconfdirzNotzManglePkgNamerender zSynopsis zCopyright zHomepageZTool ztoolName ztoolVersionztoolXztoolYztoolZZPackagezpkgName zpkgVersionzpkgXzpkgYzpkgZ zPackageszTools zPackageKey zComponentIdzPackageVersionzNotNull zMangleStrversiongetDataFileName getBinDir getDynLibDir getDataDir getLibexecDir getSysconfDirMarkWhen NormalMark TraceWhen AlwaysTraceioeSetVerbatimioeGetVerbatimverbatimUserErroraddErrorPrefix errorPrefixprefixWithProgName getProgNameannotateErrorString withMetadataioeModifyErrorStringioeErrorStringdisplaySomeExceptionverbosityHandleGHC.IO.StdHandlesstderrstdoutDocwrapTextVerbosity withTimestampwithTrailingNewlinewithCallStackPrefix traceWhen logCommand copyFilesWith readNubList formatMsgfindExecutablemarkupInvocationunionInvocation DepUniqueKeyPackageInstalledDistribution.Types.PackageId PackageIdreadAndParseFile flattenDups FinalMatchFinalLitGlobStem globMatchessplitConstantPrefixcheckExtextensionToFlagextensionToFlag' ghcSupportedDistribution.CompilerunknownCompilerInfo abiTagStringperCompilerFlavorToListdefaultCompilerFlavorbuildCompilerIdbuildCompilerFlavorclassifyCompilerFlavorknownCompilerFlavorsCompilerFlavor OtherCompiler HaskellSuiteEtaUHCLHCJHCHeliumHBCHugsYHCNHCGHCGHCJSPerCompilerFlavor CompilerId CompilerInfocompilerInfoExtensionscompilerInfoLanguagescompilerInfoCompatcompilerInfoAbiTagcompilerInfoIdAbiTagNoAbiTagghcjsVersionImplInfoghcVersionImplInfo OpenModuleVarpackageDbArgsConfuserSpecifiedPathconfigurePrograms(Distribution.Types.VersionRange.InternalorLaterVersion CommonFlag commandHelpparsecModSubstEntrydispModSubstEntrytestOrBenchmarkHelpTextprogramDbPathsprogramDbOption"Distribution.Types.HookedBuildInfoHookedBuildInfoPackageIdentifier mkTargetInfoPackageDescriptionlibraryDistribution.Types.Executable ExecutablewithExeDistribution.Types.Benchmark BenchmarkDistribution.Types.LibraryLibraryhpcDirDistribution.Compat.GraphGraph wipeMetadatatoUnixrunConfigureScriptmkConfiguredComponenttoConfiguredComponent'"Distribution.Types.IncludeRenamingIncludeRenamingMatchmatchInexactly findMatchUserBuildTargetSingleUserBuildTargetDoubleUserBuildTargetTriplereadUserBuildTargetshowBuildTarget' matchPlusmatchPlusShadowing exactMatchesinexactMatchescheckBuildTargetsuhcLanguageExtensionsaddBuiltinVersionsinstalledPkgConfigisPkgDirmkInstalledPackageInfoconfigureToolchainfilterGhciFlags ghcArchStringDistribution.SystemArch ghcOsStringOSPlatformghcEnvironmentFileNamerenderGhcEnvironmentFileEntrytargetPlatformcomponentCxxGhcOptionscomponentAsmGhcOptionscomponentJsGhcOptionscomponentCmmGhcOptions mkGHCiLibNamemkGHCiProfLibNameghcLookupPropertygetHaskellObjectsmkGhcOptPackages substTopDircheckPackageDbEnvVarprofDetailLevelFlag BuildSources GBuildModegbuildgetUserPackageDBflibTargetName flibBuildNameexeMainModuleNamedecodeMainIsArg gbuildSources isHaskellifNeedsRPathWorkaroundextractRtsInfocheckNeedsRecompilationgetObjectFileName getRPathspopThreadedFlagguessToolFromGhcPathguessGhcPkgFromGhcPathguessHsc2hsFromGhcPathguessHaddockFromGhcPathtoPackageIndexgetInstalledPackages' hasThreadedgetCompilerArgs copyPackage copyComponentinstallDataFilesinstallIncludeFiles stubRunTestsCEFieldCETypeppCE ppCEField ppExplanation,Distribution.Types.GenericPackageDescriptionGenericPackageDescription-Distribution.PackageDescription.ConfigurationflattenPackageDescription checkSanitycheckAllGhcOptionscheckGhcOptionscheckCabalVersioncheckPackageVersionscheckPathsModuleExtensions checkPackageInfoModuleExtensionscheckAutogenModuleExtensions"checkDevelopmentOnlyFlagsBuildInfo checkDevelopmentOnlyFlagsOptions checkTarPath checkPackageFilesPreDistributioncheckGlobFilescheckSetupVersionsisGoodRelativeFilePathisGoodRelativeGlobisGoodRelativeDirectoryPathpackageVersion packageNamemungedVersion' mungedName'Package packageIdHasMungedPackageIdmungedId HasUnitIdinstalledUnitIdinstalledDependsDistribution.Types.DependencysimplifyDependency mainLibSet mkDependency depLibraries depVerRange depPkgName DependencyunsafeMkDefUnitIdgetHSLibraryNamemkLegacyUnitIdnewSimpleUnitIdmkUnitIdunUnitId DefUnitId unDefUnitId pkgVersionpkgNameDistribution.Types.AbiHash mkAbiHash unAbiHashAbiHash unComponentId mkComponentIdmkPackageNameST mkPackageNameunPackageNameST unPackageName Distribution.Types.PkgconfigNamemkPkgconfigNameunPkgconfigName PkgconfigNamegetModificationTimeposixTimeToModTime time-1.11.1.1"Data.Time.Clock.Internal.POSIXTime POSIXTimeInstMInstSIndefiniteComponentindefc_requiresindefc_providesindefc_includesInstantiatedComponent instc_instsinstc_insts_depsinstc_providesinstc_includesReadyComponent rc_open_uidrc_cid rc_component rc_exe_deps rc_publicrc_irc_uidrc_pkgid rc_depends rc_munged_id"Distribution.Types.MungedPackageIdMungedPackageIdtoReadyComponents rc_ann_iddispReadyComponentPreProcessorExtras hsSourceDirspreprocessFileknownExtrasHandlersExternalDependencyInternalDependencydispConfigStateFileErrorcurrentCabalIdcurrentCompilerId parseHeader showHeadercheckDeprecatedFlagscheckExactConfigurationdependencySatisfiableconfigureFinalizedPackage finalizePDcheckCompilerProblemsconfigureDependenciesconfigureCoverageconfigureProfilingselectDependencyconfigureRequiredProgramcheckPackageProblemscheckRelocatable findSetupFilemaybeCreateDefaultSetupScriptfindMainExeFilefindModDefFilefindIncludeFilefilterAutogenModulesallSourcesBuildInfo tarBallNamelistPackageSources'overwriteSnapshotPackageDesc dumpBuildInfoaddExtraCSourcesaddExtraCxxSourcesaddExtraCmmSourcesaddExtraAsmSourcesaddExtraJsSourcesaddExtraOtherModules addSrcDirtestSuiteExeV10AsExeDistribution.Types.TestSuite TestSuitebenchmarkExeV10asExetestSuiteLibV09AsLibAndExe Directory HaddockArgsargInterfaceFileargPackageNameargHideModulesargIgnoreExports argLinkSourceargLinkedSource argQuickJump argCssFile argContentsargGenContentsargIndex argGenIndex argBaseUrl argOutput argInterfaces argOutputDirargTitle argPrologueargPrologueFile argGhcOptions argGhcLibDir argReexports argTargetsargLibgetHaddockProg runHaddock mkHaddockArgs fromLibraryfromExecutablefromForeignLib getInterfaces hscolour'allSuffixHandlerstryGetBuildConfiggetBuildConfigLanguage.Haskell.ExtensionknownExtensionsclassifyExtensiondeprecatedExtensionsclassifyLanguageknownLanguagesLanguageUnknownLanguageGHC2021 Haskell98 Haskell2010 ExtensionUnknownExtensionEnableExtensionDisableExtensionKnownExtension RelaxedLayout!AlternativeLayoutRuleTransitionalAlternativeLayoutRuleUnliftedDatatypesOverloadedRecordUpdateOverloadedRecordDotFieldSelectorsRequiredTypeArguments LinearTypes QualifiedDoLexicalNegationUnliftedNewtypesStandaloneKindSignaturesImportQualifiedPostCUSKsEmptyDataDeriving StarIsTypeQuantifiedConstraintsNumericUnderscoresBlockArgumentsHexFloatLiterals UnboxedSums DerivingViaDerivingStrategiesTypeFamilyDependenciesOverloadedLabelsTemplateHaskellQuotesMonadFailDesugaringUndecidableSuperClasses TypeInTypeTypeApplicationsDuplicateRecordFields ApplicativeDo StrictDataStaticPointers DeriveLiftDeriveAnyClassNamedWildCardsPartialTypeSignaturesPatternSynonyms JavaScriptFFIAllowAmbiguousTypesExplicitNamespacesNullaryTypeClasses NumDecimalsBinaryLiteralsNegativeLiteralsAutoDeriveTypeable EmptyCaseOverloadedListsRoleAnnotationsParallelArraysTypeData DataKinds PolyKindsConstraintKindsUnsafe TrustworthySafe SafeImportsNondecreasingIndentationDeriveFoldableDeriveTraversable DeriveFunctorMonoLocalBindsDatatypeContextsExplicitForAllRebindableSyntax LambdaCase MultiWayIfDoAndIfThenElseNPlusKPatternsGHCForeignImportPrim TupleSectionsRegularPatterns XmlSyntax ViewPatternsMonadComprehensionsTransformListComp QuasiQuotesPostfixOperatorsNewQualifiedOperatorsImpredicativeTypesPackageImportsConstrainedClassMethods InstanceSigsDefaultSignatures DeriveGenericDeriveDataTypeable UnboxedTuplesExtendedDefaultRulesRelaxedPolyRec MonoPatBinds GADTSyntaxGADTsOverloadedStringsTraditionalRecordSyntaxDisambiguateRecordFields RecordPunsRecordWildCards TypeOperatorsLiberalTypeSynonymsCApiFFIInterruptibleFFIUnliftedFFITypes UnicodeSyntaxStandaloneDeriving TypeFamilies MagicHash HereDocumentsRestrictedTypeSynonymsExtensibleRecordsGeneralisedNewtypeDerivingGeneralizedNewtypeDeriving PatternGuardsNamedFieldPunsImplicitPreludeGenericsArrowsForeignFunctionInterfaceTemplateHaskellTypeSynonymInstances BangPatternsKindSignaturesCPPEmptyDataDeclsFlexibleInstancesFlexibleContextsImplicitParamsPatternSignaturesScopedTypeVariablesExistentialQuantificationPolymorphicComponents RankNTypes Rank2TypesFunctionalDependenciesDeepSubsumptionMonomorphismRestrictionMultiParamTypeClassesParallelListComp RecursiveDoDoRecIncoherentInstancesUndecidableInstancesStrictOverlappingInstanceslicenseFromSPDX licenseToSPDX knownLicensesDistribution.VersiontransformCaretLowertransformCaretUppertransformCaretremoveLowerBoundremoveUpperBoundsimplifyVersionRangeisSpecificVersion isNoVersionDistribution.Types.VersionRange hasLowerBound hasUpperBound isAnyVersion withinRangestripParensVersionRangenormaliseVersionRangefoldVersionRange"Distribution.Types.VersionIntervalfromVersionIntervalstoVersionIntervalsasVersionIntervalsunVersionIntervalsVersionIntervalsVersionInterval LowerBound UpperBound NoUpperBoundBoundExclusiveBoundInclusiveBoundwildcardUpperBoundmajorUpperBoundhyloVersionRangeanaVersionRangeembedVersionRangecataVersionRangeprojectVersionRangemajorBoundVersion withinVersionintersectVersionRangesunionVersionRangesorEarlierVersionearlierVersion laterVersionnotThisVersion thisVersion noVersion anyVersion VersionRange VersionRangeFIntersectVersionRangesFUnionVersionRangesFMajorBoundVersionFOrEarlierVersionFEarlierVersionFOrLaterVersionF ThisVersionF LaterVersionF alterVersion nullVersionversionNumbers mkVersion' mkVersion