Ad
  • Custom User Avatar

    Rejected by author for unknown reason

  • Default User Avatar

    Especially if you havent yet some kind of an intuition about how Identity & Const Functors work.

    Oh dear. You're right. And you know, I feel so daft right this minute — when you've practiced Haskell for months and you realize you don't realize understand functors, let alone monads :(

  • Default User Avatar
  • Default User Avatar

    This kata is a great first introduction in how lenses actually work, how they are so composable.

    Following the types once again helped alot. Not to say that this one is easy (got stuck for quite a while on even just view). Especially if you havent yet some kind of an intuition about how Identity & Const Functors work.

    One tip that helped my in this and lots of other situations: use underscore-variablename when you are not sure what to put. ghc will tell you the type it expects of those "holes" you left.