Haskell is the world's leading lazy functional programming language and is widely used in teaching, research, and applications. The language …