DEV Community


Discussion on: Typeclass(Interface) is Kernel Concept of Haskell Functor, Monad These Weird

jvanbruegge profile image
Jan van Brügge

Just a small side note, in the class declaration you don't specify a concrete type:

class Functor f where
    fmap :: (a -> b) -> f a -> f b
Forem Open with the Forem app