Scope of imported names

2001-10-22 Thread Karl-Filip Faxen
Hi all! I have been thinking about the scoping issues for imported names. Of course, this musing is ispired by the formal static semantics I have been working on, but it is also prompted by the revised Haskell report. Section 5.5.2 relates to name clashes and has an interesting example towards

Re: Scope of imported names

2001-10-22 Thread Wolfgang Lux
Karl-Filip Faxen wrote Section 5.5.2 relates to name clashes and has an interesting example towards the end: module F where sin :: Float - Float sin x = (x::Float) f x = Prelude.sin (F.sin x) where the type signature refers to the local sin rather than the imported

Re: Scope of imported names

2001-10-22 Thread Karl-Filip Faxen
Hello again, Wolfgang wrote The Haskell report seems to be inconsistent here (once again). In the beginning of section 5.3 it says Imported names serve as top level declarations: they scope over the entire body of the module but may be shadowed by local NON-TOP-LEVEL bindings.

ANNOUNCE: HOpenGL mailing list

2001-10-22 Thread Sven Panne
HOpenGL has its own mailing list now: http://haskell.org/mailman/listinfo/hopengl Thanks to Simon Marlow for setting it up. HOpenGL is a Haskell binding for the OpenGL graphics API and the portable OpenGL utility toolkit GLUT. It provides easy access to *the* industrial-strength rendering

FreeBSD + Graphics

2001-10-22 Thread Korwnios
Hi everyone, during the weekend I tried unsuccesfully to install the graphics library: (My system: FreeBSD, gmake-3.79.1, hugsFeb2000) # gmake -C graphics-2.0.3/lib/x11 gmake: Entering directory `/root/graphics-2.0.3/lib/x11' cc -I /usr/X11R6/include StdDIS.c -c cc -shared -nostdlib -L

Re: Scope of imported names

2001-10-22 Thread Wolfgang Lux
Hello! Well, it's not that simple currently. Name clashes are only illegal if they lead to unresolvable references. Thus if we have Intricate, indeed. I didn't expect to be able to define a function which I cannot reference with its unqualified name. What I'm driving at is this: I

ANNOUNCE: Hat 1.10 and nhc98 1.10

2001-10-22 Thread Malcolm Wallace
Hat 1.10 and nhc98 1.10 --- http://www.cs.york.ac.uk/fp/nhc98/ We are pleased to announce a new release 1.10 of Hat (the Haskell Tracing system), and the nhc98 compiler. This is a bugfix release. Its main feature is that

suggestion

2001-10-22 Thread Andre W B Furtado
What do you all think about activating the mechanism that automatically includes the name of the list before the subject of a mailing list email? For example: [hugs-users] Installation problems or [haskell] newbie question. I think this would be a nice way to make massages more organized and help

Re: suggestion

2001-10-22 Thread Mark Carroll
On Tue, 23 Oct 2001, Andre W B Furtado wrote: What do you all think about activating the mechanism that automatically includes the name of the list before the subject of a mailing list email? I like the idea. For example: [hugs-users] Installation problems or [haskell] newbie question. I

Re: suggestion

2001-10-22 Thread Juan Carlos Arévalo Baeza
On Tue, 23 Oct 2001 00:38:23 -0400 (EDT), Mark Carroll wrote: On Tue, 23 Oct 2001, Andre W B Furtado wrote:  What do you all think about activating the mechanism that automatically  includes the name of the list before the subject of a mailing list email? I like the idea. I guess it helps.

Re: suggestion

2001-10-22 Thread Grzegorz Jakacki
On Tue, 23 Oct 2001, Andre W B Furtado wrote: What do you all think about activating the mechanism that automatically includes the name of the list before the subject of a mailing list email? For example: [hugs-users] Installation problems or [haskell] newbie question. Great. It would

RE: GHC import bug (# 231631)

2001-10-22 Thread Simon Marlow
I'm sending this to the list, because I did not get much satisfaction from the SourceForge bug-tracking tool. I have just encountered a GHC bug similar to the one numbered 231631 on SourceForge. I have some further observations about it, and a small tar file (attached) showing how

compiler bug

2001-10-22 Thread Timothy Doze
Hello, Im relativly new at this, when i tried to compile i got this message: - ghc-5.00.2: panic! (the `impossible' happened, GHC version 5.00.2): does not exist Action: openFile Reason: dangling symlink File:

RE: Bug with -h and -c together

2001-10-22 Thread Simon Marlow
Here's another one, using GHC 5.02 [ian@urchin current]$ cat W.lhs module Main where main :: IO() main = putStrLn $ show $ last [1..10] [ian@urchin current]$ ghc W.lhs -prof -auto-all -o W [ian@urchin current]$ ./W +RTS -h 10 [ian@urchin current]$ ./W +RTS -c

RE: Mysterious type error with Glasgow Haskell

2001-10-22 Thread Simon Peyton-Jones
George For a change, this is your fault! You wrote: let minus :: Int - Int - Int minus = (-) toRValue :: Int - Radio value toRValue -1 = NoRadio -- (*) toRValue i = ... Alas, the line marked (*) defines the infix operator (-). So

Re: Blocking IO in module Socket

2001-10-22 Thread Volker Stolz
Am 22. Oct 2001 um 12:56 MET DST schrieb Simon Marlow: The call doesn't block, because the socket is set to non-blocking mode. Or have you perhaps observed different behaviour? It works here. Okay, I'm stupid. I can clearly see the 'threadWaitRead' statement now. -- Volker Stolz * [EMAIL

Re: A small doubt

2001-10-22 Thread Artur Zawlocki
Marcin 'Qrczak' Kowalczyk wrote: What a pattern matches is independent from which of the variables it binds are used. The pattern [a,b,c], or equivalently a::b::c::[], matches lists of length 3. (...) ... unless it matches lazily, as in let [a,b,c] = [1,2,3,4] in let [a,b,c]

Project: creating a table using haskell

2001-10-22 Thread MR NICHOLAS EDWARD SUTCH
To whome it may concern, I am currently involved in project using haskell to create a sample time table for a company. I am a newcomer to haskell and would like some help with creating an table for such a project which will print to screen. The data contained needs to be accessible in that I