hsc2hs.git
16 months agoUpdate travis.yml and tests
Moritz Angermann [Thu, 22 Feb 2018 13:10:55 +0000 (21:10 +0800)] 
Update travis.yml and tests

update travis.yml to not try to build the testsuite on 7.0 and 7.2
which won't work, because the dependencies 'call-stack' depends
on base >= 4.5, which is a dependency of hspec-core.

Also updates the assembly files, to drop the `\n` test, which might
end up as `\12`, as `\12`, `\x0a` and `\n`, testing this properly
would require some form of normalization, which we don't have yet.

16 months agoAdds tests; more robust logic.
Moritz Angermann [Thu, 22 Feb 2018 07:51:44 +0000 (15:51 +0800)] 
Adds tests; more robust logic.

16 months agoMore `<$>` with ``fmap`` replacements.
Moritz Angermann [Wed, 21 Feb 2018 14:16:29 +0000 (22:16 +0800)] 
More `<$>` with ``fmap`` replacements.

16 months agoReplace `<$>` with ``fmap``
Moritz Angermann [Wed, 21 Feb 2018 13:51:17 +0000 (21:51 +0800)] 
Replace `<$>` with ``fmap``

16 months agoImport Word from Data.Word
Moritz Angermann [Wed, 21 Feb 2018 10:28:20 +0000 (18:28 +0800)] 
Import Word from Data.Word

16 months agoImport (<$>) from Data.Functor
Moritz Angermann [Wed, 21 Feb 2018 10:21:23 +0000 (18:21 +0800)] 
Import (<$>) from Data.Functor

16 months agoAdds a crude at&t assembly parser to resolve constants
Moritz Angermann [Wed, 21 Feb 2018 02:33:59 +0000 (10:33 +0800)] 
Adds a crude at&t assembly parser to resolve constants

Our current approach is taken from autoconf, and requires a binary search to
find constants.  This is not only very time consuming but also breaks when the
compiler fails to recognize an expression as constant.  As such we ask the
compiler to produce assembly, crudely parse that assembly and try to extract the
constant directly from the generated assembly.

19 months agoghc.mk: Use the same conditional install logic from unlit
Moritz Angermann [Thu, 30 Nov 2017 00:21:45 +0000 (19:21 -0500)] 
ghc.mk: Use the same conditional install logic from unlit

Summary:
This removes the make concurrency bug from the CrossCompilation
fix, and uses the same appraoch `utils/unlit` already uses. See:
https://git.haskell.org/ghc.git/commitdiff/ff84d052850b637b03bbb98cf05202e44886257d

Reviewers: bgamari, O25 HSC2HS, hvr

Differential Revision: https://phabricator.haskell.org/D4243

19 months agoDrop Paths_hsc2hs module from ghc.mk
Moritz Angermann [Mon, 20 Nov 2017 07:49:45 +0000 (15:49 +0800)] 
Drop Paths_hsc2hs module from ghc.mk

In 598303cbffcd230635fbce28ce4105d177fdf76a the Paths_hsc2hs module was added to the other-modules.
As such, it should be dropped from the ghc.mk

