Re: Bad control characters in GHCi 6.6 (Mac OS X PPC)

2006-10-18 Thread Björn Buckwalter
On 10/16/06, Simon Marlow <[EMAIL PROTECTED]> wrote: Björn Buckwalter wrote: > I downloaded the GHC 6.6 tarballs, built and installed them on my mac > (Tiger, PPC) using the documented procedure: > ./configure > make > make install > > The build and install was fairly smooth. However, ghci wi

Benchmarking GHC

2006-10-18 Thread Neil Mitchell
Hi, I want to benchmark GHC vs some other Haskell compilers, what flags should I use? I just want whichever package of flags is "good optimisation" - nothing unsafe, nothing that changes strictness properties, and a set of flags that is generally applicable - but slow compilation is fine. As far

Re: Data.Array.MArray "lost" bounds

2006-10-18 Thread Bulat Ziganshin
Hello Andreas, Wednesday, October 18, 2006, 1:31:28 PM, you wrote: > getBounds :: (MArray a e m, Ix i) => a i e -> m (i,i) but it misses the good > old > bounds [which had type bounds :: (HasBounds a, Ix i) => aie -> (i,i)]. > What is the rational behind this change? > Are MArrays now able to cha

Re: ghc-6.6 under sparc-sun-solaris

2006-10-18 Thread Christian Maeder
Duncan Coutts schrieb: >> 1. Without "SplitObjs=NO" in mk/build.mk, will every file be compiled as >> if -split-objs were on ghc's command line? > > Not "as if", the build system really does add -split-objs and does some > other magic when "SplitObjs=NO" is not in mk/build.mk. My stage2 compiler

Re: [Haskell] Expecting more inlining for bit shifting

2006-10-18 Thread roconnor
On Tue, 17 Oct 2006, John Meacham wrote: On Mon, Oct 09, 2006 at 03:54:41PM +0100, Ian Lynagh wrote: It might be possible, but it sounds tricky. I guess it would have to go something like "try inlining this, run the simplifier, see if it got small enough, if not back out", which could waste a l

Re: ghc-6.6 under sparc-sun-solaris

2006-10-18 Thread Duncan Coutts
Christian, I've reported this bug here: http://hackage.haskell.org/trac/ghc/ticket/951 Please add any further info you think necessary. Duncan On Wed, 2006-10-18 at 11:21 +0200, Christian Maeder wrote: > Duncan Coutts schrieb: > >>> Try SRC_HC_OPTS = -optc-mcpu=ultrasparc -opta-mcpu=ultrasparc

Re: Data.Array.MArray "lost" bounds

2006-10-18 Thread Duncan Coutts
On Wed, 2006-10-18 at 11:31 +0200, Andreas Marth wrote: > With ghc-6.6 there is a change in module Data.Array.MArray which now > includes a function > getBounds :: (MArray a e m, Ix i) => a i e -> m (i,i) but it misses the good > old > bounds [which had type bounds :: (HasBounds a, Ix i) => aie ->

Data.Array.MArray "lost" bounds

2006-10-18 Thread Andreas Marth
With ghc-6.6 there is a change in module Data.Array.MArray which now includes a function getBounds :: (MArray a e m, Ix i) => a i e -> m (i,i) but it misses the good old bounds [which had type bounds :: (HasBounds a, Ix i) => aie -> (i,i)]. What is the rational behind this change? Are MArrays now a

Re: ghc-6.6 under sparc-sun-solaris

2006-10-18 Thread Christian Maeder
Duncan Coutts schrieb: >>> Try SRC_HC_OPTS = -optc-mcpu=ultrasparc -opta-mcpu=ultrasparc >> With this I've produced a binary saying: >> -bash-3.00$ ghc --version >> ghc-6.6: schedule: re-entered unsafely. >>Perhaps a 'foreign import unsafe' should be 'safe'? > > Yes! I get exactly the same und

RE: [Haskell] Expecting more inlining for bit shifting

2006-10-18 Thread Simon Peyton-Jones
| I would think the easiest way to go about this would be to extend the | rules pragma. | | {-# RULES "shift/const-inline" forall x y# . shift x y# = ... #-} | | where variables ending in # will only match constants known at compile time Interesting idea. GHC can do that *internally* using a "