- Mar 15, 2017
-
-
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
-
- Nov 04, 2016
-
-
Erik de Castro Lopo authored
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
-
- Dec 19, 2015
-
-
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
-
- Dec 27, 2014
-
-
Herbert Valerio Riedel authored
-
- Oct 22, 2012
-
-
shelarcy authored
-
- Oct 25, 2011
-
-
Ian Lynagh authored
* 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
-
- Aug 08, 2011
-
-
Ian Lynagh authored
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.
-
- Mar 24, 2011
-
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
- Mar 23, 2011
-
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
-
Ian Lynagh authored
No code changes.
-
Ian Lynagh authored
-
- Dec 22, 2010
-
-
Simon Marlow authored
-
- Dec 18, 2010
-
-
Ian Lynagh authored
-
- Oct 13, 2010
-
-
Ian Lynagh authored
-
- Jun 05, 2010
-
-
Duncan Coutts authored
Should fix ticket #4115 Do the same for the compiler flags, mainly for consistency.
-
Duncan Coutts authored
Should help slightly when tracking down problems, e.g. ticket 4110
-
- Apr 20, 2010
-
-
Simon Marlow authored
-
- Mar 24, 2010
-
-
Ian Lynagh authored
-
- Mar 22, 2010
-
-
Simon Marlow authored
-
- Mar 19, 2010
-
-
Simon Marlow authored
Maybe strictly speaking it would be better to encode/decode UTF-8, but it would be a fiddle and I don't think it really matters for hsc2hs.
-
- Aug 02, 2009
-
-
Simon Marlow authored
-
- Jul 04, 2009
-
-
Ian Lynagh authored
-
- Jul 01, 2009
-
-
batterseapower authored
-
- Mar 23, 2009
-
-
Simon Marlow authored
-
- Feb 17, 2009
-
-
Ian Lynagh authored
This can still be overridden by adding a -I flag to the commandline, but it means that hsc2hs will work if no flags are given.
-
- Aug 21, 2008
-
-
Ian Lynagh authored
-
- Jul 28, 2008
-
-
Malcolm.Wallace@cs.york.ac.uk authored
The difference between #if !BUILD_NHC and #ifndef BUILD_NHC is subtle but real.
-
- Jul 27, 2008
-
-
Malcolm.Wallace@cs.york.ac.uk authored
-
- Jul 24, 2008
-
-
Ian Lynagh authored
We now use Data.Version.showVersion rather than display
-
- Jul 23, 2008
-
-
Ian Lynagh authored
-
- Jul 22, 2008
-
-
Ian Lynagh authored
-