__GLASGOW_HASKELL__=708?

2014-09-25 Thread Greg Fitzgerald
Using GHC 7.8.3 from the latest Haskell Platform on OS X 10.9.4, the __GLASGOW_HASKELL__ preprocessor symbol is being set to 708 instead of 783. I'd guess I have some stale files lying from previous versions GHC or HP, but I can't seem to find them. Any clues? $ cat wtf.hs {-# LANGUAGE CPP

Re: __GLASGOW_HASKELL__=708?

2014-09-25 Thread Greg Fitzgerald
, “GHC version numbering policy”. On Fri, Sep 26, 2014 at 11:09 AM, Greg Fitzgerald gari...@gmail.com wrote: Using GHC 7.8.3 from the latest Haskell Platform on OS X 10.9.4, the __GLASGOW_HASKELL__ preprocessor symbol is being set to 708 instead of 783. I'd guess I have some stale files lying

Re: Hoopl vs LLVM?

2012-12-12 Thread Greg Fitzgerald
On Wed, Dec 12, 2012 at 4:35 AM, Simon Marlow marlo...@gmail.com wrote: Now, all that LLVM knows is that z was read from Sp[8], it has no more information about its value. Are you saying Hoopl can deduce the original form from the CPS-version? Or that LLVM can't encode the original form? Or

Re: Hoopl vs LLVM?

2012-12-11 Thread Greg Fitzgerald
Thank you all for your replies. On Tue, Dec 11, 2012 at 11:16 AM, Simon Peyton-Jones simo...@microsoft.comwrote: And I think there is probably quite a lot that is in reach for C--, but out of reach for LLVM. Why? Because before we pass the code to LLVM we do CPS-conversion. Is there a

Hoopl vs LLVM?

2012-12-10 Thread Greg Fitzgerald
I don't know my way around the GHC source tree. How can I get the list of optimizations implemented with Hoopl? Is there overlap with LLVM's optimization passes? If so, has anyone compared the implementations at all? Should one group be stealing ideas from the other? Or apples and oranges?

how to link a minimal executable?

2010-08-11 Thread Greg Fitzgerald
Is there any documentation or examples available that shows what needs to be linked to get a haskell executable to print hello world? Instead of using GHC to link, I'm interested in using gcc, ar, or link directly. For starters, what implements the entry point? $ cat Main.hs main = print hello

$thisdir for package.conf?

2010-08-11 Thread Greg Fitzgerald
Is there a way for a package.conf file to contain paths that are relative to the directory containing the .conf file? GHC 6.12.1 chokes on relative paths. I see the problem is solved for GHC's core libraries with the $topdir variable. Is there something like a $thisdir we could use in inplace

Re: integer-simple by default

2010-02-22 Thread Greg Fitzgerald
As another data point, Python has also re-invented the GMP wheel, likely for the same licensing reasons. They have been using a simple implementation of Karatsuba multiplication for years. I have never heard of anyone complaining about it Thanks for the data point. Looks like they swapped

Re: integer-simple by default

2010-02-20 Thread Greg Fitzgerald
You can dynamically link libgmp on windows. That might be easier: Do you know if the dynamic link escape hatch has ever held up in court? Last time I looked into it, the free software community had mixed opinions. In any case, giving GMP the boot alleviates any licensing concerns, makes the

Re: Confusion about GHC and GMP

2010-02-17 Thread Greg Fitzgerald
I assume you mean http://hackage.haskell.org/trac/ghc/wiki/ReplacingGMPNotes#CurrentStatus in which case, yes. I assume that INTEGER_LIBRARY=integer-foo is an option when compiling GHC itself and not when using GHC, correct? Yes. Great, thanks for your help Ian. Building GHC with

Confusion about GHC and GMP

2010-02-12 Thread Greg Fitzgerald
I wonder if someone might be able to clear a few things up for me about implementing Integer with GMP.  First, is the link below the most up-to-date information regarding GHC's situation? http://hackage.haskell.org/trac/ghc/wiki/ReplacingGMPNotes#BinaryDropinReplacementforGMP I assume that

Re: Update on GHC 6.12.1

2009-10-29 Thread Greg Fitzgerald
Another minor question is whether -XDoRec is a good name for the flag. We can't really use -XRecursiveDo because that's the one we are deprecating! -XReDo :) -Greg ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

Parsec in 6.10 RC 1

2008-10-08 Thread Greg Fitzgerald
The instance for Functor (Either ParserError) disappeared. Is that intentional? Thanks, Greg ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: ANN: prof2dot, version 0.4.1

2008-08-05 Thread Greg Fitzgerald
Sounds fantastic I'm using 'prof2dot' on a ~3000 LOC project and it's working well. Visual quality metrics like this and Haskell Program Coverage makes using Haskell in the corporate world a little easier to pull off. Zero crash reports helps too. ;-) -Greg F On Tue, Aug 5, 2008 at 1:02

Re: GHC 6.8.2, Haddock not finding std libs

2007-12-10 Thread Greg Fitzgerald
Haddock is no longer able to resolve the names from the standard libraries. There should be a new haddock release shortly, which fixes that as well as an HTML link bug. Or you can get the latest source with darcs The darcs version fixes the issue. Thanks Ian! -Greg

Re: HUnit 1.2.0.0 on 6.8.1 vs 1.1.1 on 6.6.1

2007-12-10 Thread Greg Fitzgerald
abc @=? efg Loading package HUnit-1.2.0.0 ... linking ... done. *** Exception: (unknown) On Dec 3, 2007 7:23 AM, Ian Lynagh [EMAIL PROTECTED] wrote: This is caused by a change in the HUnit library, from assertFailure msg = ioError (userError (hunitPrefix ++ msg)) to

Re: HUnit 1.2.0.0 on 6.8.1 vs 1.1.1 on 6.6.1

2007-12-07 Thread Greg Fitzgerald
abc @=? efg Loading package HUnit-1.2.0.0 ... linking ... done. *** Exception: (unknown) On Dec 3, 2007 7:23 AM, Ian Lynagh [EMAIL PROTECTED] wrote: This is caused by a change in the HUnit library, from assertFailure msg = ioError (userError (hunitPrefix ++ msg)) to assertFailure

GHC 6.8.2, Haddock not finding std libs

2007-12-07 Thread Greg Fitzgerald
Please test as much as possible One difference between 6.8.1 and 6.8.2 that I see is in running runhaskell Setup.hs haddock with Haddock 0.8 on Windows XP. Haddock is no longer able to resolve the names from the standard libraries. Running Haddock for Xyz-0.1... Warning: Xyz: the following

HUnit 1.2.0.0 on 6.8.1 vs 1.1.1 on 6.6.1

2007-11-21 Thread Greg Fitzgerald
On Windows, HUnit's assertions are not working - trace below in ghci 6.8.1and 6.6.1. Can others reproduce? Is this the right place to report bugs? Should I confirm a bug here and then create a ticket, create a ticket and that's it, or just mention it here and someone else creates a ticket?

Exposed module still hidden, why?

2007-11-20 Thread Greg Fitzgerald
Using GHC 6.8.1 on Windows XP, after having used ghc-pkg to expose ' directory-1.0.0.0', I am getting an error when I build haddock that says the package is hidden. When I type ghc-pkg list, the package is not in parenthesis. Typing ghc -v says that it is using the file from

6.8.1: source code in docs?

2007-11-16 Thread Greg Fitzgerald
GHC 6.8.1's docs no longer link to the source code in the upper right-hand corner of each module. Intentional? http://haskell.org/ghc/docs/latest/html/libraries/ Thanks, Greg ___ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org

OPTIONS_GHC -iMyDir

2007-07-24 Thread Greg Fitzgerald
I notice that some of GHC's command-line parameters do not work from within the OPTIONS_GHC pragma (6.6.1 on Windows). I can see how that makes sense for some parameters like --make, but what about -i and -v? Is this intentional or a bug? Can't specify the include path: {-# OPTIONS_GHC -iMyDir

Re: 64-bit windows version? (Haskell is a scripting language too!)

2007-06-21 Thread Greg Fitzgerald
each sub-project...have a...Haskell program...building that sub-project I was trying to build something like this recently but hit a roadblock. Rather than execute the script in each directory, I wanted to import it as a module instead. This way you can, for example, pass functions, like a