hsc2hs.git
3 months agoRegenerate .travis.yml master
Ryan Scott [Tue, 12 Mar 2019 14:24:10 +0000 (10:24 -0400)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

3 months agoFactor out haskell-ci configuration
Ryan Scott [Tue, 12 Mar 2019 14:22:45 +0000 (10:22 -0400)] 
Factor out haskell-ci configuration

4 months agoRemove an unused match (#18)
Sebastian Graf [Fri, 1 Feb 2019 12:51:30 +0000 (13:51 +0100)] 
Remove an unused match (#18)

* Remove an unused match

This fixes a warning, so that we can validate with `-Werror` again.

* Add ghc-options: -Wall to hsc2hs.cabal

5 months agofix the problem where the single quote character literal was not handled correctly...
Andrew Martin [Thu, 3 Jan 2019 18:48:27 +0000 (18:48 +0000)] 
fix the problem where the single quote character literal was not handled correctly (#17)

* fix the problem where the single quote character literal was not handled correctly

* Use hsString for escaped character literals. Document why hsString works.

* correct typos in comments about quote parsing

5 months agoAccept a leading single quote for data constructor promotion (#13)
Andrew Martin [Fri, 28 Dec 2018 16:08:16 +0000 (11:08 -0500)] 
Accept a leading single quote for data constructor promotion (#13)

* Accept a leading single quote for data constructor promotion. This syntax was not previously understood by hsc2hs.

* Document the weirdness of single quotes. Correctly handle promoted data constructors that end with single quote.

* improve handling of leading whitespace in promoted data constructors, improve comments on this subject

* update changelog to reflect improved support for promoted data constructors

5 months agoMonadFail forward-compat
Herbert Valerio Riedel [Tue, 18 Dec 2018 22:03:58 +0000 (23:03 +0100)] 
MonadFail forward-compat

It turns out that the `fail` method was unused to begin with.

6 months agoTweak source-code commment to avoid offending `-haddock`
Herbert Valerio Riedel [Tue, 11 Dec 2018 14:12:55 +0000 (15:12 +0100)] 
Tweak source-code commment to avoid offending `-haddock`

Fixes #11

6 months agoRegenerate .travis.yml
Ryan Scott [Mon, 10 Dec 2018 12:01:22 +0000 (07:01 -0500)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

7 months agoRegenerate .travis.yml
Ryan Scott [Tue, 6 Nov 2018 14:03:56 +0000 (09:03 -0500)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

7 months agoBump version to 0.68.5
Ben Gamari [Wed, 24 Oct 2018 18:12:32 +0000 (14:12 -0400)] 
Bump version to 0.68.5

7 months agoAdd support for response files in wrapper script
Ben Gamari [Tue, 23 Oct 2018 19:19:43 +0000 (15:19 -0400)] 
Add support for response files in wrapper script

Reviewers: O25 HSC2HS, hvr

Subscribers: ckoparkar

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

7 months agoDrop dead wrapper logic for Darwin
Ben Gamari [Thu, 18 Oct 2018 13:54:06 +0000 (09:54 -0400)] 
Drop dead wrapper logic for Darwin

7 months agoMerge pull request #8 from angerman/feature/add-more-archs
Ben Gamari [Tue, 23 Oct 2018 20:08:32 +0000 (16:08 -0400)] 
Merge pull request #8 from angerman/feature/add-more-archs

Feature/add more archs

7 months agoSupport response files regardless of which GHC `hsc2hs` was compiled with
Herbert Valerio Riedel [Thu, 18 Oct 2018 08:20:03 +0000 (10:20 +0200)] 
Support response files regardless of which GHC `hsc2hs` was compiled with

See also https://ghc.haskell.org/trac/ghc/ticket/15758

The hsc2hs-0.68.4 release was already revised with a lower bound `base >= 4.12` to
mitigate the issue solver-side
(http://hackage.haskell.org/package/hsc2hs-0.68.4/revisions/)

This improves upon #9

7 months agoRegenerate .travis.yml
Ryan Scott [Wed, 17 Oct 2018 18:58:18 +0000 (14:58 -0400)] 
Regenerate .travis.yml

This commit was performed automatically by a script.
https://github.com/RyanGlScott/travis-maintenance

7 months agoEncode 7.0.4- and 7.2.2-specific hacks into REGENDATA
Ryan Scott [Wed, 17 Oct 2018 18:54:22 +0000 (14:54 -0400)] 
Encode 7.0.4- and 7.2.2-specific hacks into REGENDATA

9 months agoTweak lower bounds to match versions we actually test with
Herbert Valerio Riedel [Tue, 28 Aug 2018 16:29:38 +0000 (18:29 +0200)] 
Tweak lower bounds to match versions we actually test with

All lower bounds except those for `process` (due to showCommandForUser)
match the versions of boot libraries shipped w/ GHC 7.0

9 months agoFixup urls
Herbert Valerio Riedel [Wed, 7 Mar 2018 23:55:33 +0000 (00:55 +0100)] 
Fixup urls

9 months agoBump version to 0.68.4
Chaitanya Koparkar [Tue, 28 Aug 2018 16:06:25 +0000 (12:06 -0400)] 
Bump version to 0.68.4

11 months agoSmall Travis fix
Ryan Scott [Sun, 1 Jul 2018 17:10:07 +0000 (13:10 -0400)] 
Small Travis fix

11 months agoTravis: Use GHC 8.6.1
Ryan Scott [Sun, 1 Jul 2018 16:52:15 +0000 (12:52 -0400)] 
Travis: Use GHC 8.6.1

11 months agoFix import
Ben Gamari [Mon, 18 Jun 2018 16:59:39 +0000 (12:59 -0400)] 
Fix import

11 months agoEliminate redundant import of getArgs
Ben Gamari [Mon, 18 Jun 2018 16:56:30 +0000 (12:56 -0400)] 
Eliminate redundant import of getArgs

11 months agoBump containers upper bound
Ben Gamari [Mon, 18 Jun 2018 16:41:20 +0000 (12:41 -0400)] 
Bump containers upper bound

12 months agoUse GHC 8.4.3 on Travis
Ryan Scott [Sun, 3 Jun 2018 11:59:53 +0000 (07:59 -0400)] 
Use GHC 8.4.3 on Travis

13 months agoAdd support to read command line arguments supplied via response files (#9)
Chaitanya Koparkar [Thu, 10 May 2018 15:44:25 +0000 (11:44 -0400)] 
Add support to read command line arguments supplied via response files (#9)

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

13 months agoTravis: Test GHC 8.4.2
Ryan Scott [Wed, 2 May 2018 16:49:30 +0000 (12:49 -0400)] 
Travis: Test GHC 8.4.2

While I was in town, I also:

* Added a cabal.project file
* Updated .gitignore to include cabal new-build artifacts

15 months agoAdds `.string` and `.stringz` directives. Both without `\0` terminator.
Moritz Angermann [Mon, 5 Mar 2018 02:05:12 +0000 (10:05 +0800)] 
Adds `.string` and `.stringz` directives. Both without `\0` terminator.

15 months agoAdds smart constructors and support for MIPS `(x)` references.
Moritz Angermann [Mon, 5 Mar 2018 02:00:31 +0000 (10:00 +0800)] 
Adds smart constructors and support for MIPS `(x)` references.

15 months agoAdds `data8`, `stringz` directives for ia64
Moritz Angermann [Mon, 5 Mar 2018 01:52:16 +0000 (09:52 +0800)] 
Adds `data8`, `stringz` directives for ia64

15 months agoAdds `.8byte` and `.4byte`.
Moritz Angermann [Mon, 5 Mar 2018 01:49:26 +0000 (09:49 +0800)] 
Adds `.8byte` and `.4byte`.

15 months agoMove 32bit targets into 32bit tests
Moritz Angermann [Mon, 5 Mar 2018 01:47:08 +0000 (09:47 +0800)] 
Move 32bit targets into 32bit tests

15 months agoAdds `.word` directive parsing.
Moritz Angermann [Mon, 5 Mar 2018 01:44:53 +0000 (09:44 +0800)] 
Adds `.word` directive parsing.

15 months agospec: add more assembly examples surrently broken for GHC
Sergei Trofimovich [Sun, 4 Mar 2018 11:54:37 +0000 (11:54 +0000)] 
spec: add more assembly examples surrently broken for GHC

These are tests to illustrate GHC cross-compilation failures:
    https://ghc.haskell.org/trac/ghc/ticket/14889
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
15 months agoAdd GHC 8.4.1 to travis
Herbert Valerio Riedel [Sun, 4 Mar 2018 15:27:22 +0000 (16:27 +0100)] 
Add GHC 8.4.1 to travis

and update GHC 8.2.1 to GHC 8.2.2 while at it

15 months agoAdd test-data to sdist
Herbert Valerio Riedel [Sun, 4 Mar 2018 15:16:08 +0000 (16:16 +0100)] 
Add test-data to sdist

15 months agoUpdate Travis script
Herbert Valerio Riedel [Sun, 4 Mar 2018 15:10:35 +0000 (16:10 +0100)] 
Update Travis script

The previous script didn't run the testsuites yet

15 months agoAvoid using `CURRENT_PACKAGE_VERSION` macro
Herbert Valerio Riedel [Sun, 4 Mar 2018 13:00:19 +0000 (14:00 +0100)] 
Avoid using `CURRENT_PACKAGE_VERSION` macro

As this would require us to declare `cabal-version: 2.0` in the
cabal package description.

This regression was introduced in 9c13b19

Fixes #6

15 months agoMerge pull request #5 from angerman/feature/const-via-asm
Herbert Valerio Riedel [Mon, 26 Feb 2018 11:33:16 +0000 (12:33 +0100)] 
Merge pull request #5 from angerman/feature/const-via-asm

Adds a crude at&t assembly parser to resolve constants

15 months agoYAML kills a kitten again...
Herbert Valerio Riedel [Sat, 24 Feb 2018 08:48:31 +0000 (09:48 +0100)] 
YAML kills a kitten again...

15 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.

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

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

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

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

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

15 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.

18 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

18 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

18 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.

19 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

19 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`

19 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`

20 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.