Re: `partition'

2004-10-14 Thread Johannes Waldmann

the function  let  ns = [1 .. 10^6] :: [Int]
   p  = partition even ns
  in
  take 2 $ fst p
computes too long in ghc-6.2.2-September-26
and needs several megabyte of stack.
this has been noticed a few times, for example
http://www.mail-archive.com/[EMAIL PROTECTED]/msg07508.html
--
-- Johannes Waldmann,  Tel/Fax: (0341) 3076 6479 / 6480 --
-- http://www.imn.htwk-leipzig.de/~waldmann/ -
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


ghc-5.04.2: panic! (the `impossible' happened, GHC version 5.04.2):

2003-02-18 Thread Johannes Waldmann
class Foo a where foo :: a - ()

data Bar = Bar { bar :: () }

instance Foo Bar where foo = bar

test :: Bar
test = undefined { foo = () }


the last line should be rejected, since there is no `foo' in `Bar'. 

ghc-5.04.2: panic! (the `impossible' happened, GHC version 5.04.2):
tcSplitTyConApp a{-rY6-}

best regards,
-- 
-- Johannes Waldmann  http://www.informatik.uni-leipzig.de/~joe/ --
-- [EMAIL PROTECTED] -- phone/fax (+49) 341 9732 204/207 --

___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



Re: GHC-2.08 on alpha, for a change...

1997-11-05 Thread Johannes Waldmann

 Haven't properly investigated this myself yet, but just in case this
 looks familiar to anyone, I get the following, trying to build
 2.08 on an alpha, with ghc-0.29.
 
 Unix assembler:
 gcc -o absCSyn/PprAbsC.o -c  /usr/tmp/ghc10102.s
 as1: Internal: /usr/tmp/ghc10102.s, line 32: 
 ../../../../../../src/usr/ccs/bin/as/as1util.p, line 460: 
 idn  sym_tab.alloc_len
 Fatal error in: /usr/lib/cmplrs/cc/as1 Segmentation fault 

yep, i was getting exactly the same behaviour, on alpha-dec-osf4.0.
(already with ghc-2.05 i think).

my "fix" was to generate PprAbsC.s, then assemble it on a
alpha-dec-osf3.2 machine, and continue with that PprAbsC.o.

regards,
-- 
Johannes Waldmann   Institut fur Informatik   FSU   D-07740  Jena  Germany
http://www5.informatik.uni-jena.de/~joe/ mailto:[EMAIL PROTECTED]