Slide 10 PROGRAMMING IN HASKELL Chapter 5 - List Comprehensions Slide 2 1 Set Comprehensions In mathematics, the comprehension notation can be used to construct new sets…