20 months agoAdd support for relative lookup of template-hsc.h (#2)
Moritz Angermann [Sun, 19 Nov 2017 11:15:05 +0000 (19:15 +0800)] 
Add support for relative lookup of template-hsc.h (#2)

If the `IN_GHC_TREE` CPP macro is defined (controlled by the `in-ghc-tree` cabal flag),
as a last resort, we also try to locate the template relative to the location of the currently
executed `hsc2hs`. Note that this is a hack to work around
only partial relocatable support in cabal, and is here to allow the `hsc2hs`
built and shipped with ghc to be relocatable with the ghc
binary distribution it ships with.

Note that on Windows, `getExecutablePath` doesn't yet operate correctly
in the presence of symlinks; but this should note have any detrimental
effects. This will be fixed/improved in future `base` version.

20 months agoAdd README
Herbert Valerio Riedel [Sat, 28 Oct 2017 17:25:27 +0000 (19:25 +0200)] 
Add README

This is basically the `hsc2hs` section from the GHC user's guide

20 months agoDeclare use of `Paths_hsc2hs` module in other-modules
Herbert Valerio Riedel [Sat, 28 Oct 2017 15:43:01 +0000 (17:43 +0200)] 
Declare use of `Paths_hsc2hs` module in other-modules

This was detected by `-Wmissing-home-modules`

20 months agoAdd Travis CI job
Herbert Valerio Riedel [Sat, 21 Oct 2017 11:12:01 +0000 (13:12 +0200)] 
Add Travis CI job

Note: GHC 7.0.4 cannot use installed `process`

21 months agoBuild utilities with the bootstrap compiler when cross compiling
Moritz Angermann [Fri, 29 Sep 2017 06:50:15 +0000 (14:50 +0800)] 
Build utilities with the bootstrap compiler when cross compiling

This should fix Trac #14297.  When building a cross compiler, we have rather little use
of utilities that do not run on the host, where the compiler runs. As such we should
build the utilities with the bootstrap (stage 0) compiler rather than witht he
in-tree (stage 1) compiler when CrossCompiling.

This used to results in the utilities we ship in the binary distribution to be built for
the wrong host.  This diff tries to rectify the situation and allow the binary distribution
to contain the utilities for the host when CrossCompiling.

See also https://phabricator.haskell.org/D4048

2 years agoUse http:// git repo url v0.68.2
Herbert Valerio Riedel [Wed, 26 Apr 2017 17:02:28 +0000 (19:02 +0200)] 
Use http:// git repo url

2 years agoBump version to 0.68.2 and prepare for release
Herbert Valerio Riedel [Wed, 26 Apr 2017 16:56:21 +0000 (18:56 +0200)] 
Bump version to 0.68.2 and prepare for release

2 years agoBump upper bound on process
Ben Gamari [Fri, 21 Apr 2017 18:20:47 +0000 (14:20 -0400)] 
Bump upper bound on process

2 years agoMake hsc_alignment work in clang
Bartosz Nitka [Wed, 15 Mar 2017 21:52:36 +0000 (17:52 -0400)] 
Make hsc_alignment work in clang

Summary:
With the old definition clang gives this error:
```
error: '(anonymous struct at example.cpp:15:3)'
  cannot be defined in a type specifier
```
This makes it work under clang.

Test Plan:
Test with https://godbolt.org/g/kIBwyP and look at the
assembly.

Reviewers: O25 HSC2HS, hvr, austin, bgamari, mpickering

Reviewed By: bgamari

Subscribers: simonmar

Differential Revision: https://phabricator.haskell.org/D3346

2 years agoTrack column numbers
Phil Ruffwind [Wed, 15 Mar 2017 15:54:45 +0000 (11:54 -0400)] 
Track column numbers

Summary:
Keep track of column numbers and inform GHC whenever the column number
could be potentially desynchronized from the original source code.  This
should fix GHC #13388 on Trac.

Test Plan: validate

Reviewers: O25 HSC2HS, hvr, bgamari

Reviewed By: bgamari

Differential Revision: https://phabricator.haskell.org/D3314

2 years agoAdd .arcconfig file
Matthew Pickering [Thu, 26 Jan 2017 16:05:51 +0000 (11:05 -0500)] 
Add .arcconfig file

Summary: Also testing submitting a patch for hsc2hs

Reviewers: austin, bgamari, hvr

Reviewed By: hvr

Subscribers: erikd, RyanGlScott, thomie

Differential Revision: https://phabricator.haskell.org/D2676

2 years agoAdd source repository stanza to cabal file
Ben Gamari [Tue, 6 Dec 2016 23:01:05 +0000 (18:01 -0500)] 
Add source repository stanza to cabal file

2 years agoBump directory upper bound to < 1.4
Ben Gamari [Tue, 6 Dec 2016 22:46:03 +0000 (17:46 -0500)] 
Bump directory upper bound to < 1.4

2 years agoBump to 0.68.1 & add changelog for release v0.68.1
Herbert Valerio Riedel [Fri, 11 Nov 2016 22:44:08 +0000 (23:44 +0100)] 
Bump to 0.68.1 & add changelog for release

2 years agoFix type signature of main test function
Erik de Castro Lopo [Fri, 4 Nov 2016 21:19:36 +0000 (08:19 +1100)] 
Fix type signature of main test function

During C compiler feature testing, the `main` function was defined
with a parameter list of `(int argc, char *argv [])` but these
parameters were not used. This results in compiler warnings when
the generated file is compiled with the `-Wextra` warning flag
added to the `cc-options` of the cabal file.

Reviewers: hvr, RyanGlScott, bgamari, rwbarton

Reviewed By: rwbarton

Differential Revision: https://phabricator.haskell.org/D2677

2 years agoFixes #12504: Double-escape paths used to build call to hsc_line
Richard Cook [Mon, 22 Aug 2016 19:14:17 +0000 (12:14 -0700)] 
Fixes #12504: Double-escape paths used to build call to hsc_line

In outHsLine, paths passed to construct invocations of hsc_line must be escaped
twice in order to generate a properly escaped string literal that will end up
in the eventual LINE pragma emitted by this code. This is especially important
on Windows paths, where backslashes would otherwise be treated as C escape
sequences and result in the incorrect Windows paths.

See https://ghc.haskell.org/trac/ghc/ticket/12504

3 years agoBump hsc2hs version to 0.68 v0.68
Herbert Valerio Riedel [Tue, 19 Apr 2016 11:39:56 +0000 (13:39 +0200)] 
Bump hsc2hs version to 0.68

This is to make sure that GHC's hsc2hs has a higher version than
the versions available on Hackage.

3 years agoAdd alignment to hsc2hs template
RyanGlScott [Sat, 19 Dec 2015 00:31:24 +0000 (01:31 +0100)] 
Add alignment to hsc2hs template

Previously, calculating alignment values was commonly done by defining a
custom macro via `#let`:

```
(y__); }, y__)
```

Not only is this tedious, but it also doesn't work in cross-compilation
mode (see #10272). It makes sense to define this in `hsc2hs` for symmetry
with `#size`, `#poke`, `#peek`, etc., as well as to make it easier to
cross-compile `.hsc` files.

Fixes #4340.

Reviewed By: thomie, erikd

Differential Revision: https://phabricator.haskell.org/D1436

GHC Trac Issues: #4340, #10272

3 years agoRelax `process` upper bound once more
Herbert Valerio Riedel [Mon, 2 Nov 2015 06:39:46 +0000 (07:39 +0100)] 
Relax `process` upper bound once more

to allow for process-1.4 which was just released

3 years agoUpdate bounds on `process`
Herbert Valerio Riedel [Sun, 1 Nov 2015 10:20:09 +0000 (11:20 +0100)] 
Update bounds on `process`

While at it, reduce need for CPP in CrossCodegen module

3 years agoReduce CPP need
Herbert Valerio Riedel [Sun, 1 Nov 2015 10:19:47 +0000 (11:19 +0100)] 
Reduce CPP need

3 years agoRewrite Applicative/Monad instances into normal-form
Herbert Valerio Riedel [Sat, 17 Oct 2015 17:41:35 +0000 (19:41 +0200)] 
Rewrite Applicative/Monad instances into normal-form

I.e. make sure `return` is defined in terms of `pure` rather than the
other way round.

3 years agoFollow changes in GHC build system
Thomas Miedema [Sat, 15 Aug 2015 12:51:57 +0000 (14:51 +0200)] 
Follow changes in GHC build system

4 years agoFix error when cross-compiling during GHC build.
Erik de Castro Lopo [Fri, 3 Apr 2015 08:38:32 +0000 (19:38 +1100)] 
Fix error when cross-compiling during GHC build.

When `hsc2hs` is built and used in the GHC build process and GHC
is being built as a cross compiler, the build process calls `hsc2hs`
with `--cflag=-Werror=unused-but-set-variable` but some of the
generated code failed with this error turned on.

Closes: https://ghc.haskell.org/trac/ghc/ticket/10237

4 years agoAllow new filepath-1.4
Herbert Valerio Riedel [Wed, 11 Mar 2015 08:45:00 +0000 (09:45 +0100)] 
Allow new filepath-1.4

See haskell/filepath@d039d5ae7c070452a443219fdb7df65508567338

4 years agoFix cross-compiling from Linux to Windows (Closes: #9524).
Erik de Castro Lopo [Sun, 8 Feb 2015 01:59:54 +0000 (12:59 +1100)] 
Fix cross-compiling from Linux to Windows (Closes: #9524).

Remove include of "../../includes/ghcconfig.h" which should really
only be a GHC-build-time include, not an include for building
external tools like this.

4 years agoUpdate .cabal file and LANGUAGE pragmas
Herbert Valerio Riedel [Sat, 27 Dec 2014 22:22:17 +0000 (23:22 +0100)] 
Update .cabal file and LANGUAGE pragmas

4 years agoM-x untabify & M-x delete-trailing-whitespace
Herbert Valerio Riedel [Sat, 27 Dec 2014 22:21:44 +0000 (23:21 +0100)] 
M-x untabify & M-x delete-trailing-whitespace

4 years agoMake --cross-compile handle negative enum values.
Stephen Paul Weber [Thu, 30 Oct 2014 04:02:50 +0000 (23:02 -0500)] 
Make --cross-compile handle negative enum values.

Signed-off-by: Austin Seipp <austin@well-typed.com>
4 years agoMake the code -Werror safe
Joachim Breitner [Wed, 1 Oct 2014 10:02:11 +0000 (12:02 +0200)] 
Make the code -Werror safe

4 years agoChange hsc2hs maintainer to ghc-devs@haskell.org
Joachim Breitner [Wed, 1 Oct 2014 09:44:49 +0000 (11:44 +0200)] 
Change hsc2hs maintainer to ghc-devs@haskell.org

as cvs-fptools@haskell.org doesn’t seem to exist any more.

4 years agoImprove the implementation of stringify
David Feuer [Wed, 1 Oct 2014 09:41:24 +0000 (11:41 +0200)] 
Improve the implementation of stringify

The new version should be faster and allocate considerably
less. It's also at least as simple as the old version.

4 years agoFix some AMP fallout
Austin Seipp [Fri, 1 Aug 2014 16:24:44 +0000 (11:24 -0500)] 
Fix some AMP fallout

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoDon't emit #define/#undef in generated .hs files ghc-7.8 ghc-7.8.1-release ghc-7.8.2-release
Reid Barton [Tue, 1 Oct 2013 17:02:26 +0000 (13:02 -0400)] 
Don't emit #define/#undef in generated .hs files

... just like they aren't emitted in the ordinary case; see outTokenHs
in C.hs.

Closes #8393.

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoFix AMP warnings in HSCParser.hs
Austin Seipp [Wed, 18 Sep 2013 17:12:07 +0000 (12:12 -0500)] 
Fix AMP warnings in HSCParser.hs

Signed-off-by: Austin Seipp <austin@well-typed.com>
5 years agoFix AMP warnings
David Luposchainsky [Fri, 6 Sep 2013 17:46:08 +0000 (19:46 +0200)] 
Fix AMP warnings

Signed-off-by: Austin Seipp <aseipp@pobox.com>
6 years agoremove HSC2HS_EXTRA options from stage0 wrapper for hsc2hs
Ian Lynagh [Sun, 21 Apr 2013 17:17:24 +0000 (18:17 +0100)] 
remove HSC2HS_EXTRA options from stage0 wrapper for hsc2hs

Patch from Stephen Blackheath.

The inplace hsc2hs is used for all stages, so we can't bake the
stage 0 options into it. The build system passes the right flags
anyway.

6 years agoFollow changes in GHC build system
Ian Lynagh [Sun, 3 Mar 2013 23:11:57 +0000 (23:11 +0000)] 
Follow changes in GHC build system

6 years agoFollow changes in GHC build system
Ian Lynagh [Sun, 3 Mar 2013 21:38:23 +0000 (21:38 +0000)] 
Follow changes in GHC build system

6 years agoStop using the deprecated System.Cmd
Ian Lynagh [Fri, 15 Feb 2013 21:51:52 +0000 (21:51 +0000)] 
Stop using the deprecated System.Cmd

6 years agoUpdate dependencies
Ian Lynagh [Fri, 30 Nov 2012 17:56:03 +0000 (17:56 +0000)] 
Update dependencies

6 years agoUse filepath's function instead of own (fixes #7191)
shelarcy [Wed, 3 Oct 2012 04:33:48 +0000 (13:33 +0900)] 
Use filepath's function instead of own (fixes #7191)

6 years agoFix when using g++ as C compiler. Patch from elaforge. Fixes ghc #7232
Ian Lynagh [Fri, 19 Oct 2012 15:28:59 +0000 (16:28 +0100)] 
Fix when using g++ as C compiler. Patch from elaforge. Fixes ghc #7232

6 years agoFollow change in GHC build system
Ian Lynagh [Wed, 3 Oct 2012 15:17:05 +0000 (16:17 +0100)] 
Follow change in GHC build system

6 years agoFollow changes in ghc build system
Ian Lynagh [Thu, 27 Sep 2012 01:00:19 +0000 (02:00 +0100)] 
Follow changes in ghc build system

6 years agoUpdate dependencies.
Paolo Capriotti [Tue, 14 Aug 2012 12:16:47 +0000 (13:16 +0100)] 
Update dependencies.

7 years agoFollow Win64 changes in GHC
Ian Lynagh [Sun, 17 Jun 2012 20:50:33 +0000 (21:50 +0100)] 
Follow Win64 changes in GHC

7 years agoDon't use stdcall on Win64: It isn't supported; ccall is used instead
Ian Lynagh [Wed, 16 May 2012 14:15:37 +0000 (15:15 +0100)] 
Don't use stdcall on Win64: It isn't supported; ccall is used instead

7 years agoRecognize huge unsigned long long values as integers when cross compiling.
Michał Masłowski [Fri, 11 May 2012 13:18:06 +0000 (15:18 +0200)] 
Recognize huge unsigned long long values as integers when cross compiling.

MIPS N32 has RLIM_INFINITY in resource.h defined as
0x7fffffffffffffffULL which doesn't fit in a 32 bit unsigned long to
which it was casted before applying this patch, so a cross build of
libraries/unix for mips64el failed.

7 years agoSupport long longs in const and enum in template-hsc.h
Ian Lynagh [Tue, 24 Apr 2012 21:04:12 +0000 (22:04 +0100)] 
Support long longs in const and enum in template-hsc.h

This is needed to support pointer-sized values on Win64.

7 years agoTweak a dependency
Ian Lynagh [Mon, 19 Mar 2012 11:48:12 +0000 (11:48 +0000)] 
Tweak a dependency

This stops inplace/bin/hsc2hs.exe appearing to be always out-of-date
on Windows.

7 years agoFix for Win64
Ian Lynagh [Thu, 15 Mar 2012 16:45:33 +0000 (16:45 +0000)] 
Fix for Win64

7 years agoUpdate .gitignore.
Paolo Capriotti [Tue, 6 Mar 2012 10:57:33 +0000 (10:57 +0000)] 
Update .gitignore.

7 years agoUpdate dependencies
Ian Lynagh [Wed, 22 Feb 2012 22:30:41 +0000 (22:30 +0000)] 
Update dependencies

7 years agoRemove -DNEW_GHC_LAYOUT in ghc.mk ghc-7.4 ghc-7.4.1-release ghc-7.4.2-release
Ian Lynagh [Sun, 6 Nov 2011 23:01:22 +0000 (23:01 +0000)] 
Remove -DNEW_GHC_LAYOUT in ghc.mk

7 years agoVarious hsc2hs improvements
Ian Lynagh [Tue, 25 Oct 2011 14:45:36 +0000 (15:45 +0100)] 
Various hsc2hs improvements

* Fix GHC trac #2897: Generate a separate "utils" C file containing
  wrappers for functions like printf. This means template-hsc.h
  doesn't need to includes any headers, so we don't pollute the C
  environment.
  (actually, we still need to include stddef.h).

* Use runProcess rather than system. It used to try to conditionally
  use runProcess if it was available, but never actually did. Now it
  uses it unconditionally.

* Some tidying up

7 years agoDon't include <HsFFI.h> in template-hsc.h; fixes #2897
Ian Lynagh [Sun, 11 Sep 2011 17:44:35 +0000 (18:44 +0100)] 
Don't include <HsFFI.h> in template-hsc.h; fixes #2897

This works around the problem of hsc2hs not knowing the path to get it
from. We don't think many, if any, users actually need it. Those that do
will have to explicitly include it themselves, and their build system
will be responsible for passing a suitable -I flag to hsc2hs (Cabal
already does so).

7 years agoRemove the support for old GHC versions
Ian Lynagh [Mon, 8 Aug 2011 20:41:44 +0000 (21:41 +0100)] 
Remove the support for old GHC versions

The conditional code was all for versions < 6.10, so old enough that
they can't be used to compile the HEAD.

Additionally, it didn't work properly. It relied on __GLASGOW_HASKELL__
being defined when compiling the C, rather than having the C print the
conditionals as part of the Haskell.

8 years agoremove duplicate code ghc-7.2 ghc-7.2.1-release ghc-7.2.2-release
Simon Marlow [Wed, 20 Jul 2011 14:41:52 +0000 (15:41 +0100)] 
remove duplicate code

8 years agoRelax a dependency
Ian Lynagh [Wed, 6 Jul 2011 19:29:08 +0000 (20:29 +0100)] 
Relax a dependency

8 years agoUnicode fix for getExecPath on Windows
Max Bolingbroke [Sat, 14 May 2011 21:35:19 +0000 (22:35 +0100)] 
Unicode fix for getExecPath on Windows

8 years agoMore flag parser refactoring ghc-darcs-git-switchover
Ian Lynagh [Thu, 24 Mar 2011 14:16:12 +0000 (14:16 +0000)] 
More flag parser refactoring

8 years agoMore flag parser refactoring
Ian Lynagh [Thu, 24 Mar 2011 13:33:59 +0000 (13:33 +0000)] 
More flag parser refactoring

8 years agoStart refactoring the flag parsing
Ian Lynagh [Thu, 24 Mar 2011 13:28:01 +0000 (13:28 +0000)] 
Start refactoring the flag parsing

8 years agoAdd a log message
Ian Lynagh [Wed, 23 Mar 2011 23:08:38 +0000 (23:08 +0000)] 
Add a log message

8 years agoFix enum cross-compilation support
Ian Lynagh [Wed, 23 Mar 2011 23:02:37 +0000 (23:02 +0000)] 
Fix enum cross-compilation support
For:
    #{enum ControlOp, ControlOp
     , controlOpAdd    = EPOLL_CTL_ADD
     , controlOpModify = EPOLL_CTL_MOD
     , controlOpDelete = EPOLL_CTL_DEL
     }
we were generating something like:
    void _hsc2hs_test19()
    {
        static int test_array[( EPOLL_CTL_ADD) > 0 ? 2 : 1];
        (void)test_array;
        static int test_array[( EPOLL_CTL_MOD) > 0 ? 2 : 1];
        (void)test_array;
        static int test_array[( EPOLL_CTL_DEL) > 0 ? 2 : 1];
        (void)test_array;
    }
which gave errors like:
    EPoll.hsc:136: error: redeclaration of ‘test_array’ with no linkage

We now wrap each
    static int test_array[( EPOLL_CTL_ADD) > 0 ? 2 : 1];
    (void)test_array;
in { ... }

8 years agoAdd the cross-compilation flags to the options parser
Ian Lynagh [Wed, 23 Mar 2011 21:23:55 +0000 (21:23 +0000)] 
Add the cross-compilation flags to the options parser

8 years agoMove code around into a more logical hierarchy
Ian Lynagh [Wed, 23 Mar 2011 20:36:50 +0000 (20:36 +0000)] 
Move code around into a more logical hierarchy

8 years agoAdd CrossCodegen module, from Brian Bloniarz
Ian Lynagh [Wed, 23 Mar 2011 19:46:50 +0000 (19:46 +0000)] 
Add CrossCodegen module, from Brian Bloniarz

8 years agoMore refactoring
Ian Lynagh [Wed, 23 Mar 2011 18:40:28 +0000 (18:40 +0000)] 
More refactoring

8 years agoMore refactoring and moving code around
Ian Lynagh [Wed, 23 Mar 2011 18:30:52 +0000 (18:30 +0000)] 
More refactoring and moving code around

8 years agoSplit off a parseFile function
Ian Lynagh [Wed, 23 Mar 2011 18:15:50 +0000 (18:15 +0000)] 
Split off a parseFile function

8 years agoMove some more code around; part of the patch from Brian Bloniarz
Ian Lynagh [Wed, 23 Mar 2011 17:57:00 +0000 (17:57 +0000)] 
Move some more code around; part of the patch from Brian Bloniarz

8 years agoAdd a runParser function; part of the patch from Brian Bloniarz
Ian Lynagh [Wed, 23 Mar 2011 17:42:55 +0000 (17:42 +0000)] 
Add a runParser function; part of the patch from Brian Bloniarz

8 years agoCommandline parser refactoring; part of patch from Brian Bloniarz
Ian Lynagh [Wed, 23 Mar 2011 17:34:35 +0000 (17:34 +0000)] 
Commandline parser refactoring; part of patch from Brian Bloniarz

8 years agoAdd --keep-files flag; patch from Brian Bloniarz
Ian Lynagh [Wed, 23 Mar 2011 17:18:56 +0000 (17:18 +0000)] 
Add --keep-files flag; patch from Brian Bloniarz

8 years agoMove a little more code around
Ian Lynagh [Wed, 23 Mar 2011 17:12:41 +0000 (17:12 +0000)] 
Move a little more code around

8 years agoFork off a DirectCodegen module; no code changes
Ian Lynagh [Wed, 23 Mar 2011 16:46:19 +0000 (16:46 +0000)] 
Fork off a DirectCodegen module; no code changes

8 years agoFork off an HSCParser module
Ian Lynagh [Wed, 23 Mar 2011 03:11:17 +0000 (03:11 +0000)] 
Fork off an HSCParser module
No code changes.

8 years agoTweak some ifdeffery
Ian Lynagh [Wed, 23 Mar 2011 02:42:56 +0000 (02:42 +0000)] 
Tweak some ifdeffery

8 years agoFollow changes in the GHC build system
Ian Lynagh [Sat, 5 Feb 2011 15:51:46 +0000 (15:51 +0000)] 
Follow changes in the GHC build system

8 years agoFollow GHC build system changes
Ian Lynagh [Fri, 7 Jan 2011 02:32:58 +0000 (02:32 +0000)] 
Follow GHC build system changes

8 years agowrite the output file in binary mode (#3837)
Simon Marlow [Wed, 22 Dec 2010 09:14:55 +0000 (09:14 +0000)] 
write the output file in binary mode (#3837)

8 years agoReplace uses of the old catch function with the new one
Ian Lynagh [Sat, 18 Dec 2010 21:35:41 +0000 (21:35 +0000)] 
Replace uses of the old catch function with the new one

8 years agoRemove haskell98 dependency
Ian Lynagh [Wed, 13 Oct 2010 19:44:18 +0000 (19:44 +0000)] 
Remove haskell98 dependency

8 years agoBump dependencies
Ian Lynagh [Fri, 17 Sep 2010 18:38:26 +0000 (18:38 +0000)] 
Bump dependencies

8 years agoUse the stage-specific CONF_CC_OPTS variables
Ian Lynagh [Fri, 23 Jul 2010 13:23:23 +0000 (13:23 +0000)] 
Use the stage-specific CONF_CC_OPTS variables

9 years agoWhen linking, put flags after the .o file.
Duncan Coutts [Sat, 5 Jun 2010 15:26:49 +0000 (15:26 +0000)] 
When linking, put flags after the .o file.
Should fix ticket #4115
Do the same for the compiler flags, mainly for consistency.

9 years agoWhen executing a program fails, also print the exit code
Duncan Coutts [Sat, 5 Jun 2010 15:29:36 +0000 (15:29 +0000)] 
When executing a program fails, also print the exit code
Should help slightly when tracking down problems, e.g. ticket 4110

9 years agoDon't put the $(TOP) path in the installed hsc2hs wrapper
Ian Lynagh [Sat, 29 May 2010 11:24:09 +0000 (11:24 +0000)] 
Don't put the $(TOP) path in the installed hsc2hs wrapper

9 years agoDon't give an empty template flag argument if there is no flag; trac #4014
Ian Lynagh [Tue, 27 Apr 2010 15:45:46 +0000 (15:45 +0000)] 
Don't give an empty template flag argument if there is no flag; trac #4014