Re: Global variables?

2003-02-16 Thread Richard Uhtenwoldt
Jon Cast writes >I, personally, haven't written a program whose bulk will fit in a single >file in several years, and I doubt I ever will again. So, support for >separate compilation is a necessity. How do you intend to handle this? Hmm; good point. I see I have been guilty of a careless, unc

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

Re: monads, modules, sandboxes

2002-08-21 Thread Richard Uhtenwoldt
this will be my last message on this topic as I need to stop reading this list for a few months. Alastair Reid writes: >A potential difference (which Richard Uhtenwoldt hints at) is that it >can be hard to control the flow of OS capabilities as the capability >is passed from one p

Re: Haskell slicing tool?

2002-03-20 Thread Richard Uhtenwoldt
I do not know Sengan but, from reading that one paragraph I will venture that he is one of those programmers who refactors his code a lot and wants the information to to facilitate refactoring. (by refactoring I mean changing interface boundaries, eg, introducing and eliminating functions.) -- R

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 impl

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 bee

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
made the same argument >"May you keep turning 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: independant monads used together?

2001-11-10 Thread Richard Uhtenwoldt
Pixel writes: >I must be missing something. I still don't understand what is to be done to >mix monads. The short answer is you can't, or you do not want to because it is not worth the effort. E.g., monad transformers can be considered a way to mix monads, but I do not believe they are worth t

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 cr

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 ret