Proper Treatment 正當作法/ blog/ posts/ The extensible visitor pattern in tagless final style/ discussion 討論
2011-01-26 02:05

Nice post.

For ContainsPt, though, I think you want:

circle r                   = ContainsPt (\(Point x y) ->
                             x * x + y * y <= r * r)

Dean Herington (dherington@acm.org)

Oops! Fixed. Thanks!