Haskell filtering a nested list with specific data constructors
问题 Suppose I have the data type data Joke = Funny String | Lame String and say I have the following nested list [[Funny "Haha", Lame "boo"], [Funny "Haha"], [Lame "BOO"]] How would I go about filtering such a nested list so that any list within the nested list that contains Funny "Haha" is removed? In other words, I'm trying to filter the list so that I receive the following result: [[Lame "BOO"]] Any list that contains Funny "Haha" is removed. Would appreciate any help, I'm having a terrible