
17 Nov
2010
17 Nov
'10
2:35 p.m.
My program needs a list such as [IO 3, IO "f", IO 'z'] :: Show s => [IO s]. Is there any way to achieve this without wrapping all the values in existentially quantified types?

17 Nov
17 Nov
2:39 p.m.
On Wed, Nov 17, 2010 at 9:35 PM, John Smith
My program needs a list such as [IO 3, IO "f", IO 'z'] :: Show s => [IO s]. Is there any way to achieve this without wrapping all the values in existentially quantified types?
Short answer: no. Slightly longer answer: you could just apply "show" to each element in the list and get a list of Strings. Michael
5298
Age (days ago)
5298
Last active (days ago)
1 comments
2 participants
participants (2)
-
John Smith
-
Michael Snoyman