summaryrefslogtreecommitdiff
path: root/utils/runghc/runghc.hs
Commit message (Collapse)AuthorAgeFilesLines
* Build system: rename runghc.hs to Main.hsThomas Miedema2015-10-301-180/+0
| | | | | The build system has trouble with Main modules not called Main.hs. This change allows a hack in utils/runghc/ghc.mk to be removed.
* Change all hashbangs to /usr/bin/env (#9057)Thomas Miedema2014-09-231-1/+1
| | | | | | | | | | | | | | | | | | Summary: ``` git grep -l '#!' | xargs sed -i 's|#!.*/bin/\([^ ]*\)$|#!/usr/bin/env \1|' ``` and some manual tweaking Test Plan: harbormaster Reviewers: austin Subscribers: hvr, simonmar, ezyang, carter Differential Revision: https://phabricator.haskell.org/D237 GHC Trac Issues: #9057
* Export `Monoid(..)`/`Foldable(..)`/`Traversable(..)` from PreludeHerbert Valerio Riedel2014-09-211-1/+0
| | | | | | | | | | | | | | | This finally exposes also the methods of these 3 classes in the Prelude in order to allow to define basic class instances w/o needing imports. This almost completes the primary goal of #9586 NOTE: `fold`, `foldl'`, `foldr'`, and `toList` are not exposed yet, as they require upstream fixes for at least `containers` and `bytestring`, and are not required for defining basic instances. Reviewed By: ekmett, austin Differential Revision: https://phabricator.haskell.org/D236
* Remove LANGUAGE pragrams implied by Haskell2010Herbert Valerio Riedel2014-05-141-1/+1
| | | | | | | | | Haskell2010 implies (at least) EmptyDataDecls, ForeignFunctionInterface, PatternGuards, DoAndIfThenElse, and RelaxedPolyRec. This is a follow-up to dd92e2179e3171a0630834b773c08d416101980d Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
* runghc: Fix interaction of stdin and --ghc-argsJohn Lenz2014-01-071-7/+13
| | | | | | | | | | | | | When reading the program from standard input, runghc did not properly handle the --ghc-arg= escape for arguments to ghc which do not start with a dash, since arguments were processed twice and the first time the --ghc-arg= was stripped. Now arguments are only processed once. For backwards compatibility, a prefix of --ghc-arg=--ghc-arg= is allowed since this prefix will work on both old and new versions of ghc. This fixes #8601 Signed-off-by: Austin Seipp <austin@well-typed.com>
* Stop using the deprecated System.CmdIan Lynagh2013-02-151-1/+1
|
* Remove a couple of unnecessary lines of CPPIan Lynagh2012-05-181-2/+0
|
* Fix #6109 : error Unknown mingw32 arch.Erik de Castro Lopo2012-05-181-5/+9
|
* Don't use stdcall on Win64: It isn't supported; ccall is used insteadIan Lynagh2012-05-161-1/+9
|
* Remove unnecessary import (Windows only)Simon Peyton Jones2011-07-291-1/+0
|
* Unicode fixes, taking into account PEP383 supportMax Bolingbroke2011-05-141-9/+11
|
* Remove more dead code now we require GHC >= 6.12Ian Lynagh2010-12-151-4/+0
|
* Fix unused import warningsIan Lynagh2009-07-071-2/+0
|
* Fix warningsIan Lynagh2009-05-231-1/+0
|
* GHC new build system megapatchIan Lynagh2009-04-261-3/+1
|
* Add --version to runghc. Trac #2757.Ian Lynagh2009-03-051-0/+13
| | | | | We use the GHC version number, as the old runghc one doesn't seem very useful.
* Teach runghc about --help; fixes trac #2757Ian Lynagh2008-11-281-17/+34
|
* close the temporary Handle before removing the fileSimon Marlow2008-11-141-1/+1
|
* Fix "runghc foo" where the program is foo.hs or foo.lhsIan Lynagh2008-08-251-3/+10
|
* Fix warnings in runghcIan Lynagh2008-08-211-2/+2
|
* Fix building runghc on WindowsIan Lynagh2008-07-241-0/+6
|
* If the extension is not .lhs, runghc now treats it as .hs; fixes trac #1232Ian Lynagh2008-07-231-2/+7
|
* runghc now uses the compiler that it comes with; fixes trac #1281Ian Lynagh2008-07-231-18/+42
| | | | rather than the first one that it finds on the PATH
* More commandline flag improvementsIan Lynagh2008-06-161-1/+1
| | | | | | | * Allow -ffoo flags to be deprecated * Mark some -ffoo flags as deprecated * Avoid using deprecated flags in error messages, in the build system, etc * Add a flag to en/disable the deprecated flag warning
* Remove some of the old compat stuff now that we assume GHC 6.4Simon Marlow2008-02-081-5/+0
|
* Allow runghc to take input from stdin, just like Ruby & PythonSimon Marlow2008-02-071-5/+16
|
* Tweak runghcIan Lynagh2008-01-201-19/+11
|
* Improve runghc's argument handlingIan Lynagh2007-08-191-10/+29
|
* Make runghc warning-free and turn -Wall on in the MakefileIan Lynagh2007-08-181-4/+2
|
* Make the runghc code prettier and fix some warningsIan Lynagh2007-08-181-31/+34
|
* Make "runghc -f path-to-ghc Main.hs" workMagnus Jonsson2007-07-291-0/+2
|
* fix #1200: don't evaluate the result of mainSimon Marlow2007-03-131-1/+5
|
* Don't use compat when compiling utils with stage1Ian Lynagh2007-02-061-2/+7
|
* wrap Main.main in GHC.TopHandler.runIOFastExitSimon Marlow2007-01-051-1/+7
| | | | | | This is so that exceptions raised by Main.main do exactly the same thing as they would in a compiled program, including writing the message to stderr and shutting down with the correct exit code.
* Reorganisation of the source treeSimon Marlow2006-04-071-0/+66
Most of the other users of the fptools build system have migrated to Cabal, and with the move to darcs we can now flatten the source tree without losing history, so here goes. The main change is that the ghc/ subdir is gone, and most of what it contained is now at the top level. The build system now makes no pretense at being multi-project, it is just the GHC build system. No doubt this will break many things, and there will be a period of instability while we fix the dependencies. A straightforward build should work, but I haven't yet fixed binary/source distributions. Changes to the Building Guide will follow, too.