[Haskell] Re: Implicit Parameters

2006-03-02 Thread Lauri Alanko
On Wed, Mar 01, 2006 at 11:53:42AM +, Simon Marlow wrote: something along these lines is likely to be quite straightforward to implement, won't require any changes to the type system, and gives you a useful form of implicit parameters without any of the drawbacks. The main difference

Re: [Haskell] Re: Implicit Parameters

2006-03-02 Thread Bulat Ziganshin
Hello Lauri, Thursday, March 2, 2006, 3:25:31 PM, you wrote: LA Now, I wonder whether we really really really need to track implicit LA parameters in the type system. After all, exceptions, too, introduce a there is also another way - allow partial function signatures -- Best regards, Bulat

[Haskell] Re: Implicit Parameters

2006-03-01 Thread Simon Marlow
Ashley Yakeley wrote: Simon Marlow wrote: Simon I have discussed doing some form of thread-local state, which covers many uses of implicit parameters and is much preferable IMO. Thread-local state doesn't change your types, and it doesn't require passing any extra parameters at runtime. It

[Haskell] Re: Implicit Parameters

2006-02-28 Thread Simon Marlow
Ashley Yakeley wrote: Ben Rudiak-Gould wrote: I'd advise against using implicit parameters, because (as you've seen) it's hard to reason about when they'll get passed to functions. And Johannes Waldmann wrote: Implicit parameters are *evil*. They seem to simplify programs but they make

Re: [Haskell] Re: Implicit Parameters

2006-02-28 Thread Bulat Ziganshin
Hello Simon, Tuesday, February 28, 2006, 5:40:35 PM, you wrote: SM Simon I have discussed doing some form of thread-local state, which this means new RTS primitives, like that used in IORef implementation? -- Best regards, Bulatmailto:[EMAIL PROTECTED]

[Haskell] Re: Implicit Parameters

2006-02-28 Thread Ashley Yakeley
Simon Marlow wrote: Simon I have discussed doing some form of thread-local state, which covers many uses of implicit parameters and is much preferable IMO. Thread-local state doesn't change your types, and it doesn't require passing any extra parameters at runtime. It works perfectly well

[Haskell] RE: Implicit parameters:

2005-02-04 Thread Simon Peyton-Jones
| Sent: 19 January 2005 14:42 | Unbound implicit parameter (?global_counter::IORef a) | arising from use of `get_unique' at Test.hs:17:13-22 | | Is this a bug? Is there some reason why this is not possible? (and if it | is not possible | shouldn't the documentation be changed to reflect

[Haskell] Re: Implicit parameters redux

2004-01-29 Thread Ashley Yakeley
In article [EMAIL PROTECTED], Ben Rudiak-Gould [EMAIL PROTECTED] wrote: Another extension I proposed is that the name of an implicit return value can include type parameters: thus %foo Int and %foo Char would be treated as though they had different names. This bit doesn't seem very

Re: [Haskell] Re: Implicit parameters redux

2004-01-29 Thread Ben Rudiak-Gould
On Thu, 29 Jan 2004, Ashley Yakeley wrote: Ben Rudiak-Gould [EMAIL PROTECTED] wrote: Another extension I proposed is that the name of an implicit return value can include type parameters: thus %foo Int and %foo Char would be treated as though they had different names. This bit