Re: Global variables?

2003-02-02 Thread Richard Uhtenwoldt
Andrew J Bromage writes: John Hughes wrote a nice pearl on the subject, see http://www.math.chalmers.se/~rjmh/Globals.ps Nice! I do not think it is nice: I do not like any of the solutions Hughes considers in that paper because this problem can be handled much more simply with lexical

Re: Haskell slicing tool?

2002-03-20 Thread Richard Uhtenwoldt
code a lot and wants the information to to facilitate refactoring. (by refactoring I mean changing interface boundaries, eg, introducing and eliminating functions.) -- Richard Uhtenwoldt ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http

Re: Ground Up

2002-02-28 Thread Richard Uhtenwoldt
* I still have no clue of most (ok, almost all) of what is being discussed in this mailing list Me neither; don't let that worry you. I'd advise you to ignore threads about difficult issues -- a lot of stuff discussed here is rare borderline cases that are mostly of interest to

Re: Monadic Call/CC?

2002-02-22 Thread Richard Uhtenwoldt
Ashley Yakeley writes: Now here's the interesting thing. The usual way to represent real-world functions (i.e. with side-effects, or changing the world) from a to b is to define a special _type constructor_, 'IO', and define the function as 'a - IO b'. But an alternative, would have been to

Re: Monadic Call/CC?

2002-02-21 Thread Richard Uhtenwoldt
Ashley Yakeley writes: instance PeirceMonad IO where { peirceM foo = do { ref - newIORef Nothing; catch (foo (\a - do { writeIORef ref (Just a); ioError (userError break); }))

Re: a universal printer for Haskell?

2002-02-19 Thread Richard Uhtenwoldt
Ashley Yakeley writes: This is reflection! I'd rather not have Haskell contaminated with such things; Can you say a little more about why you think reflection is bad? Does it make the language implementation run slower? (I'd ask via private email, but when I emailed you in the past I didn't

Re: A View of Monads (Re: performance of monads)

2002-02-18 Thread Richard Uhtenwoldt
the pages. And may the book never end. You, too. -- Richard Uhtenwoldt ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: A newbie's proud first code

2001-11-06 Thread Richard Uhtenwoldt
Hi, I am not sure whether this is the right place to ask this question. I want to know what's the Haskell coding environment used by GHC users on windows? What 's the preferred editor? Is there any Haskell tags for vim? Also, is there any program which will convert Haskell modules to HTML with

Re: URGENT: File exists

2001-11-03 Thread Richard Uhtenwoldt
[EMAIL PROTECTED] writes: I am trying to emulate bash in haskell, and i got a function called shell that waits fot the command and then executes it. The problem is that if the file does not exist, the program returns to Main (it gets out of the shell). The only thing i want to do is to return