Re: [Haskell-cafe] Current situation regarding global IORefs

2006-04-24 Thread Robert Dockins
On Apr 24, 2006, at 2:42 AM, Adrian Hey wrote: Lennart Augustsson wrote: I think global mutable variables should be regarded with utmost suspicion. There are very few situations where they are the right solution. Well IMO even the use of the term "global mutable variable" causes muddled thin

[Haskell-cafe] Google Summer of Code 2006

2006-04-24 Thread Paolo Martini
Hello, Haskell.org is going to partecipate as mentoring organization to the Google Summer of Code programme of this year. We have formed a group of volunteers taking care of the administrative work as well as the mentoring part. The group is listed here:

Re: [Haskell-cafe] Re: Control.Exceptions and MonadIO

2006-04-24 Thread Brian Hulley
Brian Hulley wrote: I've started work on a module to replace Control.Exception by wrapping all the original Control.Exception functions in more general monadic functions and using two type classes as follows: class MonadIO m => MonadException m where catch :: m a -> (Exception -> m a) -> m a

Re: [Haskell-cafe] Current situation regarding global IORefs

2006-04-24 Thread Lennart Augustsson
Adrian Hey wrote: . I was going to respond, but Cale very eloquently said most of what I was thinking. Let me just add one thing. Sometimes you hear the argument "I need a global IORef here because it's to track the use of my single screen" (or keyboard, or elevator, or some some other gizm

[Haskell-cafe] Re: How to get Haddock to generate docs for a directory tree of modules

2006-04-24 Thread Brian Hulley
Simon Marlow wrote: Brian Hulley wrote: I've been looking at the docs for Haddock at http://haskell.org/haddock/haddock-html-0.7/index.html but I can't seem to find any option to recursively traverse a directory generating hyperlinked docs for all modules anywhere in the directory or any sub di

[Haskell-cafe] Re: Haddock seems to generate wrong types in newtype deriving

2006-04-24 Thread Brian Hulley
Simon Marlow wrote: Brian Hulley wrote: Hi - I have the following code: [snip] Is this just a bug in Haddock or am I misunderstanding something about Haskell? It's a bug / missing feature in Haddock. Haddock is basically pretty dumb when it comes to understanding Haskell code; it knows abo

Re: [Haskell-cafe] Advice needed on best way to simulate an STL vector

2006-04-24 Thread Ross Paterson
On Wed, Apr 19, 2006 at 09:32:19PM +0200, Udo Stenzel wrote: > We don't have an implementation of Ropes (yet?). I think, a Finger Tree > of Fast Packed Strings might be the closest thing. I'd even implement > it this way, if the low performance of raw Strings finally overcame my > inertia... Sou

[Haskell-cafe] Re: Haddock seems to generate wrong types in newtype deriving

2006-04-24 Thread Simon Marlow
Brian Hulley wrote: Hi - I have the following code: data MState = MState -- details omitted type MonadStateMState = MonadState MState -- necessary for Haddock newtype ManagerM a = ManagerM (StateT MState IO a) deriving (Monad, MonadIO, MonadStateMState) which mea

[Haskell-cafe] Re: How to get Haddock to generate docs for a directory tree of modules

2006-04-24 Thread Simon Marlow
Brian Hulley wrote: I've been looking at the docs for Haddock at http://haskell.org/haddock/haddock-html-0.7/index.html but I can't seem to find any option to recursively traverse a directory generating hyperlinked docs for all modules anywhere in the directory or any sub directory etc. Is

[Haskell-cafe] Re: The case of the missing module

2006-04-24 Thread Simon Marlow
Neil Mitchell wrote: import Paths_haddock( getDataDir ) Haddock requires to be built with Cabal (which generates this module), and as far as I can remember, its a Cabal that isn't released anywhere. When I did some work on haddock I commented this out, and made getDataDir return an empty

Re: [Haskell-cafe] Current situation regarding global IORefs

2006-04-24 Thread Cale Gibbard
On 24/04/06, Adrian Hey <[EMAIL PROTECTED]> wrote: > Lennart Augustsson wrote: > > I think global mutable variables should be regarded with utmost > > suspicion. There are very few situations where they are the > > right solution. > > Well IMO even the use of the term "global mutable variable" cau