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
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
* 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
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
Ashley Yakeley writes:
instance PeirceMonad IO where
{
peirceM foo = do
{
ref - newIORef Nothing;
catch (foo (\a - do
{
writeIORef ref (Just a);
ioError (userError break);
}))
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
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
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
[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