negative `bytes' in :set +s

2004-05-24 Thread Serge D. Mechveliani
Dear GHC team,

My DoCon test under  ghc-6-2-branch  performs like this

  ghc $pcpdocon --make T_
  ...
  ghci $pcpdocon T_ ...
  ... 
  Prelude T_> :set +s
  Prelude T_> test "log"
  ...
  *** Test FINISHED ***
  ...
  (35.02 secs, -990807880 bytes)

`:set +s'  is very usable, and the spent number of bytes is 
informative.
And it shows as negative.
Maybe, this can fixed by replacing of  Int  with  Integer ?
Just one more avidence of Int being a bug?

Recall also of the Set cardinality and such.

With kind regards,

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


data T = () crash

2004-05-24 Thread Donald Bruce Stewart
This program causes HEAD from 15 May to crash:

 data T = ()
 main = undefined

paprika$ ghc t.hs
ghc-6.3: panic! (the `impossible' happened, GHC version 6.3):
ASSERT failed! file rename/RnEnv.lhs, line 79

Please report it as a compiler bug to
[EMAIL PROTECTED],
or http://sourceforge.net/projects/ghc/.  

The code was generated by an incorrect sed pass over a source file :}

-- Don

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


[ ghc-Bugs-959442 ] Problem with where clause and Template Haskell

2004-05-24 Thread SourceForge.net
Bugs item #959442, was opened at 2004-05-24 15:36
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=959442&group_id=8032

Category: Compiler
Group: 6.2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Stefan Heimann (stefanheimann)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with where clause and Template Haskell

Initial Comment:
When compiling the two files attached, the following
happens:


$ ./compile.sh 
Chasing modules from: TemplateTryOut.hs
Skipping  Templates( ./Templates.hs,
./Templates.o )
Compiling Main ( TemplateTryOut.hs,
TemplateTryOut.o )
Loading package base ... linking ... done.
Loading package haskell98 ... linking ... done.
Loading package haskell-src ... linking ... done.
compiling template
ghc-6.2.1: panic! (the `impossible' happened, GHC
version 6.2.1):
nameModule readTread_d1z7

Please report it as a compiler bug to
[EMAIL PROTECTED],
or http://sourceforge.net/projects/ghc/.


I think it's a problem with template haskell. The first
call of 'template' in TemplateTryOut.hs (line 10)
succeeds, as you can see from the message 'compiling
template'. The second call in line 17 fails. The only
difference between these 2 calls is the where clause.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=959442&group_id=8032
___
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs