summaryrefslogtreecommitdiff
path: root/compiler/utils/Outputable.lhs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Use new showMultiLineString to fix Trac #4436simonpj@microsoft.com2010-10-251-1/+11
| | | | | | There is an accompanying patch for libraries base template-haskell
* instance Outputable IntMapsimonpj@microsoft.com2010-10-251-2/+4
|
* Remove (most of) the FiniteMap wrapperIan Lynagh2010-09-141-0/+5
| | | | | | | | We still have insertList, insertListWith, deleteList which aren't in Data.Map, and foldRightWithKey which works around the fold(r)WithKey addition and deprecation.
* Super-monster patch implementing the new typechecker -- at lastsimonpj@microsoft.com2010-09-131-2/+3
| | | | | | | | | This major patch implements the new OutsideIn constraint solving algorithm in the typecheker, following our JFP paper "Modular type inference with local assumptions". Done with major help from Dimitrios Vytiniotis and Brent Yorgey.
* Send ghc progress output to stdout; fixes #3636Ian Lynagh2010-08-081-1/+4
|
* Fix panic when running "ghc -H"; trac #3364Ian Lynagh2010-06-241-1/+4
| | | | | | The problem is that showing SDoc's looks at the static flags global variables, but those are panics while we are parsing the static flags. We work around this by explicitly using a fixed prettyprinter style.
* Spelling correction for LANGUAGE pragmasMax Bolingbroke2010-04-131-2/+10
|
* Make warning printing a bit less noisysimonpj@microsoft.com2009-12-181-1/+1
| | | | Use -dppr-debug to make it noisy again
* Add Outputable.blankLine and use itsimonpj@microsoft.com2009-10-291-19/+21
|
* Make -dppr-debug print locations in HsSynsimonpj@microsoft.com2009-08-201-1/+8
| | | | | | | | | | Show SrcSpans for Located things might be overkill, but it's sometimes useful. I also added ppWhen, ppUnless :: Bool -> SDoc -> SDoc to Outputable
* Make the types we use when creating GHCi bytecode better match realityIan Lynagh2009-07-291-0/+3
| | | | | We were keeping things as Int, and then converting them to Word16 at the last minute, when really they ought to have been Word16 all along.