= 2 && < 3
because internally >= is represented in terms of >, == and ||.
The fix is to use new fold that gives a view with the extra
syntactic sugar so that <= and <= can be counted as one.
]
[Modify foldVersionRange and add foldVersionRange'
Duncan Coutts **20090917032713
Ignore-this: cdb7ff28869dd8637cbc7d1a02620c5b
Now foldVersionRange gives a view with no syntactic sugar
while foldVersionRange' gives a view with the syntactic sugar.
]
[Fix the version-range parser to allow arbitrary expressions over constraints.
Malcolm.Wallace@cs.york.ac.uk**20090911111643
Previously, only a single conjunction (&&) or disjunction (||) was
Mon Dec 20 13:13:08 EST 2010 ramsdell@mitre.org
* sdist perms fix
New patches:
[sdist perms fix
ramsdell@mitre.org**20101220181308
Ignore-this: ca0ff71dc7318d12c4f64134c636a08e
] {
hunk ./Distribution/Simple/SrcDist.hs 81
( Version(versionBranch) )
import Distribution.Simple.Utils
( createDirectoryIfMissingVerbose, withUTF8FileContents, writeUTF8File
- , copyFiles, copyFileVerbose
+ , installOrdinaryFile, installOrdinaryFiles
, findFile, findFileWithExtension, matchFileGlob
, withTempDirectory, defaultPackageDesc
, die, warn, notice, setupMessage )
hunk ./Distribution/Simple/SrcDist.hs 344
createDirectoryIfMissingVerbose verbosity True (takeDirectory targetFile)
copyFileVerbose verbosity file targetFile
+copyFileVerbose :: Verbosity -> FilePath -> FilePath -> IO ()
+copyFileVerbose = installOrdinaryFile
+
+copyFiles :: Verbosity -> FilePath -> [(FilePath, FilePath)] -> IO ()
+copyFiles = installOrdinaryFiles
+
printPackageProblems :: Verbosity -> PackageDescription -> IO ()
printPackageProblems verbosity pkg_descr = do
ioChecks <- checkPackageFiles pkg_descr "."
}
Context:
[Replace uses of the old try function with the new one
Ian Lynagh **20101218230920
Ignore-this: e0a9db2f97bc3f90ceb5772944f4e25b
]
[Replace uses of the old catch function with the new one
Ian Lynagh **20101218213608]
[Add GADTSyntax to extension list
Ian Lynagh **20101218150259]
[Allow CABAL_VERSION to be defined when bootstrapping
Ian Lynagh **20101212213359
Needed for the GHC build system
]
[Add NondecreasingIndentation to Language.Haskell.Extension
Ian Lynagh **20101124223953
Ignore-this: 2d072a45d76770cf97553b0e5df9e998
]
[Export commandParseArgs
Duncan Coutts **20101105140655
Ignore-this: f452f13b130e886ecd8262c6f24a0c52
]
[Add some more extensions that GHC knows about
Ian Lynagh **20101026220409
Ignore-this: 92bbbb269985fe576798cd2cdba4ceca
]
[Whitespace only
Ian Lynagh **20101026220403
Ignore-this: 8746b070884de3ed45db486a0a49db3e
]
[Fix parsing of empty default-language fields
Ian Lynagh **20101026220312
Ignore-this: 99011d6c9af431e7c8d90c3cee364606
]
[Add support for general extension en/disabling
Ian Lynagh **20101026145503]
[Tweak a couple of types
Ian Lynagh **20101026131250]
[Generalise deprecatedExtensions
Ian Lynagh **20101026131121
It now works with Extensions rather than KnownExtensions
]
[Split known-extensions off into their own type, and remove knownExtensions
Ian Lynagh **20101025232624
The knownExtensions list had already got out of sync with the datatype.
Now we use an Enum instance to get the list of constructors.
Also, having the actual extensions in a separate type than UnknownExtension
and EnableExtension makes it easier to add extension disabling support
later.
]
[Add a test program to look for ghc extensions that are not registered
Duncan Coutts **20101025163536
Ignore-this: cf38e2434eba386b83b818a29fd5ac14
Should live in the ghc testsuite but no harm having it here too.
]
[Make the .cabal file fully 1.10-compliant
Ian Lynagh **20101020133037
Ignore-this: 66409062c8d4b698f69aa58a83b85ef1
Add Default-Language field, and change Extensions to Default-Extensions.
]
[Require "cabal-version: >= 1.10" as we use the new testsuite syntax
Ian Lynagh **20101020131829
Ignore-this: 6aecdd77f78234f0359af0509f1ba636
]
[Fix warnings: Remove duplicate imports
Ian Lynagh **20101020125710
Ignore-this: dea9d889078c729459e1ab92a8e54c08
]
[Merge conflicts
Ian Lynagh **20101020112200
Ignore-this: d96cab403511f914d9d8df1a29ca58ee
]
[Add final newline
Simon Marlow **20101013125337
Ignore-this: 99e055c7186219369902a63c63c3fd76
Something in the Windows build was complaining about the lack of a
final newline.
]
[Update the pretty printer to the current testsuite interface
Duncan Coutts **20101020120506
Ignore-this: 480a349e93be8228f81f93632cabe2c7
]
[Improve error messages about programs not being found
Duncan Coutts **20101019074436
Ignore-this: 9b4daf9a09179482049146669af59f76
Make it clear it is a program we are talking about, not a library.
]
[Add a note about the remaining issue with runhugs scripts
Duncan Coutts **20101018232248
Ignore-this: 3e83a3238d08cdb3ad9e353d43fbf7fa
]
[Add package QA checks for the new language and extensions fields
Duncan Coutts **20101018180343
Ignore-this: a063fd21e86e4e19b8152258c5a0711f
]
[Check at configure time that languages are supported by the compiler
Duncan Coutts **20101018180300
Ignore-this: e3988c2eff46129b1f2732cd9647c935
]
[Add compiler support for using the new languages and extensions fields
Duncan Coutts **20101018180151
Ignore-this: ec1b61767d492dcd2dfa6a07ace3b982
]
[Add hugs support for the languages and extensions fields
Duncan Coutts **20101018175647
Ignore-this: 9b39c392119aebbbad22a64dcf992f88
Incidentally, should fixe ticket #43.
]
[Add parsing for the new language and extensions fields
Duncan Coutts **20101018091918
Ignore-this: c59c8ef96c83f35e293c8f495b89fda6
]
[Add new language and extensions fields (internal data structures)
Duncan Coutts **20101018090620
Ignore-this: f49dd9278b0053bc441a37beeb2f6145
New fields default-language and other-languages for specifying the
base languages for the package, e.g. Haskell98, Haskell2010
New fields default-extensions and other-extensions for the language
extensions. Separate from the old extensions field.
The separation lets us express the difference between declaring to
the outside world that a package uses certain languages or extensions
and whether certain languages or extensions should be applied to
all modules in the package component.
]
[Extend the Compiler interface to list the supported languages
Duncan Coutts **20101018082608
Ignore-this: 8b1ab7cc14f35dd6604c2a85173ad48
]
[Add a Language type, starting with Haskell98 and Haskell2010
Duncan Coutts **20101018082208
Ignore-this: de80df5317b5d44900e30c947a86364b
]
[Merge and tweaks following pretty printer changes
Duncan Coutts **20101018195344
Ignore-this: 513a2b0ce02fed98f5beba0dd893eb16
]
[pretty printer fixes (FreeText starting with ., version tags, version range parens, option order).
jnf@arcor.de**20101011094517
Ignore-this: 400ac5be014f1529632bd16ffd878a92
]
[reentered accidentally lost exports
jnf@arcor.de**20100929105852
Ignore-this: 2ad4ecfac6feba4c2a59a131c05c8a40
]
[new cabal pretty printer.
jnf@arcor.de**20100929103653
Ignore-this: 43f954ec31373e327f2c29fcbf3f0865
]
[Fix old doc links
Duncan Coutts **20100727012425
Ignore-this: 9e9d0f2045adebe7bb38b5d1a7d2d71a
]
[Add note about ticket #689 about deprecated extensions
Duncan Coutts **20100622151328
Ignore-this: 56cf0027a4c10f4c07045e2ccdbb819c
]
[Head version needs cabal-version: >=1.8 due to test stanza
Duncan Coutts **20101017155521
Ignore-this: 6652a529071ccb2eb1cdeda3451aac30
]
[Remove unused cpp version definition
Duncan Coutts **20101017155218
Ignore-this: 8dc3425bd811d60d28c2eaf365ec1e66
]
[Change the way we handle the version number during bootstrapping
Duncan Coutts **20101016191252
Ignore-this: e21559acc28b7bd811dc4fe147e645b2
Means we only need to have the version in one place now. Yay.
]
[Restore compatability with ghc-6.8 and 6.6 but drop support for ghc-6.4
Duncan Coutts **20101016182714
Ignore-this: 6aef933e4bfb4a9c47021d17370805ea
]
[Add the Cabal unit tests as a test-suite stanza
Duncan Coutts **20101016165656
Ignore-this: b9abbfe867754b8bf5b02919c1f25509
Still some other tests that need hooking up to this mechanism
]
[Update the unit tests of the testsuite feature
Duncan Coutts **20101016165615
Ignore-this: bc08d2a8609943f40e901c42916072c2
]
[Rename test --human-log to just --log
Duncan Coutts **20101016153441
Ignore-this: a2ccb95759a67ae2888a2db2d2ba678d
Still have --machine-log as a separate flag
]
[Remove the test --append-human-log and --replay features
Duncan Coutts **20101016153235
Ignore-this: 23d9c6431f929cd4078c54e03928cef2
]
[Add instance Text TestShowDetails parsing and use it for --show-details flag
Duncan Coutts **20101016153015
Ignore-this: 1018e874b8acbf51bd7081df1210285
Rather than Read/Show
]
[Fix a cabal-version check so it accepts the field missing entirely
Duncan Coutts **20101016151929
Ignore-this: e30f6fe6e7f54cc5c791a3b6761e93de
]
[Add testsuites to the allBuildInfo function, used mainly in checks
Duncan Coutts **20101013172229
Ignore-this: be876b609bf1266f3928f25e94f87703
]
[Update the message for a package check
Duncan Coutts **20101013172206
Ignore-this: 875cc7c6a763321f2e3251195c9dfb1e
]
[Add a few TODOs about package checks
Duncan Coutts **20101013172128
Ignore-this: 837bda043d740f0b92549f3379d43909
]
[Check test-suite sections even when they have been disabled at configure time
Duncan Coutts **20101013171851
Ignore-this: 938113ec297b2e5c511a72c5ac8a86d
]
[Default to Haskell98 for GHC 7.x
Duncan Coutts **20101013022258
Ignore-this: c34b946f55e5ec054cc842914f58b5a5
GHC 7 defaults to Haskell2010, we stick with 98 for the moment.
We will later introduce a new language field to control this.
]
[Change the syntax and behaviour of the cabal-version field
Duncan Coutts **20101013014933
Ignore-this: c4cb33360d623ff312b5c3f2d78f730c
For historical reasons the cabal-version is specified with a version range,
to indicate the range of versions of tools that the package will work with.
We now think it makes more sense to specify the version of the Cabal spec
that the package follows. Old Cabal versions will not be able to parse simple
versions in this field. So we initially make the parser allow plain versions
but then we add a check to warn about using it prior to Cabal-1.12 at which
point it will be allowed.
Added a check about using version ranges that are not of the form '>= x.y'.
Also change behaviour to ignore upper bounds in the given version range.
]
[Fix duplicate import warnings
Ian Lynagh **20101012131227
Ignore-this: a9b51a864f95206f4d972f1e7506be55
]
[Remove the ghc Makefile stuff for the old docbook xml
Duncan Coutts **20101010210026
Ignore-this: 6c714ba98b60e15e44577b64d2de3e1c
Not woth keeping it, none of it can sensibly be reused. The GHC
devs will need to add something new for the markdown user guide.
]
[Update Makefile for new markdown user guide
Duncan Coutts **20101010205938
Ignore-this: dcb5bd072c619516e23329f170458d72
]
[Add a FIXME about parsing cabal files
Duncan Coutts **20101010203421
Ignore-this: 12804d54e81b5ea5878e52628717bc1d
]
[Refactor the missing VCS info QA check
Duncan Coutts **20101010192346
Ignore-this: fa6a50a9bd43cf9069e7cd16e23a2b4e
Starting with Marc Weber's code and just moving
it about and making it fit in a bit nicer.
]
[Remove redundant import
Duncan Coutts **20101010190724
Ignore-this: a978a6a257a31a57d07d57471f04af49
]
[Rename LocalBuildInfo extraArgs to extraConfigArgs to avoid name clashes
Duncan Coutts **20101010190036
Ignore-this: 817061002399a51cbf31da2ba002737b
]
[Add a bunch of TODOs about the test feature
Duncan Coutts **20101010173245
Ignore-this: f2acc005fef4996a2c5260356eaf219f
]
[Change how the test suite interfaces are represented, parsed and used
Duncan Coutts **20101010162526
Ignore-this: 8773e7756fc23bc04c9e5b2b14031512
Also, stick to version 0.9 of the "detailed" test interface, since it's
not quite finalised yet. Misc other minor code cleanups.
]
[Added test suites to Cabal User Guide
Thomas Tuegel **20100811141332
Ignore-this: 3975acc803fdba809ca1c8abeef21677
Ticket #215 (Overhaul support for packages' tests).
]
[Removed "$stdio" from acceptable template variables
Thomas Tuegel **20100810201828
Ignore-this: c50e05e9a73c726567eff0a364f29750
Ticket #215 (Overhaul support for packages' tests). In the usage message, the
template variable "$stdio" was incorrectly listed as being available in the
"--human-log" and "--machine-log" flags. The variable has been removed.
]
[Added --test-option(s) flags
Thomas Tuegel **20100809161341
Ignore-this: cea82267bbc0b16d5f21bfc086285905
Ticket #215 (Overhaul support for packages' tests). This patch adds the
--test-option(s) flags for passing command-line options to test executables.
]
[Respect verbosity flag when outputting test log
Thomas Tuegel **20100809151517
Ignore-this: 73668e49eeea216c27b5233c7e3fe2cb
Ticket #215 (Overhaul support for packages' tests). This patch corrects the
printing of the human-readable test log to the terminal so the setting of the
verbosity flag is respected.
]
[Added --replay option to cabal test
Thomas Tuegel **20100803164932
Ignore-this: c97d70e21d3847aa4d889304a7e94451
Ticket #215 (Overhaul support for packages' tests). This patch adds support for
using machine logs from previous runs to replay tests with the same options.
When using --replay, Cabal will replay all test suites listed in the machine log
specified; test suite names specified on the command line are ignored.
]
[Renamed "library" test suite type to "detailed"
Thomas Tuegel **20100803141125
Ignore-this: 457c1a155020303962ae55b2bcd8415c
Ticket #215 (Overhaul support for packages' tests).
]
[Fixed human test log output for failing tests
Thomas Tuegel **20100803030246
Ignore-this: f9d3ef127cdb849762af79f31a0c80c9
Ticket #215 (Overhaul support for packages' tests). This patch corrects the bug
in the human test log output to terminal where the line wrapping code in Cabal
caused terminal control codes output by the test framework to be placed
incorrectly. Line wrapping is no longer performed.
]
[Displaying human-readable test log when requested
Thomas Tuegel **20100730151818
Ignore-this: 98f0adb8e47a52a59ccb3581982157ed
Ticket #215 (Overhaul support for packages' tests). This patch causes Cabal to
display the contents of the human-readable log file on the terminal when run
with --show-details=always or when run with --show-details=failures and a
failure is detected. The structure of the test logging code has been changed
for clarity to debug a problem where test executables that write to their stderr
channel disrupt terminal output.
]
[Added debugging output to test summary
Thomas Tuegel **20100730134008
Ignore-this: 826d20639f17ae0650d1c9b8a56b43a7
Ticket #215 (Overhaul support for packages' tests).
]
[Using correct name of log file in human-readable log
Thomas Tuegel **20100730041720
Ignore-this: 3c6df44f5d6414ce1fe2b58c50590726
Ticket #215 (Overhaul support for packages' tests). Previously, human-readable
logs listed the name of the temporary file where test suite output is
initially logged.
]
[Renamed option '--test-filter' to '--show-details'
Thomas Tuegel **20100730023026
Ignore-this: 8b78eed5ccf9cb7ed6a55b86d886e5cc
Ticket #215 (Overhaul support for packages' tests).
]
[Displaying location of test suite log on terminal
Thomas Tuegel **20100729141159
Ignore-this: e98a67180c6ff1511b86e442f9acf3c1
Ticket #215 (Overhaul support for packages' tests). It was decided that
indicating the location of the human-readable test suite log made Cabal's test
runner easier to use.
]
[Passing names of test suites to run to test stage
Thomas Tuegel **20100726150811
Ignore-this: bf556a0a06fe26b132f1eb5caec21805
Ticket #215 (Overhaul support for packages' tests).
]
[Fixed deprecation warning in Distribution.TestSuite
Thomas Tuegel **20100726141448
Ignore-this: 64cd6a5a936efd6b0ee0f50564440a9d
Ticket #215 (Overhaul support for packages' tests). Warning resulted from use
of Control.OldException.
]
[Fixed help message for machine-log path template
Thomas Tuegel **20100724164652
Ignore-this: 52205830166a307eedce807e908f7a0a
Ticket #215 (Overhaul support for packages' tests). The message previously
indicated that $test-suite is acceptable in the machine log path template,
which is not true.
]
[Catching exceptions when lifting pure tests to IO
Thomas Tuegel **20100724134336
Ignore-this: 89a2265a94ee0082935d236dd64c12d4
Ticket #215 (Overhaul support for packages' tests).
]
[Using common function to name path environment variables in PathsModule and Test
Thomas Tuegel **20100722145840
Ignore-this: 5cea1a3e77acb84a162de3d1c85a3fe6
Ticket #215 (Overhaul support for packages' tests). The names of environment
variables used to set package paths at runtime were previously hard-coded into
the function that generates the paths module. A function generating the
variable names is now exported from Distribution.Simple.Build.PathsModule and
used to set the datadir in Distribution.Simple.Test to prevent breakage if the
naming scheme changes.
]
[Added documentation for machine-readable test log types
Thomas Tuegel **20100722140017
Ignore-this: 60f934e11b1c3ee4df9f48677528af47
Ticket #215 (Overhaul support for packages' tests).
]
[Improved documentation for Distribution.TestSuite
Thomas Tuegel **20100722124239
Ignore-this: f7b1261270c4815b0691ce33c664908c
Ticket #215 (Overhaul support for packages' tests).
]
[Fixed documentation errors in Distribution.Simple.Test
Thomas Tuegel **20100721221844
Ignore-this: b111e727b4a556b17c2a1eb4dfd6971b
Ticket #215 (Overhaul support for packages' tests).
]
[Renamed Distribution.TestSuite.optionLookup to lookupOption
Thomas Tuegel **20100721170724
Ignore-this: 3a5e79fd0a14d974e664a74af5cb83d1
Ticket #215 (Overhaul support for packages' tests.)
]
[Added console-style test summary information to human-readable logs
Thomas Tuegel **20100721163516
Ignore-this: 494c2220285ef4bda036ecdfd7242adf
Ticket #215 (Overhaul support for packages' tests).
]
[Added flag allowing human-readable test logs to be appended instead of overwritten
Thomas Tuegel **20100721160421
Ignore-this: f157a4830f82a4a978c1cfb1931a0258
Ticket #215 (Overhaul support for packages' tests).
]
[Added clarifying comments to Distribution.Simple.Test
Thomas Tuegel **20100721160417
Ignore-this: 100000890351a75557a6dfa0f71c419f
Ticket #215 (Overhaul support for packages' tests).
]
[Using a separate PathTemplateEnv for machine test logs
Thomas Tuegel **20100720204724
Ignore-this: 4920c6e88b8d3d3d788ba42d6b5268af
Ticket #215 (Overhaul support for packages' tests). Previously, the use of a
dummy test suite name would lead to unintuitive expansions of the PathTemplate
governing the location of the machine-readable package test log.
]
[Exporting machine log types from Distribution.Simple.Test
Thomas Tuegel **20100720204558
Ignore-this: 6920621dbabf471cef7d688904b9b1b8
Ticket #215 (Overhaul support for packages' tests). These types were exported
to enable parsing of test logs by external utilities.
]
[Added 'check' and 'optionLookup' to Distribution.TestSuite
Thomas Tuegel **20100720134707
Ignore-this: 21ef44dc0087ff8333b1722309f8fbdd
Ticket #215 (Overhaul support for packages' tests). These functions were added
for the benefit of test runner authors.
]
[Saving Options from test runs for reproducability
Thomas Tuegel **20100715180003
Ignore-this: 858c387d83e93e193f7c66df3901f6e3
Ticket #215 (Overhaul support for packages' tests). Saving the Options used
required changes to the TestSuite interface, with the Option values now being
specified as Strings and not Dynamics. This was necessary because the lack of
a Read instance for Dynamic.
]
[Improvements to test suite logging
Thomas Tuegel **20100715020549
Ignore-this: b47f4358302b283e93ccaff81db123f2
Ticket #215 (Overhaul support for packages' tests). This patch includes proper
support for both machine- and human-readable logs.
]
[Removed duplicate code for test suite interface version checks
Thomas Tuegel **20100713144835
Ignore-this: e06c264351013480a66c013ca398db4b
Ticket #215 (Overhaul support for packages' tests). Duplicate code for checking
the test suite interface version was replaced with a single function
'testVersion1 :: Version -> Bool' exported from Distribution.PackageDescription.
]
[Added QA checks for test suite name conflicts
Thomas Tuegel **20100712154401
Ignore-this: df13e2f16cf4e879f5d5f6538c6e7db8
Ticket #215 (Overhaul suppport for packages' tests).
]
[New test suite log format
Thomas Tuegel **20100708132650
Ignore-this: 96a300e6acedd0de63757713fbb1d832
Ticket #215 (Overhaul support for package's tests). This patch adds a new test
log file format based on the TestSuiteLog data structure. The interface between
Cabal and the library test suite runner has consequently changed.
]
[Inheriting existing environment for test suite executables
Thomas Tuegel **20100707222244
Ignore-this: 6f08245c83817a85c7da5a05f810abd6
Ticket #215 (Overhaul support for packages' tests). Previously, the test
runner replaced the environment for test suite executables with one containing
only the datadir path for package data files. For test suites invoking other
programs, it is necessary to preserve the system paths, so the datadir path
variable is appended to the inherited environment.
]
[Improvements to library test suite runner, including documentation
Thomas Tuegel **20100624181304
Ignore-this: 45baa7905de5423e91707f52e590bbad
Ticket #215 (Overhaul support for packages' tests).
]
[Renamed 'result' and 'getResult' to 'run' and 'runM'
Thomas Tuegel **20100623184640
Ignore-this: 7bb6dd598eaa135fcbf73e82ab0d2ce2
Ticket #215 (Overhaul support for packages' tests).
]
[Setting datadir environment variables when running tests
Thomas Tuegel **20100623183201
Ignore-this: 7a9e26c684417871609847f6e4d4883e
Ticket #215 (Overhaul support for packages' tests).
]
[Added convenience functions and default instances making export of 'Test' constructors unnecessary
Thomas Tuegel **20100623151934
Ignore-this: 1979265e345e268787b5b6fe49bdfd64
Ticket #215 (Overhaul support for packages' tests).
]
[Added support for running the default stub executables Cabal creates for library test suites
Thomas Tuegel **20100623151903
Ignore-this: 2be1bbfb07a7fc0e3a0d2c9e5bdf2252
Ticket #215 (Overhaul support for packages' tests).
]
[Removed dependency on extensible-exceptions from detailed test suite interface
Thomas Tuegel **20100623150227
Ignore-this: 50ad3ee8c2dc5f62b48aa84d0318c3e6
Ticket #215 (Overhaul support for packages' tests).
]
[Added support for building detailed library test suites
Thomas Tuegel **20100623150222
Ignore-this: 1f2a6034af9adf493088265cc8481df5
Ticket #215 (Overhaul support for packages' tests). This patch preprocesses
and builds library test suites. The fake packages are created for each test
suite, where the fake package and test suite share the same name; the packages
and libraries are registered in the inplace package database so that test
agents can build stub executables against them.
]
[Improved security of test log file creation
Thomas Tuegel **20100621114726
Ignore-this: 6fed3aa4ebcb587b48bb2a256fcbc61b
Ticket #215 (Overhaul support for packages' tests). The algorithm previously
used to name the log files for test output suffers from a known vulnerability
due to the predictability of chosen names.
]
[Added detailed test interface
Thomas Tuegel **20100617210631
Ignore-this: 161624662d6ec7946a33415ddbff4445
Ticket #215 (Overhaul support for packages' tests). This patch provides the
detailed test interface for exposing individual tests to Cabal and other test
agents. It also provides the simple function Cabal will provide as the default
test runner.
]
[Fixed test suite breakage due to TestSuite API changes
Thomas Tuegel **20100629212935
Ignore-this: 8de228836efb206e1adb833c841ae757
Ticket #215 (Overhaul support for packages' tests). The update to the
TestSuite parser which stopped disallowed configurations during parsing also
broke the existing test suite with API changes.
]
[Added --test-filter flag
Thomas Tuegel **20100624175917
Ignore-this: e8fcaddf34a42326d0f3a1081aafb724
Ticket #215 (Overhaul support for packages' tests).
]
[Qualified import of Distribution.Simple.Setup in Distribution.Simple.Haddock
Thomas Tuegel **20100623193755
Ignore-this: ec5750f56b22f67e5862036fcdd8ecee
]
[Using path templates to name test log files
Thomas Tuegel **20100622162317
Ignore-this: af6564bf6154e29e363ee343c9fc5806
Ticket #215 (Overhaul support for packages' tests).
]
[More docs about the meaning of the cabal-version field
Duncan Coutts **20101010154251
Ignore-this: 381ede9227f7a9db78f1007364660648
]
[Document how Cabal-Version affects behaviour of build-depends
Ben Millwood **20100926025550
Ignore-this: ba6367db93c15906331457a0468db436
]
[initial support for building executables with UHC
Atze Dijkstra **20100923214130
Ignore-this: bbbf1adcec2fcfe87ce1db18c804f21a
]
[Added flags related to UHC, uhcbase package
Atze Dijkstra **20100706115341
Ignore-this: f7dd2b14e3146f8844635ddcb70ac3b9
]
[Minor changes to the auto-reconfiguration feature.
Duncan Coutts **20101010144111
Ignore-this: 944f595482ea42eb1907fb1150d6d4c0
Change the messages slightly. Make configure return the
new lbi, rather than having to re-read the lbi from file
(avoiding potential infinite loop if the IO failed).
]
[Auto-reconfiguration when .cabal is newer than setup-config
Dmitry Astapov **20100825131106
Ignore-this: 22ab2b6de0251f6cf1da7c2538544d4
This patch adds "ConfigFlags" to the "LocalBuildInfo" and reuses them to
perform "configureAction" when .cabal file is changed. This has
the same effect as re-running "configure" with the most recent used
set of options, which should be the sensible thing to do.
Closes #294, #477, #309 and #518.
]
[Fix processing of ghc-shared-options
Duncan Coutts **20101009204809
Ignore-this: 571b3d70fbc705282b9fdfdafdc2f009
Original patch was:
Sun Oct 7 13:41:53 BST 2007 Thorkil Naur
* Fix processing of shared options
Re-recorded due to code churn
]
[Correct spelling of 'transative'
Duncan Coutts **20101009202836
Ignore-this: fe7ec5ae621135024403ae0aa42094c2
Original patch by:
Thu Aug 21 21:19:51 MDT 2008 dbueno@gmail.com
* Correct spelling of 'transative'.
Re-recorded due to conflict.
]
[print a warning if repository location isn't specified and the cabal project looks like being tracked by a version control system
marco-oweber@gmx.de**20091129192013
Ignore-this: 5ce5073f1793193e437353490eff0276
]
[Bump Cabal HEAD version to 1.11.0
Duncan Coutts **20101010154518
Ignore-this: 407e2b1c0de8c10f399841b3fbea1dd3
]
[TAG 1.10 branch forked
Duncan Coutts **20101010155050
Ignore-this: 7b0241166f919e2a374a2a69669b2e6b
]
[Bump Cabal version number to 1.10.0.0
Ian Lynagh **20100923141731
Ignore-this: 8b1d551dacebdd3f1b8ebdc4e040825c
]
[Bump dependencies
Ian Lynagh **20100917183849
Ignore-this: 4b0979a3f1d16c779abc3c94876ed36c
]
[add a separator before the pid suffix to the tmpdir template
Jens Petersen **20100823012755
Ignore-this: 3327cb2d1d1f199efd5c0a9e55f8cc38
Currently Cabal just appends the pid to the package name-version
which makes it hard to see the actual package version number.
This patch just inserts a '-' between name-version and pid.
]
[Mention self-referential dependency feature in Cabal >= 1.8.0.4.
ezyang@mit.edu**20100611022749
Ignore-this: 64289dc45e9b6cd83a549636c062a8a4
]
[Pass additional parameters in generated shell scripts
Matthias Kilian **20100516161230
Ignore-this: 73d7f4da34a1de1bb90f592e4febe23f
While here, simplify the argument list construction in
invocationAsShellScript a little bit.
]
[update for containers-0.4
Simon Marlow **20100903105147
Ignore-this: eefb1a1b230812397bee0a3cd2aa723
]
[Add a note explaining the logic of Igloo's previous preprocessing change
Duncan Coutts **20100820120031
Ignore-this: ae227a082ffa2890ae5e9c0261c464c4
We previously checked during preprocessing that there is some source
file for every module and produce a nice error message if not (rather
than having ghc --make fail later). We only looked for source files in
the source directories, ie not the target/output build dir, since the
build dir is where pre-processed files go, not original source files.
Igloo's change should allow builds where there is no original source file
at all, so long as there is some generated file in the build dir. In
particular this allows custom Setup.hs files to generate modules out of
thin air and for things to mostly work, even though the rest of the build
system is unaware about how the file got built.
]
[When looking for already pre-processed source files, check the build directory
Ian Lynagh **20100820001755
Fixes hscolour'ing Config.hs in GHC
]
[Type signature for local ioerror
simonpj@microsoft.com**20100816101000
Ignore-this: d6ec567b79cfbdc3aa86f541b5e9c737
]
[Add a space to the VERSION_pkg #defines
Ian Lynagh **20100805125306
We were generating things like
#define VERSION_ghc_prim"0.2.0.0"
rather than
#define VERSION_ghc_prim "0.2.0.0"
]
[Add two local type signatures
simonpj@microsoft/com**20100728163539
Ignore-this: 5c89b52c6c906429f9dc6c4c712c5206
I'm adding these type signatures to satisfy the "do not generalise
local let/where" rule that GHC is taking on.
The signatures are clearly correct, but I was surprised at the
polymorphism needed. For example
parseOptVersion :: ReadP r Version
parseOptVersion = parseQuoted ver <++ ver
where ver :: ReadP r Version
ver = parse <++ return noVersion
noVersion = Version{ versionBranch=[], versionTags=[] }
Note that 'ver' really is called at two different types! That
in turn is because of the type of (<++)
(<++) :: ReadP a a -> ReadP r a -> ReadP r a
(+++) :: ReadP r a -> ReadP r a -> ReadP r a
Note the "a a" in the first arg, which is very unusual.
For example, compare the type of (+++).
Changing it to match the type of (+++) makes ReadP fail to compile,
though, so I assume it's right as it stands. But surely this deserves
a comment?!
]
[Fix warning
Ian Lynagh **20100620180455
Ignore-this: b5913b856eacc34001eaf1198aee74df
]
[Removed extra "test-suite" field in test-suite stanza
Thomas Tuegel **20100616150948
Ignore-this: 4351031606d853474aadb09e393a52b9
Ticket #215 (Overhaul support for packages' tests). Previously, the test-suite
stanza was allowed to contain a test-suite field, such as the executable stanza
parser allows. This was removed because it is only required by legacy support
for executables and no legacy support is required for test suites.
]
[Added QA check requiring cabal-version: >= 1.9.2 for packages with test-suite stanzas
Thomas Tuegel **20100616150359
Ignore-this: 4d713596feb7aaee53d182f5ed6cb0ec
Ticket #215 (Overhaul support for packages' tests).
]
[Setting exit code indicating failure when one or more test suites fails
Thomas Tuegel **20100615123631
Ignore-this: 244d3725fd2627250887df19bd84452a
Ticket #215 (Overhaul support for packages' tests).
]
[Added test suite output logging options
Thomas Tuegel **20100615123340
Ignore-this: 28c850b6a2bf69db6aa551e0ee8999b3
Ticket #215 (Overhaul support for packages' tests).
]
[--help shows first long option and added --hyperlink-sources
Vo Minh Thu **20100608145444
Ignore-this: 8eea9aa3fc87c38131844444096c9fab
The --help option output now prints only the first (if any)
long option. Because of this, --{enable,disable}-optimisation
(british spelling) is simply added to the list of options
without testing showOrParseArgs. --hyperlink-sources is now
also accepted for the haddock command.
]
[Do not recognise the "executable" field inside an executable stanza
Duncan Coutts **20100616150146
Ignore-this: 15df99db5c5ae688fe5d1c67d24377d1
The executable field is only for the legacy pre-Cabal-1.2 stanza syntax.
]
[Parsing TestSuite through intermediate data structure
Thomas Tuegel **20100609213406
Ignore-this: 997a00dfc2128d9b7d4c8f8b3c1cd0ea
Ticket #215 (Overhaul support for packages' tests). By parsing the test suite
stanza through an intermediate data structure, we can isolate errors due to
missing required fields in the parsing stage and avoid having error handlers
througout the code.
]
[Added QA checks for executable test suites
Thomas Tuegel **20100609180636
Ignore-this: 52ccd6572f89310180372d1d3eb4393b
Ticket #215 (Overhaul support for packages' tests).
]
[Updated test suite for new test suite stanza format
Thomas Tuegel **20100608161618
Ignore-this: 7d1ec575ac5ba02eb5322becd371e4a9
Ticket #215 (Overhaul support for packages' tests).
]
[Producing more useful output when running test suites
Thomas Tuegel **20100608154847
Ignore-this: 645ea35c621dc3cd835e055228844c85
Ticket #215 (Overhaul support for packages' tests). The previous output format
made it difficult to distinguish successful test suites from failed test
suites.
]
[Using safe 'runProcess' interface to run executable test suites
Thomas Tuegel **20100608152001
Ignore-this: 38c0697bec7dc428a0a9d63bc0fce6da
Ticket #215 (Overhaul support for packages' tests). The use of the old
interface also makes it possible to log stdout and stderr without separating
the two.
]
[New test-suite stanza format with 'main-is' and 'test-module' fields
Thomas Tuegel **20100608150739
Ignore-this: 1baf9ec7c2bcfb637c4064b9b3c6112a
Ticket #215 (Overhaul support for packages' tests). Using a new format for the
test-suite stanza in the .cabal file, similar to the source-repository stanza.
]
[Consistently using 'test suite' instead of 'testsuite'
Thomas Tuegel **20100607205935
Ignore-this: 242cd1e23afc0ca2f3227421a91dd62e
Ticket #215 (Overhaul support for packages' tests).
]
[Fix haddock syntax
Ian Lynagh **20100615112848
Ignore-this: d3c3b114f6df4eeb4dbf87b2f8f8f77c
]
[Fix haddock syntax
Ian Lynagh **20100615111829
Ignore-this: 31e81b5887bc683fe58aa6eefcba40e5
]
[Use -fno-warn-deprecations in Distribution.Simple
Ian Lynagh **20100615105418
Ignore-this: 78ce8578ee05e7b2fe9b23ba7449282b
Works around:
libraries/Cabal/Distribution/Simple.hs:78:0:
Warning: In the use of `runTests'
(imported from Distribution.Simple.UserHooks):
Deprecated: "Please use the new testing interface instead!"
]
[Merge the dylib-install-name patch
Duncan Coutts **20100612162152
Ignore-this: 3fe05b2892d4bed2bdf6f23ab110e669
]
[Make it so cabal passes the dylib-install-name when building dynamic libraries on Mac OS/X.
Stephen Blackheath **20091001053101
Ignore-this: 76b7a6a834389eba436e71829510e0ce
]
[Restored 'runTests' UserHook
Thomas Tuegel **20100604175635
Ignore-this: 128369134d640522c9e5fc3008c121c2
Ticket #215 (Overhaul support for packages' tests). Deprecated 'runTests'
UserHook to maintain compatibility with old packages, but encourage authors to
update to the new interface.
]
[Logging test output to file
Thomas Tuegel **20100603210204
Ignore-this: 6f2254b3e0c330039992f01957e62a8f
Ticket #215 (Overhaul support for packages' tests). Log test output to a
uniquely named file in the system temporary directory. This avoids flooding the
terminal with long error messages.
]
[Defined constant for matching test type 'executable == 1'
Thomas Tuegel **20100603150106
Ignore-this: 9eacb8f34bf7f86b704bf1aa3ac94660
Ticket #215 (Overhaul support for packages' tests).
]
[Corrected function 'withTest' and updated documentation
Thomas Tuegel **20100602203311
Ignore-this: adb13ce3e294405e1a9706202465feb1
Ticket #215 (Overhaul support for packages' tests).
]
[Test command runs all executable testsuites
Thomas Tuegel **20100601145827
Ignore-this: 7e5ccf7c9061e52b82d1647bd3b5e1c0
Ticket #215 (Overhaul support for packages' tests). The 'test' command runs all
executable tests listed in the package description when the package is
configured with tests enabled. The exit codes and standard output/error are
collected and reported.
]
[Using more specific error messages for unsupported test types
Thomas Tuegel **20100601145430
Ignore-this: c6fa9827e890fa37cb06c8005c14edb
Ticket #215 (Overhaul support for packages' tests). Replaced generic error
message about unsupported test types with specific error messages for each
stage of the build/test process. This required changing the type of 'withTest'
to better match 'withExe' and 'withLib'.
]
[Check testsuite during package sanity checks
Thomas Tuegel **20100527204242
Ignore-this: 1a80a8da0d8d55778605c87abbaa7708
Ticket #215 (Overhaul support for packages' tests). Check for
duplicate testsuite name or modules during 'cabal check'.
]
[Check for duplicate testsuite names
Thomas Tuegel **20100527195438
Ignore-this: a9425d813d5e396a834c2cb33162090c
Ticket #215 (Overhaul support for packages' tests). During
package configuration, check for testsuites with the same name
as other testsuites or executables.
]
[Conditional inclusion of testsuites
Thomas Tuegel **20100526195728
Ignore-this: a342fbd013e4c1b61f1a8c0a707c7a2f
Ticket #215 (Overhaul support for packages' tests). The
"--enable-tests" and "--disable-tests" command-line flags are
introduced, with "--disable-tests" being the default. If tests
are disabled, the testsuites are stripped from the
GenericPackageDescription during the configure stage, before
dependencies are resolved.
]
[Testsuite for Test stanza parsing
Thomas Tuegel **20100526195509
Ignore-this: 72405e3311a7b0827decd07251373176
Ticket #215 (Overhaul support for packages' tests). Parse and
finalize a simple, dummy .cabal file containing a Test stanza.
Compare with the PackageDescription it which should result
from parsing.
]
[Configure and build executable testsuites
Thomas Tuegel **20100526194355
Ignore-this: ae27f422a5565778c43bd25c553b2952
Ticket #215 (Overhaul support for packages' test). During the
build stage, executable testsuites are handled analogously to
ordinary executables. This means their sources are
preprocessed and compiled. To actually compile, the build
stage actions are performed on a dummy Executable.
]
[Parse Test stanzas
Thomas Tuegel **20100526194027
Ignore-this: aba259fefc52dd6cf95e58624a527b8a
Ticket #215 (Overhaul support for packages' tests). Test
stanzas are parsed into the GenericPackageDescription and
PackageDescription data structures.
]
[Fix QA check on version range syntax to detect use of ()'s
Duncan Coutts **20100602173703
Ignore-this: ae60f158b63b458a42086f262b2bc277
The problem was that we do the QA check on using the new version range
syntax after parsing. The new syntax allows ()'s but previously the
code threw them away in the parser stage. We now retain them in the
AST and deal with them appropriately. This now allows the QA check to
be accurate and detect things like "build-depends: base (>= 4.2)".
]
[Fix the wrapping of ghc options for the LHC backend.
Lemmih **20100602154611
Ignore-this: 92e42803c0db45403a5ef618fd5d31ef
]
[change LHC builder to use new command line interface
austin seipp **20100531173525
Ignore-this: ffece261e28f302cfbe0d7de51ed03a
]
[Add QA checks for tested-with field
Duncan Coutts **20100601174045
Ignore-this: 96fcaa07e52edd94dabfbbe546dfc9f
Not allowed invalid version ranges. Also check for use of new syntax.
]
[Bump version to 1.9.2
Duncan Coutts **20100531121711
Ignore-this: 462e00ecf4497be46209d310de16f192
]
[Make test suite dependencies less strict
Johan Tibell **20100527203753
Ignore-this: 509c4e9a5dc2fc33fc39a4c6a748fc89
]
[Fix warnings in LHC module
Duncan Coutts **20100528004559
Ignore-this: 4def35179c2509f9cd0d393ada9ffb23
]
[Add a README explaining how to build and run the test suite
Johan Tibell **20100527212701
Ignore-this: 13b5cf62708214d5fc3b40fb3662084d
Fixes ticket #693.
]
[Make ar create index for in-place libraries when building
Johan Tibell **20100527211104
Ignore-this: 93e79618b6f015cb069abaadcab96ff
Should fix ticket #318
]
[Fix building packages with ghc-6.8 or older
Duncan Coutts **20100521141048
Ignore-this: 65952598af9ac520c3d2764a8a2e63c
]
[There's no rts package for LHC.
Lemmih **20100519192710
Ignore-this: 65094c079459b6283fc5b00fa1f1aac2
]
[Fix register --global/--user
Duncan Coutts **20100515213204
Ignore-this: 86a5e9dc03e47a8dc11595d6eadb5937
It is a rather silly feature and is not guaranteed to work. Having
configured and built using one set of dbs, there's no guarantee you
can register into another set. We should probably just remove it.
]
[Add some diagnostic info to some internal errors
Ian Lynagh **20100515193810
When giving an "internal error: unexpected package db stack" error, say
what the stack is.
]
[Fix warnings
Ian Lynagh **20100509003309]
[Allow filepath-1.2.*
Simon Marlow **20100505101313
Ignore-this: c5bf7a356c3347b2d907e8ad7e2d7f3a
]
[Add the hs output dir to the C include dirs when compiling C code
Duncan Coutts **20100422001101
Ignore-this: 11ff682fcceb3e0bede08f316c46c654
This allows C files in a package to include the _stub.h files
that ghc generates. This is needed for the C code to be able
to call the C functions exported using the FFI.
]
[Add the autogen dir to the C include dirs when checking foreign libs
Duncan Coutts **20100422000908
Ignore-this: f014681ebb019fa310cbf4a87d18637e
This allows packages to generate .h files and stick them in the
autogen dir, and still have local .h files include those generated
header files. Used in gtk2hs.
]
[Do not pass the CopyFlags to the per-compiler installLib/Exe functions
Duncan Coutts **20100420225830
Ignore-this: 62277568628a3eed636c06f4df57353e
]
[Bump version number
Duncan Coutts **20100420224011
Ignore-this: 135d62045b5e6aedeeb865797b15cf53
]
[Better error message when installing for unsupported compilers
Duncan Coutts **20100420223935
Ignore-this: 2f1369d9028e1f7639e73735aa25c62
]
[Pass the exe/lib to the per-compiler installLib/Exe functions
Duncan Coutts **20100420223652
Ignore-this: 5ddfb4517bb0f89529256f8ae75d5854
So the generic code iterates over the libs/exes rather than
the per-compiler code doing that. It'll help when we have
more complex inter-component dependencies.
This is also the proper fix for ticket #525.
]
[cleaning up and removing warnings in UHC support
Andres Loeh **20100330171045
Ignore-this: 1adb659d170f9cb7478e0110dcc198f7
]
[significant progress on UHC support
Andres Loeh **20100330170211
Ignore-this: 193f161988c2f03032f3b73c290a8043
]
[started on UHC support
Andres Loeh **20091215125422
Ignore-this: d3dc77aaf26be3fc1696eaf4a9d8e0f1
]
[Use Setup.hs when calling setup
Duncan Coutts **20100321111750
Ignore-this: 117881f91837aa2755549edff49063fe
In case we've got a compiled Setup binary
]
[Add the new DoRec extension to Language.Haskell.Extension
Ian Lynagh **20100416205627
Part of GHC trac #3968.
]
[Remove BSD4 from the list of known/suggested licenses
Duncan Coutts **20100416040538
Ignore-this: 8903f1d478b7c034143f700ef0873c75
We do not ever want to suggest the use of the BSD4 license.
This will fix a QA check message and the 'cabal init' command.
This change should be safe to push into the stable 1.8 branch.
]
[Add a VERSION_<package> define for each package in cabal_macros.h
Mathieu Boespflug **20100329104632
Ignore-this: a3f8a43f9f15b044f7e9c5a31359717
The MIN_VERSION_<package> macros are useful to test whether we have at
least a given version of a dependency, but we can't extract the actual
version of dependency using this macro. This patch makes the version
of each dependency available to the code of the cabal package, which
can be useful when constructing global names in Template Haskell, for
instance.
]
[Also check compiling C headers at configure-time
Duncan Coutts **20100415063657
Ignore-this: ce1d74257f28099530eaa2cf8da4d42
So we now both check if the headers can be pre-processed and separately
if they can be compiled. If it fails the pre-processing check then it
is usually (but not always) a missing header. If it fails to compile
then it is definately borked, not missing. Error messages reflect this.
]
[better error messages for erroneous local C headers
mcallister.keegan@gmail.com**20100409022543
Ignore-this: d3840ee01cf2076fe89d14e7ccc2ccac
Addresses the issue in tickets #532, #648.
When the all-together test of C libraries and headers fails, use only the
preprocessor to probe the headers individually. If they all check out,
give a more equivocal error message and suggest -v3.
]
[document all the language extensions
mcallister.keegan@gmail.com**20100409060559
Ignore-this: 21de95e9f614235dd2c447297c33fc0f
Resolves ticket #344.
]
[Various minor improvements to c2hs support
Duncan Coutts **20100413083252
Ignore-this: 37c3a2896d2d6229408f8db300817a92
- ticket #327: require c2hs version 0.15 as minimum
- ticket #536: pass c2hs include dirs of dependent packages
- ticket #537: pass c2hs location of gcc -E
]
[Get ghc, hsc2hs and cpphs programs more robustly in preprocessing
Duncan Coutts **20100412023642
Ignore-this: 14e2d1dd686dbb3256178729c4af5331
Avoid pattern match failure in obscure circumstances
Should fix ticket #383
]
[Move .hs-boot file pre-processor hack to a more sensible place
Duncan Coutts **20100412015127
Ignore-this: 3608adbc406e99018862efa996c1ad96
]
[Also set -stubdir for haddock-stomping workaround
Duncan Coutts **20100411194550
Ignore-this: f4ca351bb11ff3ffcc1f5e0332dd9db4
Probably needed in the case of foreign exports and TH.
]
[Adjust cpp options passed to cpp, c2hs and hsc2hs
Duncan Coutts **20100411194213
Ignore-this: 7d65b0ddcaac8bdda9954aee5a81fe1d
* Not changed for cpp, just code refactored.
* For c2hs add cpp-options and the sysdefines (-D${os}_BUILD_OS etc)
* For hsc2hs add the sysdefines
]
[de-haskell98 wash2hs
gwern0@gmail.com**20100309015416
Ignore-this: 3b47d4982f1ebe40d9d78d71a9ab2d4d
]
[de-haskell98 twoMains
gwern0@gmail.com**20100309015328
Ignore-this: 48f03ca94606814463112fdcc8b9e98f
]
[Add markdown version of user guide
Duncan Coutts **20100411161012
Ignore-this: 3bee08cc1631204ade2c7d8086f52dfc
Plan is to switch over from docbook xml.
]
[Workaround the fact that haddock stomps on our precious .hi and .o files
Duncan Coutts **20100408225156
Ignore-this: 301321a9ad31195da3cf78d8a0a72edd
When using "haddock --optghc-XTemplateHaskell" haddock will write out .o
and .hi files. This is bad because it replaces the ones we previously
built. This results in broken packages later on. Of course haddock
should not do this, it should write temp files elsewhere. The workaround
is to tell haddock to write the files to a temp dir.
]
[Remove an out-of-date comment
Ian Lynagh **20100326131752]
[Factorise duplicate finding in package description checks
Duncan Coutts **20100320215132
Ignore-this: 9a0e068b05f611f77bee85ca5b943919
]
[Fix local inplace registration for ghc-6.12
Duncan Coutts **20100320172108
Ignore-this: 197ec567d3bf300c6ed6430f03a5409d
This is for the case of intra-package deps where the lib has to be
registered into a local package db. We use "-inplace" suffix for
the local installed package ids (rather than using an ABI hash).
]
[On windows, pick up ar.exe from the ghc install before looking on the $PATH
Duncan Coutts **20100320143643
Ignore-this: a3931cad3a8fd821a9b1ddd893db8c32
Some ar.exe versions floating around seem to have weird non-posix behaviour.
]
[Document the "manual" attribute of flags
Ian Lynagh **20100317203744]
[Tweak doc Makefile
Ian Lynagh **20100317202418]
[Fix mismatch between arch and os variables in D.S.InstallDirs interpolation
Andrea Vezzosi **20100119031642
Ignore-this: 3a66bd9771f294fc1f52be8824ca051b
]
[Get the correct value of $topdir on Windows with GHC 6.12.1
Ian Lynagh **20091230204613]
[Revert the change to filter out deps of non-buildable components
Duncan Coutts **20091229222533
Ignore-this: 7f6f18997e28b843422d2c55a8bce302
It does not work as intended and gives inconsistent results between
cabal install and cabal configure. The problem with the approach was
that we were filtering out the dependencies of non-buildable components
at the end. But that does not help much since if one of the deps of
the non-buildable component were not available then we would have
failed earlier with a constraint failure. A proper solution would have
to tackle it from the beginning, not just as a filter at the end.
The meaning of build-depends and buildable: False needs more thought.
]
[Silence warning about unused paramater
Duncan Coutts **20091229211649]
[Remove deprecated --copy-prefix= feature
Duncan Coutts **20091228203513
It's been deprecated since Cabal 1.1.4 (over 3 years).
The replacement since then has been --destdir=
]
[Fix generating Paths_pkgname module with hugs
Duncan Coutts **20091228202618
In the case that the progsdir is not relative to the $prefix
]
[Change preprocessModule to preprocessFile
Duncan Coutts **20091228190125
So we can stop pretending that "main-is: foo.hs" is a module name.
Also allows us to deprecate ModuleName.simple which bypasses the
ModuleName type invariant.
]
[Move registering to per-compiler modules, fix inplace register for hugs
Duncan Coutts **20091228025220]
[Add a number of TODOs
Duncan Coutts **20091228024948]
[Fix priority of the two global hugs package dbs
Duncan Coutts **20091228024849]
[Fix name clashes in hugs module
Duncan Coutts **20091228024814]
[Add parenthesis to macros in cabal_macros.h
Antoine Latter **20091229023358
Ignore-this: 5c5e7244d10bcd82da2cbf4432b30a6d
Now this like "#if !MIN_VERSION_base(4,2,0)" will work
]
[Make the datadir follow the $prefix on Windows
Duncan Coutts **20091228165056
Ignore-this: ce33a328dbf2d1e419cf6e5047bff091
This is slightly experimental, we'll see how it goes. See ticket #466.
]
[Simplify getInstalledPackages and callers
Duncan Coutts **20091223234857
Ignore-this: 7927e992e0b040347dc24530219eb8eb
No longer returns Maybe, we can find installed packages for all
the compilers we support (and this feature is a requirement for
support for new compilers).
This is an API change so cannot merge to Cabal-1.8.x branch.
]
[Implement support for hugs and nhc98 package databases
Duncan Coutts **20091223233557
Ignore-this: aa12e2a278e89544ead82d7c8d3b325a
That is, work out which packages are installed for hugs and nhc98.
In both cases there is special support for the core packages.
In future both should use the standard method when they supply
proper installed package info files for the bundled libraries.
]
[Find the version of hugs
Duncan Coutts **20091222175415
This is really hard and rather nasty.
]
[Convert XXX comments to TODO or FIXME as appropriate
Duncan Coutts **20091222160247]
[Fixes for compiling Cabal with hugs
Duncan Coutts **20091223103916
Ignore-this: f49c719d33e3909996f391e80911c51c
]
[Make lack of language extensions an error not a warning
Duncan Coutts **20091216204505
Also improve the error message somewhat
]
[Specify DOCTYPE when generating userguide html
Duncan Coutts **20091216035321
Ignore-this: 9d3b09e3c593a8d5f39b691ef2ceb377
Useless docbook tools.
]
[Registering packages needs all the package dbs listed
Duncan Coutts **20091211133233
Ignore-this: 249cc7ae1452bfa8e970f0ba24d4ff5f
Important for the case of registering inplace when we're using a
specific package db, e.g. when doing isolated builds.
]
[Switch a few distribution checks to build warnings
Duncan Coutts **20091202143549
Ignore-this: bbadf449113d009b51837bc1dd3488af
In particular the one about -prof since this leads to borked packages.
]
[Make it so cabal passes the dylib-install-name when building dynamic libraries on Mac OS/X.
Ian Lynagh **20091204144142
This is a rerecord of
Stephen Blackheath **20091001053101
to avoid conflicts.
]
[Take line endings into account in IOEncodingUTF8 mode
Duncan Coutts **20091202002553
Ignore-this: 59a60d9adaf90e94b69336bbb5619d2f
When collecting the output from programs.
]
[Install shared libraries as executable files
Ian Lynagh **20091201145349
Fixes GHC trac #3682. Patch from juhpetersen.
]
[Fix warnings
Ian Lynagh **20091129164643]
[Tweak layout to work with alternative layout rule
Ian Lynagh **20091129163614]
[Bump version in HEAD branch to 1.9.0
Duncan Coutts **20091129161734
Ignore-this: bbbc9fbb9abdee3f51bdcf972554d93d
The 1.8.x branch remains at 1.8.0.1
]
[Update changelog for 1.8.x release
Duncan Coutts **20091129161613
Ignore-this: 43b797ce87ba439869c080e0a8e20eab
]
[Package registration files are always UTF8
Duncan Coutts **20091129153341
Ignore-this: 7863e05c5514d1fee5165fda3815b116
As is the output from ghc-pkg dump.
]
[Add support for text encoding when invoking a program
Duncan Coutts **20091129153110
Ignore-this: c839875b970d31200d98ead9c8730215
Can be either locale text or specifically UTF8.
Also tidy up the rawSystemStd* variants and pass
a text/binary mode flag for the input and output.
]
[Change where we add a trailing newline when showing InstalledPackageInfo
Duncan Coutts **20091128171755
Ignore-this: 5e91f3e0988cf60572eefc374735727f
Do it in the pretty-printing rather than just before writing the file.
]
[Update docs on a couple util functions
Duncan Coutts **20091128171114
Ignore-this: f8df6d6f06dcc2f173180fa063aba091
]
[Update docs for class Package
Duncan Coutts **20091128170909
Ignore-this: 2b36ab0d8c422465d489ca2dc7010204
]
[Be less verbose when checking foreign deps
Duncan Coutts **20091128170810
Ignore-this: 576c714db6ac0dad7220f9824552c30c
]
[Add backwards compat version of findProgramOnPath
Duncan Coutts **20091128152444
Ignore-this: be475bbcbb539d2f2f834a2f0ca235f9
Break a couple fewer package's Setup.hs files
]
[Experimentally, change order of user-supplied program args
Duncan Coutts **20091120135619
Ignore-this: f9b8b4ecc68ee8b2294768c95a2ef774
Put them last rather than first.
]
[Fix building with base 3
Duncan Coutts **20091117141958
Ignore-this: 5ee71207064f5298bb40bafbf537d684
]
[Canonicalise the package deps returned by finalizePackageDescription
Duncan Coutts **20091109193556
Ignore-this: eb489503c4a9e27dd8d427cf707461f9
The guarantee is supposed to be that each package name appears at most
once with all the constraints for that dependency. The cabal-install
planner relies on this property.
]
[Improve the error message for missing sh.exe on Windows
Duncan Coutts **20091109182624
Ignore-this: 5801ce5598387ad238e61a075285ddf0
When ettempting to run ./configure scripts. Fixes ticket #403.
]
[Deprecated PatternSignatures in favor of ScopedTypeVariables
Niklas Broberg **20090603121321
Ignore-this: cc1cb044e3db25cb53e1830da34a317b
]
[JHC support requires jhc >= 0.7.2
Duncan Coutts **20091109113232
Ignore-this: 97e456357263977187c2768c957b8be7
]
[Remove some commented out code
Duncan Coutts **20091106133047
Ignore-this: f4a122d90207de861acc5af603cf55ea
]
[JHC.getInstalledPackages: remove check for --user flag, since JHC-0.7.2 supports local packages
haskell@henning-thielemann.de**20091029103515]
[JHC.buildLib: make this working for JHC-0.7.2
haskell@henning-thielemann.de**20091028223004]
[JHC.getInstalledPackages: adapt to package lists emitted by jhc-0.7.2
haskell@henning-thielemann.de**20091028211802]
[Bump minor version
Duncan Coutts **20091104180106
Ignore-this: 6ccbdc1bfa80f66cf74584ff66018582
A few changes since version 1.8.0 that was released with ghc-6.12rc1
]
[Tweak the assertion on overall package deps
Duncan Coutts **20091104175912
Ignore-this: abe2735469828829219938ee4275ebda
]
[Exclude non-buildable components when constructing the overall package deps
Duncan Coutts **20091104130435
Ignore-this: 60a11926991ce894da07f3e4c54ed257
]
[Pass profiling flag to ghc when compiling C files.
Bertram Felgenhauer **20091103165558
Ignore-this: 422eaeca8c7246170931adecc8556f15
The main effect of this change is that the PROFILING macro gets defined
when compiling C files and profiling is enabled. This is useful for code
that inspects closures.
Caveat:
The change relies on the fact that Cabal does not track dependencies
of C files but recompiles them every time. If dependency tracking is
added, we'll need different extensions for profiling and non-profiling
object files.
]
[Build with ghc-6.6
Duncan Coutts **20091028161849
Ignore-this: 5042dc4f628b68d9d9e40d33837e9818
]
[Fix haddock markup
Duncan Coutts **20091021124111
Ignore-this: 7a301d4ede384f2256b02dbf179c0d9b
]
[Only pass -B... to gcc for GHC < 6.11
Ian Lynagh **20091012144707
It is no longer needed in 6.12.
]
[Use -Wl,-R, for the gcc rpath flag.
Duncan Coutts **20091006211326
Ignore-this: 2323285313bad2ec91e4e27a0ae6177
Apparently it was only gcc on Solaris that groks -R directly,
so we have to use -Wl to pass it through to ld. Both GNU and
Solaris ld grok -R, only GNU ld accepts -rpath.
]
[Don't complain if there is no ghc rts package registered
Duncan Coutts