Re: [Haskell-cafe] Re: Haskell Propeganda

2008-08-24 Thread jeff p
Hello, > Manual Typeable deriving should probably be disabled :-) > There are legitimate reasons to define your own Typeable instances. Since Typeable already contains all the machinery you need to type a standard functional language, it is nice to just add Typeable instances when defining your ow

[Haskell-cafe] Re: Haskell Propeganda

2008-08-24 Thread Ashley Yakeley
Brandon S. Allbery KF8NH wrote: typeOf / Typeable is itself an ugly special case, Right. > and really should be designed into the language That's not necessary. The same thing can be done with top-level "<-" (see other thread). -- Ashley Yakeley ___

Re: [Haskell-cafe] Re: Haskell Propeganda

2008-08-24 Thread Brandon S. Allbery KF8NH
On 2008 Aug 25, at 0:33, Ashley Yakeley wrote: Don Stewart wrote: You just wrote unsafeCoere# a different way: typeOf T = typeOf (undefined :: IORef ()) Right. It's straightforward to write unsafe segfaulting code in apparently safe Haskell. typeOf / Typeable is itself an ugly speci

[Haskell-cafe] Re: Haskell Propeganda

2008-08-24 Thread Ashley Yakeley
Don Stewart wrote: You just wrote unsafeCoere# a different way: typeOf T = typeOf (undefined :: IORef ()) Right. It's straightforward to write unsafe segfaulting code in apparently safe Haskell. Manual Typeable deriving should probably be disabled :-) Another ugly special-case h

Re: [Haskell-cafe] Re: Haskell Propeganda

2008-08-24 Thread Don Stewart
ashley: > Thomas Davie wrote: > >I'd be interested to see your other examples -- because that error is > >not happening in Haskell! You can't argue that Haskell doesn't give you > >no segfaults, because you can embed a C segfault within Haskell. > > This segfaults on my x86_64 Linux box: > >

[Haskell-cafe] Re: Haskell Propeganda

2008-08-24 Thread Ashley Yakeley
Thomas Davie wrote: I'd be interested to see your other examples -- because that error is not happening in Haskell! You can't argue that Haskell doesn't give you no segfaults, because you can embed a C segfault within Haskell. This segfaults on my x86_64 Linux box: module Main where impo