summaryrefslogtreecommitdiff
path: root/compiler/utils/Util.lhs
Commit message (Collapse)AuthorAgeFilesLines
...
* Make consIORef atomic.Thomas Schilling2009-08-221-4/+2
|
* generalise the type of "on"Simon Marlow2009-08-201-1/+1
|
* Make the dynamic linker thread-safe.Thomas Schilling2009-08-171-1/+10
| | | | | | | | | | | | The current implementation is rather pessimistic. The persistent linker state is now an MVar and all exported Linker functions are wrapped in modifyMVar calls. This is serves as a big lock around all linker functions. There might be a chance for more concurrency in a few places. E.g., extending the closure environment and loading packages might be independent in some cases. But for now it's better to be on the safe side.
* Remove maybePrefixMatch, using stripPrefix insteadIan Lynagh2009-07-091-10/+1
| | | | | We already require GHC 6.8 to build, and that included stripPrefix in Data.List.
* Trim unused imports detected by new unused-import codesimonpj@microsoft.com2009-07-061-2/+1
|
* Add the ability to derive instances of Functor, Foldable, Traversablesimonpj@microsoft.com2009-02-021-0/+5
| | | | | | | | | | | | This patch is a straightforward extension of the 'deriving' mechanism. The ability to derive classes Functor, Foldable, Traverable is controlled by a single flag -XDeriveFunctor. (Maybe that's a poor name.) Still to come: documentation Thanks to twanvl for developing the patch
* Improve warning for SpecConstrsimonpj@microsoft.com2008-09-151-0/+9
|
* use System.FilePath's isSearchPathSeparator instead of our ownSimon Marlow2008-08-181-12/+2
|
* Document UtilMax Bolingbroke2008-08-071-35/+38
|
* Follow changes in the base libraryIan Lynagh2008-07-311-19/+0
| | | | | TopHandler now uses the new extensible exceptions module, so we need to interact with it using the new types.
* Follow extensible exception changesIan Lynagh2008-07-301-2/+2
|
* Get building GHC itself with Cabal more-or-less workingIan Lynagh2008-07-161-2/+9
| | | | | Installing and bindist creation don't work, but they were already broken. Only tested validating with one setup.
* Remove code that isn't used now that we assume that GHC >= 6.4Ian Lynagh2008-06-201-10/+0
|
* Now that we require GHC >= 6.4.2, System.IO.Error is always availableIan Lynagh2008-06-201-1/+1
|
* Remove more ifdefferyIan Lynagh2008-06-141-1/+8
|
* Remove more ifdefferyIan Lynagh2008-06-141-1/+9
|
* Remove some ifdefferyIan Lynagh2008-06-141-1/+15
|
* Remove some CPPery with the help of a new value isWindowsHost in UtilIan Lynagh2008-06-121-2/+9
| | | | isWindowsHost is True iff mingw32_HOST_OS is defined.
* Rewrite zipLazy to be warning-free for GHC 6.4Ian Lynagh2008-05-131-1/+6
|
* Don't import FastString in HsVersions.hIan Lynagh2008-03-291-2/+0
| | | | Modules that need it import it themselves instead.
* Put debugIsOn in Util, rather than rely on it being CPPed inIan Lynagh2008-03-291-0/+16
|
* Add :run and tweak :mainIan Lynagh2008-01-191-36/+43
| | | | | | | You can now give :main a Haskell [String] as an argument, e.g. :main ["foo", "bar"] and :run is a variant that takes the name of the function to run. Also, :main now obeys the -main-is flag.
* lots of portability changes (#1405)Isaac Dupree2008-01-171-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | re-recording to avoid new conflicts was too hard, so I just put it all in one big patch :-( (besides, some of the changes depended on each other.) Here are what the component patches were: Fri Dec 28 11:02:55 EST 2007 Isaac Dupree <id@isaac.cedarswampstudios.org> * document BreakArray better Fri Dec 28 11:39:22 EST 2007 Isaac Dupree <id@isaac.cedarswampstudios.org> * properly ifdef BreakArray for GHCI Fri Jan 4 13:50:41 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * change ifs on __GLASGOW_HASKELL__ to account for... (#1405) for it not being defined. I assume it being undefined implies a compiler with relatively modern libraries but without most unportable glasgow extensions. Fri Jan 4 14:21:21 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * MyEither-->EitherString to allow Haskell98 instance Fri Jan 4 16:13:29 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * re-portabilize Pretty, and corresponding changes Fri Jan 4 17:19:55 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * Augment FastTypes to be much more complete Fri Jan 4 20:14:19 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * use FastFunctions, cleanup FastString slightly Fri Jan 4 21:00:22 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * Massive de-"#", mostly Int# --> FastInt (#1405) Fri Jan 4 21:02:49 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * miscellaneous unnecessary-extension-removal Sat Jan 5 19:30:13 EST 2008 Isaac Dupree <id@isaac.cedarswampstudios.org> * add FastFunctions
* Eliminate warnings with -DDEBUGsimonpj@microsoft.com2008-01-171-7/+7
|
* Fix slash direction on Windows with the new filePath codeIan Lynagh2008-01-161-0/+14
|
* Fix utils/Util for debug buildmainland@eecs.harvard.edu2008-01-141-0/+1
|
* Fix warnings in utils/UtilIan Lynagh2008-01-131-218/+209
|
* Use System.FilePathIan Lynagh2008-01-121-113/+11
|
* Fix the build with GHC < 6.4 (foldl1' didn't exist)Ian Lynagh2007-10-271-11/+0
|
* Fix the build with GHC < 6.4 (foldl1' didn't exist)Ian Lynagh2007-10-271-0/+11
|
* foldl1' was added to Data.List in GHC 6.4.xSimon Marlow2007-09-121-5/+15
|
* Fix CodingStyle#Warnings URLsIan Lynagh2007-09-041-1/+1
|
* Use OPTIONS rather than OPTIONS_GHC for pragmasIan Lynagh2007-09-031-2/+2
| | | | | | | Older GHCs can't parse OPTIONS_GHC. This also changes the URL referenced for the -w options from WorkingConventions#Warnings to CodingStyle#Warnings for the compiler modules.
* Add {-# OPTIONS_GHC -w #-} and some blurb to all compiler modulesIan Lynagh2007-09-011-0/+7
|
* Generalize some code dealing with SrcSpan sorting Pepe Iborra2007-08-141-1/+5
| | | | and the subspan relation, and move it to the SrcLoc module
* Add a comment about when maybePrefixMatch can be removedIan Lynagh2007-08-041-0/+2
|
* Warning Police: Unused importsMichael D. Adams2007-07-131-3/+7
|
* Remove foldl' from Util; use the Data.List one insteadIan Lynagh2007-07-061-11/+1
|
* Remove mapAccumL, mapAccumR, mapAccumBIan Lynagh2007-07-021-57/+0
| | | | | mapAccumL and mapAccumR are in Data.List now. mapAccumB is unused.
* Remove the unused "Eager monad"Ian Lynagh2007-07-021-35/+0
|
* Add a type signatureIan Lynagh2007-07-021-0/+1
|
* Remove unused functions (applyToPair, applyToFst, applyToSnd)Ian Lynagh2007-07-021-16/+0
|
* Remove unused cfst (== const)Ian Lynagh2007-07-021-9/+0
|
* Remove prefixMatch and suffixMatch from UtilIan Lynagh2007-07-021-10/+1
| | | | Use standard isPrefixOf/isSuffixOf instead.
* Remove code that is dead, as we require __GLASGOW_HASKELL__ >= 504Ian Lynagh2007-04-061-4/+0
|
* Big tidy-up of deriving codesimonpj@microsoft.com2007-01-021-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | This tidy-up, triggered by Trac #1068, re-factors the way that 'deriving' happens. It took me way longer than I had intended. The main changes, by far are to TcDeriv; everyting else is a minor consequence. While I was at it, I changed the syntax for standalone deriving, so that it goes derive instance Show (T a) (instead of "derive Show for T"). However, there's still an implicit context, generated by the deriving code, and I wonder if it shouldn't really be derive instance (..) => Show (T a) but I have left it simple for now. I also added a function Type.substTyVars, and used it here and there, which led to some one-line changes otherwise unrelated (sorry). Loose ends: * 'deriving Typeable' for indexed data types is still not right * standalone deriving should be documented
* Add new utility function, partitionWithsimonpj@microsoft.com2006-11-101-1/+10
|
* Module header tidyup #2Simon Marlow2006-10-111-15/+16
| | | | Push this further along, and fix build problems in the first patch.
* Modify toArgs to parse quotes/escapes like /bin/shrjmccall@gmail.com2006-09-171-17/+33
| | | | | | | | | | | | | Addresses ticket #197, which asks for escape sequences to be supported directly (i.e. not only in dquoted strings) on :load commands in GHCI. Fix modifies the toArgs function to parse its input like /bin/sh does, i.e. recognizing escapes anywhere and treating quoted strings as atomic chunks. Thus: :load a\ b c\"d e" "f would parse with three arguments, namely 'a b', 'c"d', and 'e f'. toArgs is used to parse arguments for both :load and :main, but doesn't appear to be used elsewhere. I see no harm in modifying both to be consistent -- in fact, the functionality is probably more useful for :main than for :load.
* Move snocView in the file, nearer the other spliting functionssimonpj@microsoft.com2006-09-231-9/+9
|