Re: ghci: unknown symbol `__ashldi3

2001-10-09 Thread Josef Svenningsson
On 5 Oct 2001, Marcin 'Qrczak' Kowalczyk wrote: Fri, 5 Oct 2001 17:31:18 +0200, Ch. A. Herrmann [EMAIL PROTECTED] pisze: Loading package std ... linking ... /public/packages/programming/ghc-5.02/lib/ghc-5.02/HSstd_cbits.o: unknown symbol `__ashldi3' I guess you can add the symbol to

Re: GHC 5.02 Win32

2001-10-09 Thread Reuben Thomas
Yes, non-interactive uses of the Win32 library appear to be in a non-working state (at least with my copy of ghc-5.02, don't know if there's been any stealth updates to the installer binary.) As a stop-gap measure, replace ghc-5.02's libHSwin32.a (after having saved it away) with the one

Re: ghci: unknown symbol `__ashldi3

2001-10-09 Thread Marcin 'Qrczak' Kowalczyk
Tue, 9 Oct 2001 10:10:40 +0200 (MET DST), Josef Svenningsson [EMAIL PROTECTED] pisze: Linker.c: At top level: Linker.c:369: `__ashldi3' undeclared here (not in a function) Bring it with Sym, not SymX. -- __( Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/ \__/ ^^

Bug in GHC 5.02

2001-10-09 Thread Monique Louise
I am writing to report a bug I have found in GHC version 5.02. The problemis that I tried to compile a .hs file which camewith Green Card's library and the following message appeared: "panic! (the 'impossible' happened, GHC version 5.02): Native code generator can't handle foreign call

Re: Bug in GHC 5.02

2001-10-09 Thread Sigbjorn Finne
To make this panic go away, try adding the option "-fvia-C" to your GHC command line. (GHC could give a better error msg here, and indicate that you have to use -fvia-C with code that (still) uses _casm_.) hth --sigbjorn - Original Message - From: Monique Louise To:

RE: ghc-pkg

2001-10-09 Thread Josef Svenningsson
Hi! I would like to add a request to Thomas list of lacking features of ghc --make: When caching information between the compilation of different modules, use weak pointers. With large projects, ghc runs out of heapspace because of too much caching. It's always fine to restart the build

Re: HOpengl on Ghc 5.02

2001-10-09 Thread Carl R. Witty
Nicolas [EMAIL PROTECTED] writes: Hi there, Sorry for this stupid question: Is there a distrib of a HOpenGl package working with ghc 5.02. I tried the CVS but don't manage to make it work (ghc 5.03 panic). Can someone help me? I got HOpenGL to work without trouble. On September 29, I

ghc 5.02 and Solaris ld

