Re: Writing a counter function

2002-06-29 Thread Hannah Schroeter
Hello! On Sat, Jun 29, 2002 at 06:23:27PM +0300, Shlomi Fish wrote: [...] Actually, I'd like a more generalized counter. Something that would return both the number and a handler to add another number, which in turn would return the new sum and a new handler, etc. That's just what lazy

Re: Counting occurrences question

2002-06-05 Thread Hannah Schroeter
Hello! On Wed, Jun 05, 2002 at 07:04:28PM +0100, Andy Fugard wrote: = Original Message From xoo [EMAIL PROTECTED] = hi.. i was just wondering if some body could give a simple equation for the following situation.other than recursion plz.. occurrences :: Eq a = a - [a] - [a]

Re: labelled types efficiency

2002-03-07 Thread Hannah Schroeter
Hello! On Fri, Mar 08, 2002 at 12:52:58AM -0300, Andre W B Furtado wrote: Another question about labelled types, this time concerning about efficiency: is there any efficiency differences between functions f and g below? data RType = R Int Char data Stype = S {x :: Int, y :: Char} f

Re: cond and match

2001-12-10 Thread Hannah Schroeter
Hello! On Sun, Dec 09, 2001 at 01:07:08PM +, Marcin 'Qrczak' Kowalczyk wrote: Fri, 7 Dec 2001 17:12:52 -0500 (EST), David Feuer [EMAIL PROTECTED] pisze: I'm wondering why Haskell doesn't support Scheme-like cond statements or a pattern matching predicate. I agree that both constructs

Re: Lazy Sound File IO

2001-12-02 Thread Hannah Schroeter
Hello! On Tue, Oct 23, 2001 at 11:01:00AM -0400, Carl McTague wrote: Please let me refine my question. Is there a general way to coerce an [Int] or [Double] etc. into a String, so that it may be written out to a binary file with hPutStr? There is toEnum, but this doesn't seem like a real

Re: Asynchronous Exceptions

2001-11-26 Thread Hannah Schroeter
Hello! On Fri, Nov 23, 2001 at 09:38:35AM -, Simon Marlow wrote: [...] However, I agree that sometimes you really want to be able to do this, so perhaps we need another form of 'block' which doesn't allow *any* exceptions to be delivered, for those times when you know that the time

Re: Using the std libraries in Ghc(i)

2001-11-04 Thread Hannah Schroeter
Hello! On Sun, Nov 04, 2001 at 05:00:41PM +, Jorge Adriano wrote: How can I use the std functions (listed in the 'Standard Libraries for Haskell 98' documentation) in ghc(i)? I've read the ghc documentation, and seen the several categories (which can be added with '-package

Re: Monomorphism, monomorphism...

2001-10-24 Thread Hannah Schroeter
Hello! On Mon, Oct 08, 2001 at 07:38:09PM +, Marcin 'Qrczak' Kowalczyk wrote: Mon, 8 Oct 2001 11:35:48 +0200, Hannah Schroeter [EMAIL PROTECTED] pisze: Now, with the typical dictionary implementation of type classes, this wouldn't really be too difficult. Dictionaries would have

Re: Monomorphism, monomorphism...

2001-10-08 Thread Hannah Schroeter
Hello! On Sun, Oct 07, 2001 at 11:29:09AM +, Marcin 'Qrczak' Kowalczyk wrote: [...] Shouldn't the compiler be able to limit the recomputations to one per instance of the class? It would require very unusual implementation. Currently the compiler doesn't need to build

Re: GC options. Reply

2001-08-08 Thread Hannah Schroeter
Hello! On Tue, Aug 07, 2001 at 10:47:50AM +0100, Simon Marlow wrote: - Compacting garbage collection is enabled when the residency reaches a certain percentage of the maximum heap size (if there is one). Could there be the possibility to set an absolute amount of memory to start

Re: (no subject)

