Re: missing Native?

2000-03-13 Thread Sven Panne
| otherwise = do c - peekElemOff buf i loop (i+1) (c:cs) val - loop 0 xs free buf return val -} --- Cheers, Sven -- Sven PanneTel.: +49

Enum instance for Ratio

2000-03-09 Thread Sven Panne
for enumFromThenTo is used, which truncates 4%3 to 1 (same for enumFromTo). Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: binary IO

2000-03-09 Thread Sven Panne
hPutBin stdout (3.141592 :: Float) hPutBin stdout (12345678 :: Int) print = (hGetBin stdin :: IO Int) --SNIPSNIPSNIPSNIPSNIPSNIPSNIPSNIP-- Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer

Re: Qualified names in foreign export

2000-03-08 Thread Sven Panne
. Comments/opinions? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D

Re: GHC include files

2000-03-02 Thread Sven Panne
into /usr/lib/ghc. So what's the problem? :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL

Re: litlits in interface files

2000-02-25 Thread Sven Panne
ingle load instruction in machine code. *sigh* Normally I'm not an advocate of O(1) optimizations, but in this special case, which will happen in lots of inner loops, the situation is different... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Ins

Re: litlits in interface files

2000-02-25 Thread Sven Panne
process and outputs Haskell definitions or #defines for all needed constants. Aaaargl... Has anybody better ideas (coding tricks, extensions for the FFI, etc.) for a general solution to this problem? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU

Re: litlits in interface files

2000-02-25 Thread Sven Panne
such functions... And if you need a tool (which I desperately would), it can produce the constants right away, without any foreign import. Hmmm, how does this fit with Green Card? And the tool would seem conspicuously like a cut-down version of Manuel's C-HS. Cheers, Sven -- Sven Panne

Re: Importing instances without pangling Make

2000-02-25 Thread Sven Panne
Sven Panne wrote: George Russell wrote: [...] Supposing you now make a change to C. For example, suppose you add a line pangle = "pangle" to the end of C, and add "pangle" to the list of exports from C. Then you recompile C. You will find that C.hi now has a

Re: Weak pointers, finalizers and SIGSEGV

2000-02-17 Thread Sven Panne
100 (Gen: 0) [... ad infinitum ... ] Simon: Something wrong with the weak pointer stuff (used for implementing addForeignFinalizer)? Puzzled, Sven -- Sven PanneTel.: +49/89

Re: foreignObjToAddr

2000-02-17 Thread Sven Panne
, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http

Re: Latest GHC (binary distr) and Suse 6.3 linux

2000-02-16 Thread Sven Panne
the RPMs from ftp://ftp.informatik.uni-muenchen.de/pub/local/pms/ They have been built on SuSE 6.2 and consequently don't depend on the dynamic version of libgmp. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik

Re: Wanted: mmap or other fast IO

2000-02-16 Thread Sven Panne
is not using -O for modules using FFI or readXXXOffAddr. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto

Re: Wanted: mmap or other fast IO

2000-02-16 Thread Sven Panne
is not using -O for modules using FFI or readXXXOffAddr. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto

Re: HOpenGL

2000-02-13 Thread Sven Panne
... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http

Re: binary IO

2000-02-11 Thread Sven Panne
_casm_ ``union {float f; char c[4];} x; x.c[0]=%0; x.c[1]=%1; x.c[2]=%2; x.c[3]=%3; %r=x.f;'' a b c d --- Embarrassing... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut

Re: False warning about overlapping patterns

2000-02-06 Thread Sven Panne
nings disappear, too. Hmmm, perhaps I should update my (slightly dormant) Wish List... :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und M

Re: Wish List (Re: False warning about overlapping patterns)

2000-02-06 Thread Sven Panne
please update the link on haskell.org? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED

Re: parse error in Hugs98 library

2000-02-04 Thread Sven Panne
. * Obvious, but easily forgotten: Don't forget -fglasgow-exts and link with the object file containing getRandomSeed (which you probably have to rip off the Hugs98 sources). Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer

Re: mkdependHS usage

2000-02-03 Thread Sven Panne
-s .depend ] ; then $(RM) .depend ; fi -include .depend To The Masters of Sources: What about merging hmake into the GHC tree? SML/NJ has something similar for ages. Cheers, Sven -- Sven PanneTel.: +49/89

Re: Socket module, graphs

