Ad
  • Custom User Avatar

    Ugh. This is such a "what was the author thinking?" type of problem. Yes, yes, now that I have already figured out what the author was thinking, I can see how it makes sense. But there is no information at all about what all this Count machinery is about. The description flat out gives up and just says "(see code)" and then the code just spews a bunch of declarations in comments without explaining what they are intended to mean. The given classes could just as well be implemented as count = Count 42 for all we can tell. The fact that those definitions are actually incorrect (classes are missing type params), and the real definitions are hidden in a module that we cannot read, makes it even worse. So then you look at the test cases, in hopes they might explain what was intended. But no, the test case there just says that challenge1 should be count1, without any explanation of what either one means.

    I understand there are interesting ideas embedded in this kata. But at some point, you do have to tell people something about what they are supposed to be trying to accomplish!

  • Custom User Avatar

    I don't know if CW used to not have a dark mode, but currently the image in the description is very hard to see (Black on Grey).

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Is there documentation for Data.Proxy ?

    Hoogle won't admit it exists. :/

  • Custom User Avatar

    If this kata is too simple I could add

    class Factor f => FactorListable f where
      factorList :: [a] -> [f a]
      ...