Re: Unit unboxed tuples

2012-01-11 Thread Roman Leshchinskiy
On 11/01/2012, at 19:28, Dan Doel wrote: > Then I'm afraid I still don't understand the difference. Is it that > case in core always evaluates? So: > >case undefined of x -> ... > > blows up, while > >case (# undefined #) of (# x #) -> ... > > does not? Yes. > Also, if so, how is (co

Re: Unit unboxed tuples

2012-01-11 Thread Dan Doel
On Wed, Jan 11, 2012 at 8:41 AM, Simon Marlow wrote: > On 10/01/2012 16:18, Dan Doel wrote: >> >> Copying the list, sorry. I have a lot of trouble replying correctly >> with gmail's interface for some reason. :) >> >> On Tue, Jan 10, 2012 at 11:14 AM, Dan Doel  wrote: >>> >>> On Tue, Jan 10, 2012

Re: Unit unboxed tuples

2012-01-11 Thread Tyson Whitehead
On January 11, 2012 08:41:04 Simon Marlow wrote: > On 10/01/2012 16:18, Dan Doel wrote: > > Does the difference have to do with unboxed types? For instance: > > foo :: () -> Int# > > foo _ = foo () > > bar :: () -> (# Int# #) > > bar _ = (# foo () #) > > > > baz = case ba

Re: kinds for `*'

2012-01-11 Thread Brent Yorgey
On Tue, Jan 10, 2012 at 09:41:11PM +0400, Serge D. Mechveliani wrote: > People, > > GHC provides some extensions for kinds. > Does this make possible different kinds, for example, for `*' ? Terms have types, and types have kinds. (*) is a term, so it has a type, not a kind. > Prelude.Num has

Re: Unit unboxed tuples

2012-01-11 Thread Simon Marlow
On 10/01/2012 16:18, Dan Doel wrote: Copying the list, sorry. I have a lot of trouble replying correctly with gmail's interface for some reason. :) On Tue, Jan 10, 2012 at 11:14 AM, Dan Doel wrote: On Tue, Jan 10, 2012 at 5:01 AM, Simon Marlow wrote: On 09/01/2012 04:46, wren ng thornton wro

Re: Records in Haskell

2012-01-11 Thread Ingo Wechsung
Am 11. Januar 2012 08:42 schrieb Isaac Dupree < m...@isaac.cedarswampstudios.org>: > On 01/10/2012 05:06 AM, Greg Weber wrote: > >> Some of your comments seem to not fully recognize the name-spacing (plus >> simple type resolution) aspect of this proposal that I probably didn't >> explain well eno

Re: Records in Haskell

2012-01-11 Thread Greg Weber
I added your relevant previous notes to the wiki page. I have no idea if what you said about type inference is right or wrong. I don't think that record fields can be called scope resolution in a normal sense - the scope is guaranteed to resolve without conflict (unless the user incorrectly types t