2000-02-01 Thread Sven Panne
it any harm otherwise? It's been a long time since my last #include netinet/in.h... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: FFI.lhs

2000-01-31 Thread Sven Panne
hurt if nothing changed and guarantees consistency. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mai

Re: FFI bug ?

2000-01-31 Thread Sven Panne
given FFI (for creation/access) + Foreign(Obj) (for finalization), that the effort for maintaining, documenting, etc. them is at least a little bit doubtful. "Make it simple!" :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Inst

Re: FFI.lhs

2000-01-28 Thread Sven Panne
you invoke autoheader and autoconf before configure? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL

Re: strange evaluation problem

2000-01-27 Thread Sven Panne
' on the returned value... Confused as usual, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED

DocBook tools versionitis?

2000-01-25 Thread Sven Panne
\fi \@dofilelist \ifdim \f... l.4647 ...e{}\endNode{}\endNode{}\endNode{}\endFOT {} Output written on installing.dvi (5 pages, 76420 bytes). Transcript written on installing.log. Suggestions? Cheers, Sven -- Sven Panne

Re: DocBook tools versionitis?

2000-01-25 Thread Sven Panne
Michael Weber wrote: [...] IIRC, Sven's version is SuSE home-brewed (and incompatible, of course) [...] I've just realized the same, and immediately sent a bug report to SuSE. :-( Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer

Deprecated features

2000-01-24 Thread Sven Panne
-- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http://www.informatik.uni

Re: Forthcoming 4.06

2000-01-20 Thread Sven Panne
with the above `echo' and why 16384 was enough on my previous Linux box, but it works... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: Forthcoming 4.06

2000-01-20 Thread Sven Panne
. * The foreign function interface is missing from the user's guide. Should the FFI document be merged into GHC's docs? If not, it would be a good thing to include the FFI document in the GHC distribution somehow. Cheers, Sven -- Sven PanneTel

Re: Forthcoming 4.06

2000-01-18 Thread Sven Panne
Card and HDirect (probably Happy, too, can't remember) can't be built currently. Fixing this rather soon would be nice, because this would improve the chances of getting those into the next SuSE release. (= Hint! :-) Cheers, Sven -- Sven PanneTel.: +49/89

Re: absCSyn/Costs.lhs won't compile

1999-12-21 Thread Sven Panne
George Russell wrote: [...] gmake: *** [all] Error 1 M-x cvs-update :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: Bug in Edison Makefile

1999-12-21 Thread Sven Panne
+= -fallow-undecidable-instances (Actually, -O is included, too.) I'm not sure if adding -funbox-strict-fields would do any harm, so it is not added. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49

Overlapping LHS and unused imports

1999-12-15 Thread Sven Panne
ago. Deja vu? Did they change the matrix? %-) And another one: -Wall (which includes -fwarn-unused-imports) doesn't warn about explicitly imported but unused entities anymore. An example can be given if needed. Cheers, Sven -- Sven PanneTel.: +49/8

Re: libgmp.so.2 desperately needed

1999-12-07 Thread Sven Panne
"Manuel M. T. Chakravarty" wrote: [...] In the case of SuSE, IMHO, the Right Thing is a bug report to SuSE. Done. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/217

Re: record lables overloading

1999-11-17 Thread Sven Panne
Sven Panne wrote: Tom Pledger wrote: How about using qualified imports of modules? [...] module Test where import qualified QL1 import QL2 [...] You don't even have to use a qualified import for QL1, prefixing the ambiguous occurrences of up/low is enough [...] Just

Re: RFC: An extended Addr module

1999-10-08 Thread Sven Panne
dy there...? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D

Info table warning

1999-10-06 Thread Sven Panne
to be a nice value for an StgWord32... :-} Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED

Re: Staying alive

1999-10-06 Thread Sven Panne
, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http

Re: Staying alive

1999-10-06 Thread Sven Panne
quot; Addr module later... Cheers, Sven P.S.: I've received a few personal mails regarding the spelling of marshaling, but there is no real agreement on this. It seems that both spellings are possible and both "feel right", depending on the speaker and the dictionary.

RFC: An extended Addr module

1999-10-06 Thread Sven Panne
much more consistent with the old definitions. Alas, almost nobody mailed his/her wishes for a marshaling library, so this proposal is obviously biased towards HOpenGL's (and I think Manuel's) needs. Comments/suggestions? Cheers, Sven -- Sven PanneTe

Re: Staying alive

1999-10-04 Thread Sven Panne
the native speakers: Which spelling is correct, "marshaling" or "marshalling"? Ispell says "marshaling", but this looks a bit odd to me. -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik

Re: ghc-4.04: memory leak with foreign export dynamic?

1999-09-28 Thread Sven Panne
Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL

Re: advice wanted on GUI design patterns

1999-09-28 Thread Sven Panne
This shows the following: * You can use Haskell like C. :-} * It is explicit which state is shared between the event handlers. * For larger programs this box fiddling should better be hidden in some GUI abstraction (URLs have already

Staying alive

1999-09-22 Thread Sven Panne
-- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http://www.informatik.uni

Offside rule bug?

1999-09-15 Thread Sven Panne
"Hello, world!" - panne:~ ghc Foo.hs Foo.hs:3: parse error on input `' Compilation had errors Adding one more space in front of putStrLn makes ghc happy. Cheers, Sven -- Sven PanneTel.: +49/89/217

Re: Dear Santa (Error Messages)

1999-09-15 Thread Sven Panne
a) = [a] - [a] - [a] Another source of ugliness in the implementation of any Haskell parser will probably be the longest-parse rule. Another quiz: Put semantic-preserving parentheses around the following expressions: if x then y else z + 1 if x then y else z :: T Cheers, Sven -- Sven Panne

