summaryrefslogtreecommitdiff
path: root/compiler/utils/Outputable.lhs
Commit message (Collapse)AuthorAgeFilesLines
* Pass DynFlags down to pprDefiniteTraceIan Lynagh2012-06-121-2/+2
|
* Add DynFlags to the SDoc stateIan Lynagh2012-06-121-31/+33
|
* Pass DynFlags down to pprDebugAndThenIan Lynagh2012-06-121-6/+6
|
* Remove unused showsPrecSDocIan Lynagh2012-06-121-4/+1
|
* Pass DynFlags down to showSDocDumpOneLineIan Lynagh2012-06-121-2/+2
|
* Pass DynFlags down to showSDocDebugIan Lynagh2012-06-121-2/+2
|
* Pass DynFlags down to showSDocIan Lynagh2012-06-121-4/+12
|
* Redefine pprPanicFastInt in terms of panicDocIan Lynagh2012-06-121-4/+1
|
* Pass DynFlags down to showPprIan Lynagh2012-06-121-2/+2
|
* Pass DynFlags down to showSDocDumpIan Lynagh2012-06-121-2/+2
| | | | | To help with this, we now also pass DynFlags around inside the SpecM monad.
* Pass DynFlags down to showSDocUnqualIan Lynagh2012-06-111-2/+2
|
* Pass DynFlags down to showSDocForUserIan Lynagh2012-06-111-2/+2
|
* Pass DynFlags down to showSDocOneLineIan Lynagh2012-06-111-2/+2
|
* Pass DynFlags to renderWithStyleIan Lynagh2012-06-111-2/+2
|
* Pass DynFlags down to printForC and printForAsmIan Lynagh2012-06-111-4/+4
|
* Pass DynFlags down to printForUserPartWayIan Lynagh2012-06-111-2/+3
|
* Pass DynFlags down to printForUserIan Lynagh2012-06-111-2/+2
|
* Pass DynFlags down to hPrintDumpIan Lynagh2012-06-111-2/+3
|
* Make Ppr* versions of the Sorry and PgmError exceptions tooIan Lynagh2012-06-111-2/+2
|
* Change how pprPanic worksIan Lynagh2012-06-111-2/+3
| | | | | We now include the String and the SDoc in the exception, and don't flatten them into a String until near the top-level
* Change how macros like ASSERT are definedIan Lynagh2012-06-051-1/+2
| | | | | By using Haskell's debugIsOn rather than CPP's "#ifdef DEBUG", we don't need to kludge things to keep the warning checker happy etc.
* Replace printDump with a new SeverityIan Lynagh2012-05-291-5/+2
| | | | | | We now use log_action with severity SevDump, rather than calling printDump. This means that what happens to dumped info is now under the control of the GHC API user, rather than always going to stdout.
* Remove an unused importIan Lynagh2012-05-281-1/+1
|
* Remove printOutput; it's not used.Ian Lynagh2012-05-281-4/+1
|
* Rmove printErrsIan Lynagh2012-05-281-8/+1
| | | | It's no longer used
* Remove printSDoc; it's now unusedIan Lynagh2012-05-281-7/+1
|
* Improve debug WARNING messageSimon Peyton Jones2012-03-141-3/+2
|
* Improved debug printing with -dverbose-core2coreSimon Peyton Jones2012-03-041-34/+32
| | | | (Roman wanted this.)
* Mainly tidying up pretty printing of typesSimon Peyton Jones2012-02-161-12/+17
| | | | | including (a) centralising Outputable.paBrackets (b) printing the quote on promoted TyCon/DataCon
* Print more informative sizes in -dshow-passes,Simon Peyton Jones2011-12-291-1/+10
| | | | | and add intWithCommas to Outputable for printing large Int/Integers
* Tidy up pretty-printing for variablesSimon Peyton Jones2011-12-191-22/+6
| | | | | | | | We already have a class OutputableBndr; this patch adds methods pprInfixOcc and pprPrefixOcc, so that we can get rid of the hideous hack (the old) Outputable.pprHsVar. The hack was exposed by Trac #5657, which is thereby fixed.
* Tabs -> Spaces + formatting fixesDavid Terei2011-11-161-163/+159
|
* New kind-polymorphic coreJose Pedro Magalhaes2011-11-111-2/+3
| | | | | | | | | This big patch implements a kind-polymorphic core for GHC. The current implementation focuses on making sure that all kind-monomorphic programs still work in the new core; it is not yet guaranteed that kind-polymorphic programs (using the new -XPolyKinds flag) will work. For more information, see http://haskell.org/haskellwiki/GHC/Kinds
* Use -fwarn-tabs when validatingIan Lynagh2011-11-041-0/+7
| | | | | We only use it for "compiler" sources, i.e. not for libraries. Many modules have a -fno-warn-tabs kludge for now.
* Finish fixing #5529: Require that constructors are imported from all typesIan Lynagh2011-10-211-0/+5
| | | | | | We used to have a hack for Foreign.C.Types and System.Posix.Types, but I've removed that now. We also mark any constructors that we look through as "used", so that we don't get warnings about unused imports.
* More CPP removal: pprDynamicLinkerAsmLabel in CLabelIan Lynagh2011-10-021-0/+5
| | | | And some knock-on changes
* Make Outputable.quotes do what the comments saySimon Peyton Jones2011-09-291-4/+5
| | | | | | | | Outputable.quotes claimed to drop the quotes if the enclosed thing has a trailing single quote; but its implementation checked for a *leading* quote. Fixes Trac #5509
* Add support for all top-level declarations to GHCiSimon Marlow2011-09-211-6/+6
| | | | | | | | | | | | | | | | This is work mostly done by Daniel Winograd-Cort during his internship at MSR Cambridge, with some further refactoring by me. This commit adds support to GHCi for most top-level declarations that can be used in Haskell source files. Class, data, newtype, type, instance are all supported, as are Type Family-related declarations. The current set of declarations are shown by :show bindings. As with variable bindings, entities bound by newer declarations shadow earlier ones. Tests are in testsuite/tests/ghci/scripts/ghci039--ghci054. Documentation to follow.
* Fix typoIan Lynagh2011-09-171-1/+1
|
* Merge branch 'master' of http://darcs.haskell.org/ghcSimon Peyton Jones2011-07-271-0/+18
|\ | | | | | | | | | | Conflicts: compiler/coreSyn/CoreSubst.lhs compiler/rename/RnNames.lhs
| * More work towards cross-compilationIan Lynagh2011-07-151-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | There's now a variant of the Outputable class that knows what platform we're targetting: class PlatformOutputable a where pprPlatform :: Platform -> a -> SDoc pprPlatformPrec :: Platform -> Rational -> a -> SDoc and various instances have had to be converted to use that class, and we pass Platform around accordingly.
* | White space and commentsSimon Peyton Jones2011-07-271-1/+4
|/
* New functionality required for the supercompiler pluginMax Bolingbroke2011-06-291-0/+25
|
* Merge branch 'coloured-core' of https://github.com/nominolo/ghc into ↵coloured-coreIan Lynagh2011-05-081-98/+183
|\ | | | | | | coloured-core
| * Make SDoc an abstract type.Thomas Schilling2011-04-101-110/+118
| |
| * Start support for coloured SDoc output.Thomas Schilling2011-04-071-36/+113
| | | | | | | | | | | | | | The SDoc type now passes around an abstract SDocContext rather than just a PprStyle which required touching a few more files. This should also make it easier to integrate DynFlags passing, so that we can get rid of global variables.
* | Add pprDefiniteTrace and use itSimon Peyton Jones2011-04-201-1/+4
|/ | | | | | The point here is that a very few uses of pprTrace are controlled by a flag like -ddump-inlinings or -ddump-rule-firings, and we want to see that output even with -dno-debug-output
* Fix multi-line string (minor glitch in stage-1 compiler)simonpj@microsoft.com2010-11-111-2/+2
|
* Fix a #if testIan Lynagh2010-11-021-1/+1
| | | | showMultiLineString is only in >= 7.1.
* Nicer error message for #3782benl@ouroborus.net2010-10-291-7/+15
| | | | | | | | | | | | | | | | | | It now says: ghc-stage2: sorry! (this is work in progress) (GHC version 7.1.20101028 for i386-apple-darwin): Vectorise.Builtins.indexBuiltin DPH builtin function 'sumTyCon' of size '11' is not yet implemented. This function does not appear in your source program, but it is needed to compile your code in the backend. This is a known, current limitation of DPH. If you want it to to work you should send mail to cvs-ghc@haskell.org and ask what you can do to help (it might involve some GHC hacking). I added 'pprSorry' that behaves like 'pprPanic' except it say sorry! instead of panic!, and doesn't ask the user to report a bug.