summaryrefslogtreecommitdiff
path: root/compiler/utils
Commit message (Collapse)AuthorAgeFilesLines
* Use unicode quote characters in error messages etc; fixes #2507Ian Lynagh2013-02-241-1/+6
| | | | We only use the unicode characters if the locale supports them.
* Remove gblock and gunblockIan Lynagh2013-02-191-20/+4
|
* Add OverloadedLists, allowing list syntax to be overloadedSimon Peyton Jones2013-02-141-1/+3
| | | | | | | | | | | | | | | | | | | | | | | This work was all done by Achim Krause <achim.t.krause@gmail.com> George Giorgidze <giorgidze@gmail.com> Weijers Jeroen <jeroen.weijers@uni-tuebingen.de> It allows list syntax, such as [a,b], [a..b] and so on, to be overloaded so that it works for a variety of types. The design is described here: http://hackage.haskell.org/trac/ghc/wiki/OverloadedLists Eg. you can use it for maps, so that [(1,"foo"), (4,"bar")] :: Map Int String The main changes * The ExplicitList constructor of HsExpr gets witness field * Ditto ArithSeq constructor * Ditto the ListPat constructor of HsPat Everything else flows from this.
* Use throwIO rather than throwIan Lynagh2013-01-301-1/+1
|
* Make MonadIO a superclass of ExceptionMonadIan Lynagh2013-01-301-1/+2
|
* Add throwGhcExceptionIO and change a few uses of throwGhcException to use itIan Lynagh2013-01-301-1/+6
|
* StaticFlags code cleanup (fixes #7595)Jan Stolarek2013-01-281-2/+3
| | | | | | | | | Function responsible for parsing the static flags, that were spread across two modules (StaticFlags and StaticFlagParser), are now in one file. This is analogous to dynamic flags parsing, which is also contained within a single module. Signed-off-by: David Terei <davidterei@gmail.com>
* Added support to cross-compile to androidNathan2013-01-241-0/+2
| | | | Signed-off-by: David Terei <davidterei@gmail.com>
* Add support for nto-qnx (BlackBerry 10)Simon Marlow2013-01-231-0/+2
| | | | Submitted by: Stephen Paul Weber <singpolyma@singpolyma.net>
* Ship transformers with GHCIan Lynagh2013-01-021-22/+1
| | | | | This means that we can use the standard MonadIO class, rather than needing our own copy.
* Whitespace only in utils/MonadUtils.hsIan Lynagh2013-01-021-13/+6
|
* Define ListSetOps.getNth, and use itSimon Peyton Jones2013-01-021-0/+18
| | | | | | | | I was tracking down an error looking like Prelude.(!!): index too large which is very unhelpful. This patch replaces at least some uses of (!!) in GHC with getNth, which has a more helpful error message (with DEBUG anyway)
* Rename remaining FastBytes usages to ByteStringIan Lynagh2012-12-144-24/+19
|
* Remove the trivial mkFastStringFastBytes wrapperIan Lynagh2012-12-142-6/+3
|
* Use ByteString rather than FastBytes in BinaryIan Lynagh2012-12-142-32/+16
|
* Remove a couple more FastBytes functionsIan Lynagh2012-12-141-7/+4
|
* Use BS.pack instead of mkFastBytesByteListIan Lynagh2012-12-141-10/+0
|
* Inline some FastBytes/ByteString wrappersIan Lynagh2012-12-142-17/+5
| | | | Working towards removing FastBytes
* Make FastBytes a synonym for ByteStringIan Lynagh2012-12-133-96/+77
| | | | | | | | | | | A step on the way to getting rid of FastBytes slow nofib Compile times look like: -1 s.d. -2.4% +1 s.d. +3.4% Average +0.4% but looking at the times for the longer-running compilations I think the change is just noise.
* Use ByteString rather than FastBytes inside FastZStringIan Lynagh2012-12-122-21/+32
| | | | | | | Slow nofib Compile Times difference looks like just noise: -1 s.d. -2.9% +1 s.d. +2.9% Average -0.1%
* Revert "Fix pprPanic so that it doesn't throw away the SDoc part of the error."Ian Lynagh2012-12-041-2/+1
| | | | | | | This reverts commit e6ce335e8e3ba0718efd234910185e4257424562. pprPanic doesn't throw the Doc away: It gets passed in the PprPanic constructor.
* Fix pprPanic so that it doesn't throw away the SDoc part of the error.Erik de Castro Lopo2012-12-041-1/+2
|
* Replace all uses of ghcError with throwGhcException and purge ghcError.Erik de Castro Lopo2012-11-301-5/+1
|
* fix some typosGabor Greif2012-11-211-4/+4
|
* Tell the compiler about alpha, mipseb and mipsel again; fixes #7339Ian Lynagh2012-11-131-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts the compiler parts of commit 7b594a5d7ac29972db39228e9c8b7f384313f39b Author: David Terei <davidterei@gmail.com> Date: Mon Nov 21 12:05:18 2011 -0800 Remove registerised code for dead architectures: mips, ia64, alpha, hppa1, m68k In particular, we want to know whether bewareLoadStoreAlignment should return True or False for them. It also reverts commit 3fc68b5c356b39b2b52a86d953367d0021c13262 Author: Simon Marlow <marlowsd@gmail.com> Date: Wed Jan 4 11:44:02 2012 +0000 Remove missing archs (mipseb, mipsel, alpha) (#5734) It doesn't hurt to map these to ArchUnknown since we don't need to know anything specific about them, and adding them would be a pain (there are a bunch of places where we have to case-match on all the arches to avoid warnings).
* Remove unused function fmapM_maybeIan Lynagh2012-11-021-9/+0
|
* Refactoring: Make a HasModule class for getModuleIan Lynagh2012-11-021-0/+5
|
* Fix typosIan Lynagh2012-11-011-1/+1
|
* Put the DynFlags in a global variable for tracing; fixes #7304Ian Lynagh2012-10-081-4/+4
| | | | | | | | | This is an ugly kludge to make a DynFlags value available for the 'trace' functions. It may not be the value we really ought to use, but it'll be good enough for the pretty-printer to use. Ideally we'd pass the real DynFlags down to all the trace calls, but this will do for now at least.
* Merge branch 'master' of darcs.haskell.org:/srv/darcs//ghcIan Lynagh2012-10-031-1/+4
|\
| * Merge remote-tracking branch 'origin/master' into tc-untouchablesSimon Peyton Jones2012-09-282-0/+11
| |\
| * \ Merge remote-tracking branch 'origin/master' into tc-untouchablesSimon Peyton Jones2012-09-171-0/+4
| |\ \ | | | | | | | | | | | | | | | | | | | | Conflicts: compiler/typecheck/TcMType.lhs compiler/typecheck/TcSMonad.lhs
| * \ \ Merge remote-tracking branch 'origin/HEAD' into tc-untouchablesSimon Peyton Jones2012-08-291-12/+5
| |\ \ \
| * | | | Big changes on tc-untouchables branchSimon Peyton Jones2012-08-281-1/+4
| | | | | | | | | | | | | | | | | | | | (Before merging to HEAD we need to tidy up and write a proper commit message.)
* | | | | Add a flag to tell ghc to use $ORIGIN when linking program dynamicallyIan Lynagh2012-10-021-0/+12
| |_|_|/ |/| | |
* | | | Use finiteBitSize rather than bitSize when it is availableIan Lynagh2012-09-231-0/+10
| | | |
* | | | Add missing dataCast1 method to the Data Bag instanceJose Pedro Magalhaes2012-09-211-0/+1
| |_|/ |/| |
* | | Remove some more CPPIan Lynagh2012-09-101-0/+4
| |/ |/|
* | Remove Util.{isDarwinTarget,isWindowsTarget}Ian Lynagh2012-08-281-12/+5
|/
* Add "Unregisterised" as a field in the settings fileIan Lynagh2012-08-071-0/+1
| | | | | | To explicitly choose whether you want an unregisterised build you now need to use the "--enable-unregisterised"/"--disable-unregisterised" configure flags.
* Whitespace only in UniqFMIan Lynagh2012-08-051-95/+88
|
* Remove pprDefiniteTraceIan Lynagh2012-08-051-5/+1
| | | | | All uses of it are now in an IO Monad, so we don't need to use a trace-like function.
* De-orphan the Outputable Fingerprint instanceIan Lynagh2012-08-052-7/+5
|
* Whitespace only in utils/Outputable.lhsIan Lynagh2012-08-051-9/+9
|
* De-orphan the Outputable Char instanceIan Lynagh2012-08-051-0/+3
|
* Add a comment about the units of platformWordSizeIan Lynagh2012-07-241-0/+2
|
* Delay inlining 'text' so that the RULE has a chance to fireSimon Peyton Jones2012-07-231-0/+3
|
* GHC 7.4 is now required for building HEADIan Lynagh2012-07-207-338/+0
|
* Merge branch 'master' of darcs.haskell.org:/srv/darcs//ghcIan Lynagh2012-07-191-9/+1
|\
| * Remove hPrintDump and make rule dump output more consistent (#7060)Paolo Capriotti2012-07-181-9/+1
| | | | | | | | | | | | | | | | The only difference between SevDump and SevOutput in defaultLogAction is an extra blank line, so we don't need a separate hPrintDump function. Also make -ddump-to-file consistent with the stdout version, by avoiding to add the extra empty line when dumping rules.