Re: Dear Santa (Error Messages)

1999-09-14 Thread Sven Panne
al C++ commando" sticker will probably knock on Simon's door... ;-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oet

Re: Dear Santa (Error Messages)

1999-09-14 Thread Sven Panne
a second. And the "recovery" I've seen so far, e.g. from some C++ compilers, is definitely not worth any effort. Cheers, Sven "Santa" Panne -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2

ANN: The Haskell Wish List

1999-09-07 Thread Sven Panne
the Haskell community, so head over to the above URL and see how *you* can contribute and improve the Haskell-experience! :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178

Re: Haskell HTTP lib?

1999-08-27 Thread Sven Panne
/glasgow-haskell-bugs/msg01147.html Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED

Re: Haskell HTTP lib?

1999-08-27 Thread Sven Panne
in academia you earn *nothing* for implementing hSeek and friends, but on the other hand, it shouldn't be *that* hard and time-consuming... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/

Re: Licenses and Libraries

1999-08-24 Thread Sven Panne
into .idl files, which of the dozens of ihc's command line options you need for this simple interfacing to C, etc. Without this, I guess, most *nix people will stick to Green Card and/or the FFI. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Ins

Re: Releasing server sockets with Socket module

1999-08-20 Thread Sven Panne
e packets still in the network. After a minute or so the port is free again. I'm not a TCP/IP guru, but this seems to be the intended behaviour. The "socket" tool (from Juergen Nickelsen [EMAIL PROTECTED]) behaves similarly. Cheers, Sven -- Sven Panne

Instance bug

1999-08-17 Thread Sven Panne
.hs).%-{ Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D

Typechecker buglet

1999-08-17 Thread Sven Panne
-} Please report it as a compiler bug to [EMAIL PROTECTED] Done! :o) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: Haskell 98

1999-07-28 Thread Sven Panne
is a non-issue here. Lseek's manual pages tell me something about a *byte* offset, not a *character* offset. Related points would be: What does hGetChar exactly mean in the presence of Unicode/UTF-8/... and random access? Cheers, Sven -- Sven PanneTel.:

Enjoy the silence

1999-07-27 Thread Sven Panne
, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http

Re: Haskell Parser in Hugs

1999-07-27 Thread Sven Panne
the module system. Any *easy* suggestions for this? Perhaps if I have some spare time... (Hmmm, not very probable at the moment, the weather in Munich is too nice... :-) But I wouldn't mind if somebody else volunteered. Cheers, Sven -- Sven PanneTel.: +

Re: Importing, hiding, and exporting

1999-07-26 Thread Sven Panne
the name of MakeDing is changed to Ding, too? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL

Re: Importing, hiding, and exporting

1999-07-26 Thread Sven Panne
different namespaces together in the hiding clause? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto

Importing, hiding, and exporting

1999-07-23 Thread Sven Panne
while Hugs is completely happy with this. Can somebody elaborate on this? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oe

callFun.s still needed?

