
3 Oct
2006
3 Oct
'06
6:55 a.m.
another beginners question about monads: given the type | data (Ix x) => Permutation x = Permutation [x] i wanted to define | instance Monad Permutation where | return xs = Permutation xs but of course nothing about the monad class guarantees xs to be of type list. the monad class seems unsuitable for holding collections, and i am inclined to not instantiate permutations. just to be sure: is there any easy way to do it that i missed? thanks, matthias
6805
Age (days ago)
6805
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matthias Fischmann