2001-08-08 Thread Hannah Schroeter
Hello! On Thu, Aug 09, 2001 at 12:10:12AM +1000, Vincent Tseng wrote: hi does anyone know how to do this ? a function that will randomly takes elements from a list eg randomPick 3 ['a','b','c','d','e'] = ['d','a','a'] Your example suggests a type signature like: randomPick :: Int - [a]

Re: I/O in Haskell (Re: hugs = ghc) (fwd)

2001-05-23 Thread Hannah Schroeter
Hello! Some time ago, I discovered a problem with some of GHC's extensions, mainly executeFile. However, I don't know if that's fixed till now, GHC5 doesn't bootstrap at all on OpenBSD/x86. Kind regards, Hannah. Path: mamba.pond.sub.org!not-for-mail From: [EMAIL PROTECTED] (Hannah Schroeter

Re: Monads

2001-05-17 Thread Hannah Schroeter
Hello! On Thu, May 17, 2001 at 11:57:45AM +0200, Rijk-Jan van Haaften wrote: So what you are saying is that I actually don't need Monads to perform the tasks Monads supports ? Indeed. However, not using the Monadic do syntax results in hardly-readible code. I don't really think so. The

Re: Interesting: Lisp as a competitive advantage

2001-05-04 Thread Hannah Schroeter
Hello! On Thu, May 03, 2001 at 06:09:01PM -0500, Dan Knapp wrote: [...] Yeah, it's a good example, but are there any other uses for such quoting? If not, then implementing it as a builtin is perfectly adequate. (Not trying to pick on Lisp; Lisp is great. Just hoping for more examples.)

Re: List of words

2001-05-02 Thread Hannah Schroeter
Hello! On Wed, May 02, 2001 at 01:42:55AM -0700, Ashley Yakeley wrote: At 2001-05-02 01:34, Hannah Schroeter wrote: capitalize (c:cs) = toUpper c : cs capitalizeList = map capitalize ...or if you prefer... capitalizeList :: [String] - [String] capitalizeList = map (map toUpper) I

Re: How to box/unbox values?

2001-04-10 Thread Hannah Schroeter
Hello! On Tue, Apr 10, 2001 at 01:55:21AM +0200, Thomas Pasch wrote: is there an easy way to box/unbox Types. I need this for Int's, so is there a function that does: Int# - Int Int - Int# You must import the appropriate modules, to "see" the type definition for Int (which is data Int =

Re: Profiling burn-rate

2001-04-10 Thread Hannah Schroeter
Hello! On Tue, Apr 10, 2001 at 01:27:11PM -0400, Sengan wrote: [...] processing. Had I had a means of measuring profiling burn-rate, I'm guessing that [...] Using ghc, what's wrong with compiling with -prof and cost centres set (in doubt, use -auto-all -caf-all or similar), and then using

Re: Lightningspeed haskell

2001-03-20 Thread Hannah Schroeter
[CC stripped a bit] On Thu, Mar 01, 2001 at 07:58:26AM +0100, Ketil Malde wrote: Jan-Willem Maessen [EMAIL PROTECTED] writes: Absolutely. Good high-level thread support trumps anything provided by the operating system. Unless you have more than one CPU... No, even then, some high level

Re: Method contexts

2001-02-10 Thread Hannah Schroeter
Hello! On Sun, Jan 28, 2001 at 07:22:09PM +, Marcin 'Qrczak' Kowalczyk wrote: Sun, 28 Jan 2001 19:41:15 +0100, Hannah Schroeter [EMAIL PROTECTED] pisze: Why can't you write: class Eq k = Member c k where member :: c - k - Bool class Member c a = Seq c a instance Eq

Re: Method contexts

2001-02-10 Thread Hannah Schroeter
Hello! On Sat, Feb 10, 2001 at 04:15:46PM +, Marcin 'Qrczak' Kowalczyk wrote: Sat, 10 Feb 2001 16:36:52 +0100, Hannah Schroeter [EMAIL PROTECTED] pisze: Somehow I don't understand this. Eq a is required for Member [a] a, It is not required for Member [a] a, but for the member method

Re: `Covertible' class. Reply.

2001-02-10 Thread Hannah Schroeter
Hello! On Fri, Feb 09, 2001 at 02:59:53AM +, Marcin 'Qrczak' Kowalczyk wrote: [...] Defining a domain by a sample argument is neither elegant (most of the time it's not needed because the type determines the domain) nor general (when considering domains not defined by types, there can

Re: 'Convertible' class?

2001-02-07 Thread Hannah Schroeter
Hello! On Wed, Feb 07, 2001 at 03:43:59PM -0500, Dylan Thurston wrote: In thinking about various issues with the numeric classes, I came up with the following question: Is there a problem with having a class 'Convertible' as follows? class Convertible a b where convert :: a - b

Re: 'Convertible' class?

2001-02-07 Thread Hannah Schroeter
Hello! On Wed, Feb 07, 2001 at 05:43:40PM -0500, Dylan Thurston wrote: [...] class Subtype a b where {- a is subtype of b, if following operations exist -} inject :: a - b project :: b - Maybe a Shouldn't this be a subclass? 'project' is not always easy or possible to define.

Re: MD5 in Haskell

2001-02-03 Thread Hannah Schroeter
Hello! On Thu, Jan 18, 2001 at 03:52:08PM +, Ian Lynagh wrote: [...] 0.1.1 now there which changes the license to GPL/BSD so it can be used as a drop-in replacement for the GHC code. Nice and a big thank you! Kind regards, Hannah. ___

Re: Method contexts

2001-01-28 Thread Hannah Schroeter
Hello! On Sun, Jan 28, 2001 at 02:41:01PM +, Marcin 'Qrczak' Kowalczyk wrote: [...] Why can't you write: class Member c k where member :: Eq k = c - k - Bool class Eq k = Member c k where member :: c - k -

Re: Specifications of 'any', 'all', 'findIndices'

2001-01-23 Thread Hannah Schroeter
Hello! On Tue, Jan 23, 2001 at 09:50:37AM +, Jerzy Karczmarczuk wrote: Hannah Schroeter wrote: Eric Shade wrote: [...] I don't think so. The specifications are quite concise. Hannah. Just a moment, please. Do we speak about "concise" or "clear"? I really

Re: Specifications of 'any', 'all', 'findIndices'

2001-01-22 Thread Hannah Schroeter
Hello! On Mon, Jan 22, 2001 at 11:19:42AM -0600, Eric Shade wrote: I have some questions about the specifications of 'any', 'all', and 'findIndices' in the Haskell 98 reports. The specifications of 'any' and 'all' are any p = or . map p all p = and . map p While this is correct,

Re: GHCi, Hugs (was: Mixture ...)

2001-01-17 Thread Hannah Schroeter
Hello! On Mon, Dec 18, 2000 at 02:07:43AM -0800, Simon Peyton-Jones wrote: | It'd be good if left-behind tools were using a BSD(-like) licence, in | the event that anybody - commercial or otherwise - who wanted to pick | them up again, were free to do so. GHC does indeed have a BSD-like

Re: Boolean Primes Map (continued)

2001-01-17 Thread Hannah Schroeter
Hello! On Fri, Dec 22, 2000 at 05:58:56AM +0200, Shlomi Fish wrote: primes :: Int - [Int] primes how_much = (iterate 2 initial_map) where initial_map :: [Bool] initial_map = (map (\x - True) [ 0 .. how_much]) iterate :: Int - [Bool] - [Int] iterate p (a:as) | p

Re: Imperative Object Destruction

2000-11-13 Thread Hannah Schroeter
Hello! On Mon, Nov 13, 2000 at 09:27:07AM -, Chris Angus wrote: why not create an abstract datatype OpenFile a which is a monad data OpenFile a = OpenFile (Maybe FileHandle - IO a) and create you operations in terms of this openFile :: String - OpenFile () count:: OpenFile

Re: Imperative Object Destruction

2000-11-13 Thread Hannah Schroeter
Hello! On Mon, Nov 13, 2000 at 02:30:17AM -0800, Ashley Yakeley wrote: [...] Doesn't fulfill condition 2: 2. no read or write operations are performed on file-handles that have not yet been opened, or that have already been closed. ...since you can do stealHandle = withOpenFile

Re: The world's smartest i/o device for Haskell

2000-11-02 Thread Hannah Schroeter
Hello! On Wed, Nov 01, 2000 at 02:40:39PM -0500, Jan Skibinski wrote: Described in: http://www.numeric-quest.com/haskell/smartest.html Neat. On page 2 (in lynx, 25 line display), I seemed to recognize it. The real name begins with Sq*** :-) Nice idea that a Haskell IDE could be

Re: Doh!! Still don't quite understand

2000-10-10 Thread Hannah Schroeter
Hello! On Tue, Oct 10, 2000 at 08:11:08PM +0100, Graeme Turner wrote: I have a file of the following format :- Surname , Forename , Age , Height e.g. String, String, Int , Int I have a tuple called Person which is defined as (String,String,Int,Int) as you would expect. What I want to

Simple concurrent issue?

2000-08-01 Thread Hannah Schroeter
Hello! When running this program under GHC 4.08 (OpenBSD 2.7, x86), only "b"s are written. Shouldn't GHC's implementation of Concurrent Haskell be preemptive? Regards, Hannah. import Concurrent main = forkIO a b where a = putStrLn "a" a b = putStrLn "b" b

Re: Haskell threads

2000-07-31 Thread Hannah Schroeter
Hello! On Mon, Jul 31, 2000 at 12:27:52AM +, Bill Halchin wrote: Hello Haskell Community, Is there a tutorial or simple sample Haskell scripts that demonstrate the use of Haskell Thread??. I know that Haskell threads are monad. import Concurrent main = forkIO a b where a =

Re: SocketPrim.hs

2000-07-31 Thread Hannah Schroeter
Hello! On Mon, Jul 31, 2000 at 12:40:07AM +, Bill Halchin wrote: Hello Haskell Community Where can I find the source for the Socket wrapper code, SocketPrim.hs?? If you're using GHC, in fptools/hslibs/net/. If you just want to use it, import it and compile/link with -syslib net.

Re: Bug in GHC?

2000-07-27 Thread Hannah Schroeter
Hello! On Tue, Jul 25, 2000 at 07:13:47AM -0700, Simon Marlow wrote: [...] In the meantime, can I suggest not using hGetContents? I'm guessing that hGetLine should be enough for your purposes. I rewrote the code to use the SocketPrim library and sGetContents from there, as it was using

Re: Bug in GHC?

2000-07-25 Thread Hannah Schroeter
Hello! [yes, I'm the same one] On Mon, Jul 24, 2000 at 07:35:14PM +0200, Hannah Schroeter wrote: Hello! I have this problem with a self compiled GHC, checked out with -rghc-4-07-branch (which should be 4.08, at most with additional commits *on that branch*), checked out about July 18. Btw

Re: Library conventions

2000-06-29 Thread Hannah Schroeter
Hello! On Fri, Jun 23, 2000 at 09:52:53AM -0700, Mark P Jones wrote: [...] Hugs is also quite old; it's core goes back nearly ten years! With a more "modern" interface, we might solve the interface dilemma by arranging for fully qualified names, types, etc. to pop up in a "tooltip" when

Re: simple GHC compiling issues

2000-06-22 Thread Hannah Schroeter
Hello! On Wed, Jun 21, 2000 at 03:21:26PM -0400, Stephen Alden Elliott wrote: I have never used GHC (and am new to Linux as well, what a recipe for disaster) before and am very confused about how to set up dependencies properly and how to configure the make file (I know a little about

Re: Portable C code

2000-06-21 Thread Hannah Schroeter
Hello! On Wed, May 24, 2000 at 08:15:24AM -0700, Julian Seward (Intl Vendor) wrote: | Anybody knows how to generate a portable C code through GHC ? It depends what you mean by portable. GHC can produce C code which you can compile with gcc, without special support -- we call this

Re: error:Instance of Fractional Int required

2000-05-07 Thread Hannah Schroeter
Hello! On Sun, May 07, 2000 at 06:23:33PM +, Sebastian Schulz wrote: [...] shorten :: (Int,Int) - (Int,Int) shorten (a,b) = ( a/(ggt a b) , b/(ggt a b) ) error: Instance of Fractional Int required for definition of shorten You should use `quot` or `div`. Regards, Hannah.

Irrefutable pattern matches

2000-04-20 Thread Hannah Schroeter
Hello! I've just deleted the other mails. However, there's one interesting case where irrefutable matching could be interesting. It's the state monad. A state transformer is about this: newtype ST s a = ST { unST :: (s - (a,s)) } -- function from old state to result and new state Now,

Re: VTALRM and System.system

2000-03-17 Thread Hannah Schroeter
Hello! On Thu, Mar 16, 2000 at 04:48:02PM -0700, Alastair Reid wrote: More through testing of my quick fix (ie trying bigger examples) revealed that my "trap '' 26" hack failed about 1% of the time. This being too often (approximately once per program run!) I hacked up

Re: virtual timers and System.system

2000-03-17 Thread Hannah Schroeter
Hello! On Fri, Mar 17, 2000 at 01:42:14AM -0800, Simon Marlow wrote: [...] After looking at ghc 4.02's libraries for a while (it's all I had around), it looks as though ghc-4.02/ghc/lib/std/cbits/system.c should mask the SIGVTALRM signal after executing fork and before executing exec*.

Re: virtual timers and System.system

2000-03-17 Thread Hannah Schroeter
Hello! On Fri, Mar 17, 2000 at 01:46:03AM -0800, Simon Marlow wrote: I don't get it - execve() and friends are supposed to reset all the signal handlers back to the default state, aren't they? And I can't seem to construct an example to demonstrate the problem. Ah, I get it finally

Re: Haskell + Functional GUIs

2000-03-15 Thread Hannah Schroeter
Hello! On Tue, Mar 14, 2000 at 03:07:38PM +0100, Thomas Hallgren wrote: [...] Today, I put sources for Fudgets [1] version h13t on our ftp site [2]. It compiles with HBC and GHC 4.06. I have patches for h13o to make them compile on GHC without hbcmake/ similar things (i.e. ghc + gmake, no

Re: binary IO

2000-03-10 Thread Hannah Schroeter
Hello! On Fri, Mar 10, 2000 at 01:42:01AM -0800, Simon Marlow wrote: [...] hPutBufBA :: Handle - ByteArray Int - Int - IO () hPutBuf:: Handle - Addr - Int - IO () [...] Why are the output functions of return type IO () and not also IO Int (or rather IO [some integral type large

Re: binary IO

2000-03-10 Thread Hannah Schroeter
Hello! On Fri, Mar 10, 2000 at 02:52:41AM -0800, Simon Marlow wrote: [...] The idea is that the functions never return until the whole buffer is written. If the reading end (of a socket or pipe) is closed prematurely, we'll get an IO error. But even in the IO error, it'd be interesting

Re: Combinators for data flow / Laws of Form

2000-03-09 Thread Hannah Schroeter
Hello! On Wed, Mar 08, 2000 at 12:59:23PM +0100, Arne Bayer wrote: 1.) Does anybody know of (a set of) combinators describing the data flow through functions? The most prominent representative in this resepct is probably composition ('.' in Haskell). Do you already know the SK(I) calculus?

Re: prelude functions not in scope

2000-03-08 Thread Hannah Schroeter
Hello! On Tue, Mar 07, 2000 at 11:29:33PM -0800, Nick Eby wrote: Why is ghc not recognizing prelude functions, specifically isLower, toLower, and isUpper? When compiling, i get the message Variable not in scope: 'isLower' Look at the Haskell report. There's no isLower/toLower/isUpper in

Re: Socket module, graphs

2000-02-01 Thread Hannah Schroeter
Hello! On Tue, Feb 01, 2000 at 12:10:33PM +0100, Sven Panne wrote: Hannah Schroeter wrote: [...] There should be a call to SocketPrim.setSocketOption sock SocketPrim.ReuseAddr 1 before bindSocket. *wink* to the GHC team :-) OK, understood. :-) I've added this to SocketPrim

Re: Socket module, graphs

2000-01-31 Thread Hannah Schroeter
Hello! On Mon, Jan 31, 2000 at 09:11:14PM +0100, Wojciech Moczydlowski, Jr wrote: [...] main = do socket - listenOn (PortNumber (mkPortNumber 6665)) (handle, hn) - accept socket putStrLn hn" - it's just supposed to say who called and exit. Nevertheless, when I try to run

Re: Clean and Haskell

2000-01-16 Thread Hannah Schroeter
Hello! On Mon, Jan 10, 2000 at 01:14:48PM +, Jerzy Karczmarczuk wrote: Ian Jackson defends Haskell, and attacks Clean for "obvious reasons" Clean is not free, etc. : [...] I am not an advocate of Rinus Plasmeijer, but I use, and I WILL USE Clean, for me it *is* free. I find it

Re: bad recursion

2000-01-16 Thread Hannah Schroeter
Hello! On Sun, Jan 16, 2000 at 06:44:02PM +0100, Pablo E. Martinez Lopez wrote: [...] let undef = undef in case undef of (ps,xs',ys') - 1:ps ~ _|_ But there's the possibility of irrefutable matches let undef=undef in case undef of (a,b) - 1 = _|_ let undef=undef in

Re: GHC Select and Time modules - struct timeval

1999-12-09 Thread Hannah Schroeter
Hallo! On Wed, Dec 08, 1999 at 10:39:10PM +, Alex Ferguson wrote: Keith Wansbrough: If the Integer is greater than 2^64-1 then simply pass NULL to select(): I think 595 000 years is near enough forever given current operating systems... Quincentomillennium bug, anyone? ;-) No.

Re: deleteBy type

1999-12-05 Thread Hannah Schroeter
Hello! On Sun, Dec 05, 1999 at 05:53:33PM +, Jon Fairbairn wrote: Is not deleteBy :: (a-Bool) - [a] - [a] more natural for the library than deleteBy :: (a-a-Bool) - a - [a] - [a] ? I'd say so. In general the prelude seems rather weak

Re: GHC Select and Time modules - struct timeval

1999-12-01 Thread Hannah Schroeter
Hello! On Wed, Dec 01, 1999 at 03:59:44PM -0800, Sigbjorn Finne wrote: I don't see a good reason why hSelect couldn't be changed to take a TimeVal, as you suggest: data TimeVal = TimeVal { tv_sec :: Int , tv_usec :: Int } I would either rely on

Re: using an array with a type constructor

1999-11-22 Thread Hannah Schroeter
Hello! On Sun, Nov 21, 1999 at 09:07:47PM -0500, c_stanto wrote: I want to make a hash table using an array as the main part. I want to do: type Entry a = (String , a) type HashTable a = array Int (Entry a) meaning that I want a hashTable whose entries are of type Entry and

Re: The Haskell mailing list

1999-10-12 Thread Hannah Schroeter
Hello! On Fri, Oct 08, 1999 at 07:04:07AM -0400, Paul Hudak wrote: Perhaps we should create a comp.lang.haskell? -Paul Frankly, I think there's still enough room in c.l.functional for Haskell related threads. However, if a discussion and vote comes up for a Haskell newsgroup, I'll off course

Re: core dumps when making use of IORefs

1999-09-22 Thread Hannah Schroeter
Hello! On Tue, Sep 14, 1999 at 12:43:11AM -0700, Simon Peyton-Jones wrote: {-# notInline test #-} test :: IORef [a] test = unsafePerformIO $ newIORef [] main = do writeIORef test [42] bang - readIORef test print (bang :: [Char]) [...] Hmmm. The type of test should

Re: GHC 4.04 patchlevel 1 released

1999-09-22 Thread Hannah Schroeter
Hello! On Wed, Sep 15, 1999 at 05:48:30AM -0700, Simon Marlow wrote: [...] - gcc 2.95 compatibility What's that specifically? I ask, because I'm using OpenBSD, and am usually bootstrapping new versions with an old 3.02 installation, because of the occasional problems with compiling

Re: Bug Tracking Systems?

1999-09-22 Thread Hannah Schroeter
Hello! On Tue, Sep 14, 1999 at 03:55:39AM -0700, Simon Marlow wrote: [...] - BugZilla (the Mozilla bug tracker). Web/CGI based, uses an SQL database. Does just about everything under the sun, probably a bit heavyweight for us. Does anyone have any experience with

Re: Licenses and Libraries

1999-09-22 Thread Hannah Schroeter
Hello! On Fri, Aug 27, 1999 at 09:41:22PM +0900, Manuel M. T. Chakravarty wrote: [...] Better make it work with Corba, which is the basement of the IPC used for Gnome, but not only that. For a first touch, one could use the standard C mapping via the GHC FFI (is that implemented in other

Re: Licenses and Libraries

1999-08-27 Thread Hannah Schroeter
Hello! On Mon, Aug 23, 1999 at 12:03:25AM +1000, Manuel M. T. Chakravarty wrote: [...] Anyway, I am still thinking about adapting H/Direct to work with GNOME (www.gnome.org - the GNU answer to COM, DCOM, and ActiveX) when I am through with GTK+. Better make it work with Corba, which is the

Re: A Haskell-Shell

1999-08-24 Thread Hannah Schroeter
Hello! On Tue, Aug 24, 1999 at 03:41:18AM +1000, Fergus Henderson wrote: [...] This is a convenient hack, but IMHO it is not suitable for inclusion in the Haskell standard library, because it increases the risk of security holes in Haskell applications. I agree. I don't like that similar

CVS server glitch

1999-07-14 Thread Hannah Schroeter
Hello! When I type cvs -z 3 up -APd in the fptools directory, the update aborts (fortunately after having updated everything, except possibly for some nofib bits) with this error message: cvs server: Updating nofib/PRIVATE/amoco-linear-system-solver cvs [server aborted]: cannot open directory

Re: TCP/IP Implementation for Haskell

1999-07-09 Thread Hannah Schroeter
Hello! On Thu, Jul 08, 1999 at 02:56:57PM -0300, Tamara Rezk wrote: Do anyone know where can I get any implementation of TCP/IP for haskell? Thanks. Tamara Rezk Have you got my mail? Date: Sun, 4 Jul 1999 11:46:48 +0200 From: Hannah Schroeter [EMAIL PROTECTED] Subject: Re: TCP/IP

Re: TCP/IP Implementation for Haskell

1999-07-04 Thread Hannah Schroeter
Hello! On Sun, Jul 04, 1999 at 12:12:26AM -0300, Tamara Rezk wrote: Do anyone know where can I get any implementation of TCP/IP for haskell? Thanks. For GHC, look at modules Socket and SocketPrim in -syslib misc. For hugs, AFAIK there's no socket library, but you could build one using e.g.

Parser or Renamer error

1999-06-28 Thread Hannah Schroeter
Hello! While trying to compile fudgets with my newest ghc build (CVS, checked out on Mon Jun 21, about 18:00 GMT), the following error occurred: Font.hs:182: Data constructor not in scope: `LA' Font.hs:182: Variable not in scope: `.!' Font.hs:182: Data constructor not in scope: `LA'

Re: Portability dreams

1999-06-23 Thread Hannah Schroeter
On Fri, May 28, 1999 at 04:18:57AM -0700, Simon Marlow wrote: [...] * Make compilation of simple programs a simple thing for Joe User. We could include ghcmake with ghc - then it's just a case of typing 'ghcmake' in a directory that contains at least Main.hs. I've got hmake to run with

Re: how to write a simple cat

1999-06-09 Thread Hannah Schroeter
Hello! On Fri, Jun 04, 1999 at 12:18:31PM +0200, Friedrich Dominicus wrote: [...] splitFilterMap unSplitFn afterMap filterPredicate beforeMap splitFn = unSplitFn . map afterMap . filter filterPredicate . map beforeMap . splitFn [...] sorry this looks morre terrible to me than all

Re: how to write a simple cat

1999-06-09 Thread Hannah Schroeter
Hello! On Wed, Jun 02, 1999 at 01:29:12AM -0700, Simon Peyton-Jones wrote: [...] - Would people actually add stuff? I'm a bit skeptical, but it would be great to have my skepticism proved unfounded. I think, Friedrich and those who helped him could have posted their questions and

Re: how to write a simple cat

1999-06-09 Thread Hannah Schroeter
Hello! On Fri, Jun 04, 1999 at 12:29:45PM +0200, Friedrich Dominicus wrote: [...] What is difficult is that by using some predefined function, one can express very much in very small code. I believe Haskell is even more expressive than most OO languages with comparable libraries

Re: how to write a simple cat

1999-06-04 Thread Hannah Schroeter
Hello! On Wed, Jun 02, 1999 at 08:12:04AM +0200, Friedrich Dominicus wrote: [...] this seems to to the thing I would like it to do. I now have to check if the given fn is valid and raise an error if not so I do think I'll make it;-) No you don't have to check fn. readFile checks and throws

Re: how to write a simple cat

1999-06-03 Thread Hannah Schroeter
Hello, Friedrich. On Tue, Jun 01, 1999 at 04:04:42PM +0200, Friedrich Dominicus wrote: [...] longerThan :: String {- filename -} - Int {- length limit -} - IO () longerThan fn lenlim = do content - readFile fn let li = lines content fl = filter (\l - length l lenlim)

Re: how to write a simple cat

1999-06-01 Thread Hannah Schroeter
Hello! On Tue, Jun 01, 1999 at 06:58:32AM +0200, Friedrich Dominicus wrote: [...] I want to do the following, read a file line by line and finding out which line is longer than x-chars. I want to print out which lines are so long. I think that can just be done line-wise. Thanks for you

Re: how to write a simple cat

1999-05-31 Thread Hannah Schroeter
Hello! On Mon, May 31, 1999 at 06:01:31PM +0200, Friedrich Dominicus wrote: Hannah Schroeter wrote: Hello! On Fri, May 28, 1999 at 08:00:27AM +0200, Friedrich Dominicus wrote: I wrote before with my trouble understanding hugsIsEOF. But I don't have found a clean way just to write

Re: more on Rules

1999-05-09 Thread Hannah Schroeter
Hello! On Thu, May 06, 1999 at 09:26:15PM -0400, Arvind wrote: [...] The optimization " n+1 n == True " is extremely useful in array subscript analysis, bounds checking etc. and is correct as long as n terminates (is not bottom). The cases where this optimization is used most often, n

Re: fromInteger/hClose bugs in 4.03

1999-04-25 Thread Hannah Schroeter
Hello! [older mail] On Sun, Feb 21, 1999 at 11:47:40PM -0800, Sigbjorn Finne (Intl Vendor) wrote: Sven Panne [EMAIL PROTECTED] writes: ... * hClose on a semi-closed handle fails (4.02 has this bug, too): [...] But that's not the case here. By the time you get around to doing the

Re: Fudgets and GHC?!

1999-04-19 Thread Hannah Schroeter
Hello! On Sun, Apr 18, 1999 at 01:23:49AM +0200, Thomas Hallgren wrote: Has anyone already got Fudgets to compile with GHC? Yes, a few weeks ago made the neccessary changes to the fudgets library for Haskell 98 compatibility and updated the low level stuff (Xlib interface, etc) written to

Re: Plea for Change #1: Why, O why, `Main'?

1999-04-05 Thread Hannah Schroeter
Hello! On Tue, Mar 30, 1999 at 02:03:23AM -0800, Simon Marlow wrote: [...] That's not so. Haskell doesn't say anything about what files modules have to reside in. Some implementation may have the restriction, but others don't. Hbc allows you to put the Main module in any file, so you