1999-07-16 Thread Sven Panne
And another one: Is callFun.s still needed? Almost everything is #ifdef-ed out and the Alpha assembler does not like the directive .file "callfun.S" Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer

Re: Portability questions of the week :-)

1999-07-16 Thread Sven Panne
int i, j; i = j * sizeof(...); You could lose some of your bits during assignment here. I guess we will all have much fun when Intel/HP release their Merced processor... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informa

RTS API and 64bits

1999-07-16 Thread Sven Panne
and longs are 8 byte on this architecture. Is this correct? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67

Portability questions of the week :-)

1999-07-16 Thread Sven Panne
s, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http://www.info

Re: Preprocessor question

1999-07-13 Thread Sven Panne
t;" works $ echo TEST | /lib/cpp -DTEST=works - # 1 "" works $ echo TEST | /usr/bin/cpp -DTEST=works - # 1 "" works $ echo TEST | /usr/ucb/cpp -DTEST=works - # 1 "" works -- Cheers, Sven -- Sven Panne

Re: Problem with 4.03 FFI on Sparc?

1999-07-12 Thread Sven Panne
ifferences between platforms SuSE tries to avoid. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mai

Re: Random Access Files in Haskell

1999-07-09 Thread Sven Panne
struct the original name. Patent pending... "Everything counts in large amounts" (Depeche Mode) :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und M

Re: Random Access Files in Haskell

1999-07-08 Thread Sven Panne
.: The only response was from Ferguson, pointing out possible problems with CR/LF vs LF, but I take Java's point of view: "A newline is a newline is a newline." -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +

Re: GHC warnings

1999-06-29 Thread Sven Panne
quot; try to tell me? Am *I* doing something silly or ghc? :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingens

Re: Can't compile HaskellDirect with GHC

1999-06-23 Thread Sven Panne
-fglasgow-exts -recomp -Rghc-timing -O -H10m -c Lex.lhs -o Lex.o -osuf o TcMatches.lhs:274: Non-exhaustive patterns in function tcStmts Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178

Repositioning Handles

1999-06-16 Thread Sven Panne
tions, see e.g. http://www.wotsit.org/. Merging a file position with a handle is even worse, because this keeps the file open even when only the position is needed later. Opinions? Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Inst

Scanner Bugs

1999-06-14 Thread Sven Panne
' Compilation had errors -- Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: greetings; compilation error

1999-06-11 Thread Sven Panne
ade... :-} Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D

Re: how to write a simple cat

1999-06-02 Thread Sven Panne
if I had written the more general (.|) :: Functor f = f a - (a - b) - f b (.|) = flip fmap instead...:-} Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier

Re: Announcing Hugs 98

1999-06-02 Thread Sven Panne
-- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Muenchen http

Re: how to write a simple cat

1999-06-01 Thread Sven Panne
lenlim = readFile fn = lines .| filter (length .| (lenlim)) .| unlines .| putStr Whether this is more or less readable than Hannah's version is largely a matter of personal taste. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer

Re: how to write a simple cat

1999-06-01 Thread Sven Panne
..] .| map (\(n,l) - shows n ") " ++ l) .| unlines .| putStr [ This mail is optimised for 1280x1024 in landscape mode... ] Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/217

Re: Portability dreams

1999-05-28 Thread Sven Panne
hcmake MyMain2.hs', ... should be possible, too. I'd really love to have this for teaching. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: Portability dreams

1999-05-28 Thread Sven Panne
directives. [...] Hmmm, defining symbols is obfuscating...? \end{sarcasm} Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oe

Re: Portability dreams

1999-05-28 Thread Sven Panne
ommon case simple". As an additional tool it could be nice. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr.

Portability dreams

