Tests and/or examples for Compose.hs

48 views
Skip to first unread message

Alexander Vorobiev

unread,
Mar 3, 2016, 10:15:26 PM3/3/16
to haskell-exercises
Hi,

There is no tests in Compose.hs. I am looking for some examples on how to create instances of the Compose type and how to test the functions requested in the exercises.

Thanks,
Alex

Tony Morris

unread,
Mar 3, 2016, 10:21:21 PM3/3/16
to Alexander Vorobiev, haskell-exercises
Hello Alexander,
The Compose exercise is about finding which will be unachievable. Of those that are achievable, one of those has only one possible answer and the other one can usually be arrived at either by following the types alone, or with a little guidance. Give it a crack.

--
You received this message because you are subscribed to the Google Groups "haskell-exercises" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-exerci...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alexander Vorobiev

unread,
Mar 4, 2016, 10:15:12 PM3/4/16
to haskell-exercises, alexander...@gmail.com
Hi,

Thanks for the reply! I came up with solutions and they typechecked (in all "possible" excercies). Unfortunately without the tests the only way for me to verify that I was correct was to go to the repository with the answers. I was. On to the Traversable.hs!

Best,
Alex
Reply all
Reply to author
Forward
0 new messages