functional-programming-jargon icon indicating copy to clipboard operation
functional-programming-jargon copied to clipboard

improved definition of pointed functor

Open jethrolarson opened this issue 1 year ago • 1 comments

After reading https://stackoverflow.com/questions/39179830/how-to-use-pointed-functor-properly I thought we should make the definition less wrong.

jethrolarson avatar Aug 02 '22 21:08 jethrolarson

I think when I wrote the original I was looking at the "Pointed" typeclass in haskell which doesn't have a requirement of functor so I didn't think that it was necessary. And in a way it's not. A type is pointed if any value can be lifted into it but intuitively a type is only a pointed functor if it's both pointed and a functor.

jethrolarson avatar Aug 02 '22 21:08 jethrolarson