RE: GHC 6.5 (Visual Haskell) bug with wxHaskell

2005-10-17 Thread Simon Marlow
On 17 October 2005 04:50, Piotr Wilkin wrote:

 I installed the alpha version of Visual Haskell and wanted to try to
 add wxHaskell to the package list. I compiled wxHaskell from source,
 using the ghc, ghc-pkg and Haddock from the Visual Haskell
 distribution. The wx and wxcore packages are visible when I use
 ghc-pkg list (and they're visible in add references in Visual Studio),
 but whenever I try to use them (either by adding them as references in
 VS or trying to compile an example using ghc-6.5 under CygWin, I get
 the following error:
 
 $ ghc -package wx helloworld HelloWorld.hs
 no location info:no location info:
 ghc.exe: panic! (the 'impossible' happened, GHC version 6.5):
  unknown exception
 
 Is this one of those hidden bugs due to the bundled version being a
 prerelease, or am I missing something obvious?

There's a bug in the error message, and I'm guessing it's the same as a
bug I fixed recently, and that the error message should be an unknown
package.

Can you try with -v and send us the output, also the output from
'ghc-pkg list', and 'ghc-pkg describe wxcore', 'ghc-pkg describe wx'.
All with the versions of these tools that came with Visual Haskell, of
course.

Cheers,
Simon
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


RE: panic! (the `impossible' happened): Prelude.head: empty list

2005-10-17 Thread Simon Peyton-Jones
Thanks!  I've fixed this, and added a test.

Simon

| -Original Message-
| From: [EMAIL PROTECTED]
[mailto:glasgow-haskell-bugs-
| [EMAIL PROTECTED] On Behalf Of Ian Lynagh
| Sent: 14 October 2005 20:51
| To: glasgow-haskell-bugs@haskell.org
| Subject: panic! (the `impossible' happened): Prelude.head: empty list
| 
| 
| When I try to compile this module:
| 
| ---
| module Q where
| 
| data FooBar a b = Foo | Bar
| 
| data P a b = P0 | P1 (FooBar a b)
| 
| data PS p a c where
| (:=) :: p a b - p b c - PS p a c
| 
| f :: PS P a c - Int
| f ((P1 _ :: P a b)  := (P0 :: P b c))  = undefined
| f ((P1 Bar :: P a b):= (P1 Bar :: P b c))  = undefined
| f (P1 (_ :: FooBar a b) := P1 (Bar :: FooBar b c)) = undefined
| ---
| 
| I get this panic from ghc 6.4.1:
| 
| $ ghc -fglasgow-exts -c Q.hs
| ghc-6.4.1: panic! (the `impossible' happened, GHC version 6.4.1):
| Prelude.head: empty list
| 
| Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
| or http://sourceforge.net/projects/ghc/.
| 
| $
| 
| 
| Thanks
| Ian
| 
| ___
| Glasgow-haskell-bugs mailing list
| Glasgow-haskell-bugs@haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[ ghc-Bugs-1328684 ] Win GHC 6.4.1 crashes while building FastPackedString

2005-10-17 Thread SourceForge.net
Bugs item #1328684, was opened at 2005-10-17 14:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328684group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Joel Reymont (wagerlabs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Win GHC 6.4.1 crashes while building FastPackedString

Initial Comment:
GHC 6.4.1, tried on Win2K and WinXP. To reproduce install GHC 6.
4.1 from the MSI, download the FastPackedString source code from 
darcs and build it according to instructions. 

Configure goes through but the build phases crashes with a memory 
access error.


--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328684group_id=8032
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[ ghc-Bugs-1328684 ] Win GHC 6.4.1 crashes while building FastPackedString

2005-10-17 Thread SourceForge.net
Bugs item #1328684, was opened at 2005-10-17 14:12
Message generated for change (Comment added) made by wagerlabs
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328684group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Joel Reymont (wagerlabs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Win GHC 6.4.1 crashes while building FastPackedString

Initial Comment:
GHC 6.4.1, tried on Win2K and WinXP. To reproduce install GHC 6.
4.1 from the MSI, download the FastPackedString source code from 
darcs and build it according to instructions. 

Configure goes through but the build phases crashes with a memory 
access error.


--

Comment By: Joel Reymont (wagerlabs)
Date: 2005-10-17 14:52

Message:
Logged In: YES 
user_id=1032541

You can get FPS from http://www.cse.unsw.edu.au/~dons/fps.html


--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328684group_id=8032
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[ ghc-Bugs-1328684 ] Win GHC 6.4.1 crashes while building FastPackedString

2005-10-17 Thread SourceForge.net
Bugs item #1328684, was opened at 2005-10-17 14:12
Message generated for change (Comment added) made by wagerlabs
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328684group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Joel Reymont (wagerlabs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Win GHC 6.4.1 crashes while building FastPackedString

Initial Comment:
GHC 6.4.1, tried on Win2K and WinXP. To reproduce install GHC 6.
4.1 from the MSI, download the FastPackedString source code from 
darcs and build it according to instructions. 

Configure goes through but the build phases crashes with a memory 
access error.


--

Comment By: Joel Reymont (wagerlabs)
Date: 2005-10-17 14:57

Message:
Logged In: YES 
user_id=1032541

Please follow the standard building procedure for FPS. The library is 
cabalized. I cannot attach the exact source code that makes GHC crash 
but it happens at the build step.

--

Comment By: Joel Reymont (wagerlabs)
Date: 2005-10-17 14:52

Message:
Logged In: YES 
user_id=1032541

You can get FPS from http://www.cse.unsw.edu.au/~dons/fps.html


--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328684group_id=8032
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re[2]: GHC 6.5 (Visual Haskell) bug with wxHaskell

2005-10-17 Thread Piotr Wilkin
SM Can you try with -v and send us the output, also the output from
SM 'ghc-pkg list', and 'ghc-pkg describe wxcore', 'ghc-pkg describe wx'.
SM All with the versions of these tools that came with Visual Haskell, of
SM course.

Compilation error message from ghc -v -package wx:
Glasgow Haskell Compiler, Version 6.5, for Haskell 98, compiled by GHC version 
6.4
Using package config file: c:\Program Files\Visual Haskell\package.conf
*** Deleting temp files:
Deleting: 
no location info:no location info:
ghc.exe: panic! (the `impossible' happened, GHC version 6.5):
unknown exception

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.

Results of ghc-pkg list:
c:/Program Files/Visual Haskell\package.conf:
rts-1.0, haskell98-1.0, template-haskell-1.0, Cabal-1.0,
parsec-2.0, haskell-src-1.0, network-1.0, QuickCheck-1.0,
HUnit-1.1, mtl-1.0, fgl-5.2, Win32-1.0, HGL-3.1, OpenGL-2.0,
stm-1.0, base-1.0, (ghc-6.5), com-1.0, wxcore-0.9.4, wx-0.9.4

Results of ghc-pkg describe wxcore:
name: wxcore
version: 0.9.4
license: AllRightsReserved
copyright:
maintainer:
stability:
homepage: http://wxhaskell.sourceforge.net
package-url:
description:
category:
author: Daan Leijen
exposed: True
exposed-modules: Graphics.UI.WXCore Graphics.UI.WXCore.WxcClasses
 Graphics.UI.WXCore.WxcClassInfo Graphics.UI.WXCore.WxcDefs
 Graphics.UI.WXCore.IntMap Graphics.UI.WXCore.Types
 Graphics.UI.WXCore.Defines Graphics.UI.WXCore.Draw
 Graphics.UI.WXCore.Events Graphics.UI.WXCore.Frame
 Graphics.UI.WXCore.Layout Graphics.UI.WXCore.Process
 Graphics.UI.WXCore.Print Graphics.UI.WXCore.Dialogs
 Graphics.UI.WXCore.Image Graphics.UI.WXCore.Controls
 Graphics.UI.WXCore.Db Graphics.UI.WXCore.OpenGL
 Graphics.UI.WXCore.WxcObject Graphics.UI.WXCore.WxcClassTypes
 Graphics.UI.WXCore.WxcTypes Graphics.UI.WXCore.WxcClassesAL
 Graphics.UI.WXCore.WxcClassesMZ
hidden-modules:
import-dirs: D:/cygwin/usr/local/lib/imports
library-dirs: D:/cygwin/usr/local/lib
hs-libraries: wxcore wxcore0 wxcore1 wxcore2
extra-libraries: wxc-msw2.6.2-0.9.4
include-dirs:
includes:
depends: base-1.0 lang haskell98-1.0 concurrent
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces:
haddock-html:

Results of ghc-pkg describe wx:
name: wx
version: 0.9.4
license: AllRightsReserved
copyright:
maintainer:
stability:
homepage: http://wxhaskell.sourceforge.net
package-url:
description:
category:
author: Daan Leijen
exposed: True
exposed-modules: Graphics.UI.WX Graphics.UI.WX.Types
 Graphics.UI.WX.Attributes Graphics.UI.WX.Layout
 Graphics.UI.WX.Classes Graphics.UI.WX.Variable
 Graphics.UI.WX.Events Graphics.UI.WX.Window 
Graphics.UI.WX.Frame
 Graphics.UI.WX.Media Graphics.UI.WX.Menu Graphics.UI.WX.Timer
 Graphics.UI.WX.Draw Graphics.UI.WX.Controls 
Graphics.UI.WX.Dialogs
hidden-modules:
import-dirs: D:/cygwin/usr/local/lib/imports
library-dirs: D:/cygwin/usr/local/lib
hs-libraries: wx
extra-libraries:
include-dirs:
includes:
depends: wxcore-0.9.4
hugs-options:
cc-options:
ld-options:
framework-dirs:
frameworks:
haddock-interfaces:
haddock-html:

Greetings,
Piotr Wilkin
[EMAIL PROTECTED]


___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[ ghc-Bugs-1328901 ] internal error: schedule: awaitEvent() in threaded RTS

2005-10-17 Thread SourceForge.net
Bugs item #1328901, was opened at 2005-10-17 12:04
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328901group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Runtime System
Group: 6.4.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: internal error: schedule: awaitEvent() in threaded RTS

Initial Comment:
[EMAIL PROTECTED]

forked a thread that waits on a server socket.  The main 
thread goes on to call threadDelay and putStrLn 
repeatedly.

using GHC 6.4.1 on WinXP workstation.

pls, find attached a build script and source code.  this 
has been stripped down to a fairly minimal demonstration 
of the error.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=108032aid=1328901group_id=8032
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: cc1plus.exe not included in Win32 distro

2005-10-17 Thread Sigbjorn Finne

It was intentionally removed (the intention being to remove
heft from the installer) after it had been unintentionally
included for quite a while.

The rule has always been that only tools that GHC depends
upon to operate are bundled with it on the mingw side --
the only exception to that rule has been the recent inclusion
of 'ar'.

Should GHC binary dists include a C++ compiler? I'd say
no, but if there are practical and compelling reasons to do
so, it's no big deal to re-include the binary.

--sigbjorn

- Original Message - 
From: Bulat Ziganshin [EMAIL PROTECTED]

To: glasgow-haskell-bugs@haskell.org
Sent: Friday, October 14, 2005 10:49
Subject: cc1plus.exe not included in Win32 distro



Hello all,

the official Win32 distro
(http://www.haskell.org/ghc/dist/6.4.1/ghc-6-4-1.msi)

does not contain cc1plus.exe, needed to compile CPP files:

C:\FreeArchiver ghc a.cpp
gcc: installation problem, cannot exec `cc1plus': No such file or 
directory


is this a packaging bug or intentional change?

--
Best regards,
Bulatmailto:[EMAIL PROTECTED]



___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs 


___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: Network Exception

2005-10-17 Thread Sigbjorn Finne

Just to be clear -- this is with ghc-6.4.1 as distributed
via the GHC web pages and not some local build..?

I can't explain this -- the example code you give will have
successfully started up WinSock (version 1.1) prior to
calling getHostName, so that error condition doesn't
make much sense.

Given the two networking issues you've already come
across, I wouldn't discount the option that this might
be due to a local problem with your networking setup
(WinSock proxy config..?)

--sigbjorn

- Original Message - 
From: Arias [EMAIL PROTECTED]

To: Sigbjorn Finne [EMAIL PROTECTED]
Cc: glasgow-haskell-bugs@haskell.org
Sent: Friday, October 14, 2005 14:01
Subject: Re: Network Exception



Thanks for the reply.

I don't know if the problem is the same, but when I try to run this code:

main = withSocketsDo $ do
  host - getHostName
  putStrLn host

the getHostName throws this exception:

 getHostName: failed (Successful WSAStartup not yet performed 
(WSANOTINITIALISED))


:( I'm using Windows XP Professional

Sigbjorn Finne escribió:


Hi,

that error message is a bit confusing, to say the least:
getProtocolByName identifies itself as getServiceEntry
when failing. In this case, I'm quite sure, your snippet
fails because (getProtocolByName tcp) isn't successful.
I've no idea why your /etc/protocols doesn't contain an entry
for 'tcp'.

The error message in said function has now been fixed; thanks
for the report.

--sigbjorn

- Original Message - From: Arias [EMAIL PROTECTED]
To: glasgow-haskell-users@haskell.org
Sent: Friday, October 14, 2005 06:47
Subject: Network Exception



Hi,

I've a problem, I'm using this code on GHC compiler version 6.4.1:

--- BEGIN ---
module Main where
import System.IO
import Network

main = withSocketsDo $ do
handle - connectTo localhost ( PortNumber 8080 )
hSetBuffering handle LineBuffering
hClose handle
--- END ---

The problems is that it throws an exception at connectTo, the exception 
is:


getServiceEntry: does not exist (no such service entry)

The server and the port is correct, I have apache listening on port 8080 
and if I put http://localhost:8080/ on browser it loads a web page.


Do somebody knows what it happens and how to fix it? thanks.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users








___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs