Re: [Haskell-cafe] existential types

13 Feb
2008
13 Feb
'08
8:06 p.m.
From: Jake McArthur
On Feb 13, 2008 2:41 PM, Jake McArthur
wrote: Now we can have NumericLists like [1 :: Int, 5.7 :: Double, 4%5 :: Rational].
No, we can't =). Using
data NumericList = forall a . Num a => N [a] [etc.etc.etc.]
Oops again. Maybe I just shouldn't say anything to anybody on the Internet within an hour of waking up in the morning! ;) - Jake
6424
Age (days ago)
6424
Last active (days ago)
0 comments
1 participants
participants (1)
-
Jake McArthur