1999-05-27 Thread Sven Panne
and then pipes things through cpp. This kind of interaction should be specified in the report, too. (BTW: When using dove tails in the first line of literate scripts, Hugs fails with a "Program line next to comment". I stumbled over this when trying a different version

Re: heap and other problems self-compiling 4.02

1999-05-19 Thread Sven Panne
Thomas Pasch wrote: [...] But when it cames to compile ParselFace.hs in ghc/compiler/rename the Heap was exhausted. IIRC, -dcore-lint radically cuts down the heap required for the compilation of this module. Cheers, Sven -- Sven PanneTel.: +49/89

Re: Monad question

1999-04-22 Thread Sven Panne
ntents "." The funny Pfail in the error message stems from the fact that hbc typechecks a desugared version of the source program, which can be confusing. Hope that helps, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik

Renamer buglet in 4.03

1999-04-21 Thread Sven Panne
signature for `s' ghc: module version changed to 1; reason: no old .hi file Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen

Re: greencard example does not compile

1999-04-16 Thread Sven Panne
r :: Polar - Polar %call ( polarToCart / cartToPolar (int x) (int y)) %code a = -x; % b = -y; %result ( polarToCart / cartToPolar (int a) (int b)) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FA

bug in 4.03's desugarer

1999-04-12 Thread Sven Panne
-exhaustive patterns in function rebuildConArgs Cheers, Sven P.S.: The CVS repository (i.e. solander.dcs.gla.ac.uk) is dead at the moment. traceroute tells me something about an unreachable host somewhere in Glasgow. :-( -- Sven PanneTel.: +49/89

Re: Q: Threads in GHC's RTS

1999-04-09 Thread Sven Panne
of an Addr. This shouldn't break too much code, because both are CCallable. Or have I missed something? No, I did...:o) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Progra

Re: Q: Threads in GHC's RTS

1999-04-09 Thread Sven Panne
xactly yet. Note: Complicated as the above scenario seems, it is quite common for many APIs, e.g. a timer callback often wants to re-register another timer callback. Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik

Announce: HOpenGL, an OpenGL/GLUT binding

1999-04-06 Thread Sven Panne
on, update your tools and join the bleeding edge! :-) Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67

Re: Xlib IDL for H/Direct?

1999-03-29 Thread Sven Panne
"Sigbjorn Finne (Intl Vendor)" wrote: Sven Panne wrote: What's wrong with using Green Card? Its %enum generates the desired mappings automatically and consistently. AFAIK, this type safety is something even IDL compilers don't do for you. Use whatever works best for yo

Re: Xlib IDL for H/Direct?

1999-03-29 Thread Sven Panne
unsigned long off_t' has not (at least conceptually). I consider the automatic wrapping/unwrapping into newtypes as a crucial feature of any kind of type-safe IDL, so it should definitely included into H/Direct. Cheers, Sven -- Sven PanneTel.: +49/89/217

Re: Re2: GHC-4.03 heap managemen bug?

1999-03-26 Thread Sven Panne
o hsc: fatal error: scavenge_stack: weird activation record found on stack. make[3]: *** [PrelArr.o] Error 1 make[2]: *** [all] Error 1 make[1]: *** [all] Error 1 make: *** [all] Error 1 Alas, I have the same problem with today's ghc-4.03, too. Two days ago everything was fine. Cheers,

Re: Xlib IDL for H/Direct?

1999-03-26 Thread Sven Panne
which it's no problem passing a matrix mode as a texture name because almost everything is mapped to Int. :-P But I'd like to be proved wrong... Cheers, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/217

unsatisfactory diagnostic in GHC

1999-03-23 Thread Sven Panne
] --- In the real program the ``0'' was actually something more complicated, of course. Cheers, Sven P.S.: The "lookupBindC:no info!"-bug from Feb 22nd is still in yesterday's GHC... :-( -- Sven PanneTel.: +49/89/217

Re: unsatisfactory diagnostic in GHC

1999-03-23 Thread Sven Panne
"Sigbjorn Finne (Intl Vendor)" wrote: Hmm. What's the version info? Compiles fine here with 4.02 build made from current CVS repo sources (as it should, btw.) Hmmm, strange: I?ve updated this morning. repo /= repo?:-} I?ll try again tomorrow. Cheers, Sven --

Re: .hi problem with existentially quantified type variables

1999-03-02 Thread Sven Panne
,0 +1,3 @@ +WithGhcHc = ghc +SRC_HC_OPTS += -optCrts-M52M -O +rename/ParseIface_HC_OPTS += -optCrts-M77M --- -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX

fromInteger/hClose bugs in 4.03

1999-02-21 Thread Sven Panne
s, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr. 67 mailto:[EMAIL PROTECTED]D-80538 Mue

Announce: Haskell-related Linux RPMs

1999-02-18 Thread Sven Panne
"real soon now". But what about Haskell Direct? Have fun, Sven -- Sven PanneTel.: +49/89/2178-2235 LMU, Institut fuer Informatik FAX : +49/89/2178-2211 LFE Programmier- und Modellierungssprachen Oettingenstr.

<    1   2   3   4   5   6   >