2001-10-09 Thread Akop Pogosian
$ grep 'ld.*-x' `find . -name Makefile` ./ghc-5.02/ghc/lib/std/Makefile:ld -r -x -o $@ $(GHCI_LIBOBJS) ./ghc-5.02/ghc/lib/std/Makefile:ld -r -x -o HSstd1.o $(filter Prel%, $(GHCI_LIBOBJS)) ./ghc-5.02/ghc/lib/std/Makefile:ld -r -x -o HSstd2.o $(filter-out Prel%,

Re: IO concurrency

2001-10-09 Thread Max A . K .
I forgot to say: that's ghc-5.00.1, linux. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Re: Unicode support

2001-10-09 Thread Kent Karlsson
Just to clear up any misunderstanding: - Original Message - From: Ashley Yakeley [EMAIL PROTECTED] To: Haskell List [EMAIL PROTECTED] Sent: Monday, October 01, 2001 12:36 AM Subject: Re: Unicode support At 2001-09-30 07:29, Marcin 'Qrczak' Kowalczyk wrote: Some time ago the Unicode

Re: Unicode support

2001-10-09 Thread Ashley Yakeley
At 2001-10-09 02:58, Kent Karlsson wrote: In summary: code position (=code point): a value between and 10. Would this be a reasonable basis for Haskell's 'Char' type? At some point perhaps there should be a 'Unicode' standard library for Haskell. For instance: encodeUTF8 ::

Re: Unicode support

2001-10-09 Thread Kent Karlsson
- Original Message - From: Ashley Yakeley [EMAIL PROTECTED] To: Kent Karlsson [EMAIL PROTECTED]; Haskell List [EMAIL PROTECTED]; Libraries for Haskell List [EMAIL PROTECTED] Sent: Tuesday, October 09, 2001 12:27 PM Subject: Re: Unicode support At 2001-10-09 02:58, Kent Karlsson

exercise 4.19

2001-10-09 Thread riz er
howMany :: Int - Int - Int - Int howMany n1 n2 n3 | (n1 a) (n2 a) (n3 a) = 3 | (n1 a) (n2 a) = 2 | (n1 a) (n3 a) = 2 | otherwise = 1 where a = (n1 + n2 + n3)/3 i get an error message ERROR C:\My Documents\Haskell

Re: Unicode support

2001-10-09 Thread Ashley Yakeley
At 2001-10-09 03:37, Kent Karlsson wrote: code position (=code point): a value between and 10. Would this be a reasonable basis for Haskell's 'Char' type? Yes. It's essentially UTF-32, but without the fixation to 32-bit (21 bits suffice). UTF-32 (a.k.a. UCS-4 in 10646, yet to

Re: Unicode support

2001-10-09 Thread Marcin 'Qrczak' Kowalczyk
On Tue, 9 Oct 2001, Ashley Yakeley wrote: Would it be worthwhile restricting Char to the 0-10 range, just as a Word8 is restricted to 0-FF even though in GHC at least it's stored 32-bit? It is thus restricted in GHC. I think it's a good compromise between 32-bit-Unicode and

Re: exercise 4.19

2001-10-09 Thread Ketil Malde
riz er [EMAIL PROTECTED] writes: howMany :: Int - Int - Int - Int howMany n1 n2 n3 | (n1 a) (n2 a) (n3 a) = 3 | (n1 a) (n2 a) = 2 | (n1 a) (n3 a) = 2 | otherwise = 1 where a = (n1 + n2 + n3)/3 i get an error message Instance of Fractional Int

Re: Extensible downcasts impossible in Haskell? (was Re: Monomorphism, monomorphism...)

2001-10-09 Thread Marcin 'Qrczak' Kowalczyk
Tue, 9 Oct 2001 10:50:19 +1300, Tom Pledger [EMAIL PROTECTED] pisze: I'm curious about this impossibility. - Is it well known? If so, would someone please refer me to a paper or posting which explains it? I don't know. I'm not even sure if some clever encoding couldn't express it,

trouble with excercise 5.26 fibtable

2001-10-09 Thread riz er
im having abit of difficulty doing excersise 5.26 .. possible for an assistance plz :) _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ___ Haskell mailing

Re: Monomorphism, monomorphism...

2001-10-09 Thread Carl R. Witty
Marcin 'Qrczak' Kowalczyk [EMAIL PROTECTED] writes: Since OO languages often use subtypes to emulate constructors of algebraic types, they need downcasts. In Haskell it's perhaps less needed but it's a pity that it's impossible to translate an OO scheme which makes use of downcasts into

Re: Unicode support

2001-10-09 Thread John Meacham
On Tue, Oct 09, 2001 at 12:37:27PM +0200, Kent Karlsson wrote: At 2001-10-09 02:58, Kent Karlsson wrote: In summary: code position (=code point): a value between and 10. Would this be a reasonable basis for Haskell's 'Char' type? Yes. It's essentially UTF-32, but without

Re: Extensible downcasts impossible in Haskell?

2001-10-09 Thread Tom Pledger
Thanks for the further explanation, Marcin. If I understand correctly, you're talking about explicitly named algebraic types, not just unions where the type is an anonymous reflection of the structure as in: Var (foo :: Int, bar :: Char) -- in the style of A Polymorphic Type System for

help for excersise 5.13

2001-10-09 Thread rock dwan
i have done the function for borrowers but having some trouble with the borrowed and numBorrowed function. I have listed my code below with the borrowed function not completed and numBorrowed also not completed.Can you plz try to fill in the borrowed and numBorrowed functions if you can

Re: Import Chasing Problems - hello.lhs

2001-10-09 Thread John Heron
Hi Mike, Sigbjorn, Simon, Thanks so much for the pointers. Sigbjorn's suggestion to check out the patch was what finally fixed my problem. BTW, ghci still does work for me. I get this lovely message: F:\stuffghci -package win32 hello.lhs C:\ghc-5.02\bin\ghc.exe: file `P?B' does not exist The

Re: Unicode support

2001-10-09 Thread Ketil Malde
[Posted to haskell-cafe, since it's getting quite off topic] Kent Karlsson [EMAIL PROTECTED] writes: for a long time. 16 bit unicode should be gotten rid of, being the worst of both worlds, non backwards compatable with ascii, endianness issues and no constant length encoding utf8

Re: Unicode support

2001-10-09 Thread Kent Karlsson
- Original Message - From: Ketil Malde [EMAIL PROTECTED] ... for a long time. 16 bit unicode should be gotten rid of, being the worst of both worlds, non backwards compatable with ascii, endianness issues and no constant length encoding utf8 externally and utf32 when worknig

Re: Unicode support

2001-10-09 Thread Ketil Malde
Kent Karlsson [EMAIL PROTECTED] writes: You have endianness issues, and you need to explicitly type text files or insert BOMs. You have to distinguish between the encoding form (what you use internally) and encoding scheme (externally). Good point, of course. Most of the arguments apply

Re: Reasons behind the one instance per type limitation

2001-10-09 Thread Diego Dainese
On Mon, 8 Oct 2001 15:03:15 -0700 Ashley Yakeley [EMAIL PROTECTED] wrote: At 2001-10-08 09:27, Diego Dainese wrote: what are the reasons behind the rule stating that a type must not be declared as an instance of a particular class, more than once in the program? It's so that the members

Re: Reasons behind the one instance per type limitation

2001-10-09 Thread Iavor S. Diatchki
hello, Why aren't instance declarations handled by the module system like every other symbol, so that a module can decide when to import an instance declaration and when to export it? Are there technical difficulties with this approach? i beleive the reason is that instances don't have

= vs -

2001-10-09 Thread Mark Carroll
What is the rationale for when Haskell demands a = and when it demands a -? Ideas that occur to me are: (a) The distinction helps the parser a lot (b) There's a semantic difference that the language's grammar is trying to express that isn't obvious to me -- Mark

RE: Unicode support

2001-10-09 Thread Karlsson Kent - keka
Title: RE: Unicode support -Original Message- From: Ketil Malde [mailto:[EMAIL PROTECTED]] ... But as I said: they will not go away now, they are too firmly established. Yep. But it appears that the right choice for external encoding scheme would be UTF-8. You're free to

SuSE 7.3

2001-10-09 Thread Jorge Adriano
Está para sair a 22 de Outubro... até eu estou a ficar surpreendido com a evolução destes tipos. Qd penso do 1o Linux que instalei (à cerca de dois anos? - andava eu no 4o ano) sinto-me como aquelas velhas que dizem eu ainda sou do tempo..., err... em que tinha de andar a alterar XF86Config à

Opsss... Sorry (SuSE 7.3)

2001-10-09 Thread Jorge Adriano
I just accidently sent a mail written in portuguese about SuSE 7.3. I'm really sorry, it will not happen again. My apologies J.A. ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Reasons behind the one instance per type limitation

2001-10-09 Thread Brian Boutel
Iavor S. Diatchki wrote: hello, Why aren't instance declarations handled by the module system like every other symbol, so that a module can decide when to import an instance declaration and when to export it? Are there technical difficulties with this approach? i beleive the

Re: = vs -

2001-10-09 Thread Ashley Yakeley
At 2001-10-09 11:55, Mark Carroll wrote: What is the rationale for when Haskell demands a = and when it demands a -? What? Example please... -- Ashley Yakeley, Seattle WA ___ Haskell-Cafe mailing list [EMAIL PROTECTED]

Re: = vs -

2001-10-09 Thread Ketil Malde
Mark Carroll [EMAIL PROTECTED] writes: On Tue, 9 Oct 2001, Ashley Yakeley wrote: At 2001-10-09 11:55, Mark Carroll wrote: What is the rationale for when Haskell demands a = and when it demands a -? Okay, I can't give you anything formal, but here's my intuitive understanding of things