Under common SO étiquette, which you might want to read about
here for example, if your tentative code does not compile, you are welcome to provide the compiler error message in the text of your question. Have a nice Haskell journey ! —
jpmarinier 47 secs ago