Why can you create a value with "Just (+)"?

Published: 5/08/2019
Why can you create a value with "Just (+)"?
Source: STACKOVERFLOW.COM

Currently I'm learning Haskell and are stuck with the instantiation of types to typeclasses. I actually don't understand, why it's possible to create a value of the Maybe a type with Just (+) . The problem why this behaves strange to me is, that the Maybe type is defined as an instance of the Eq typeclass (see Haskell source ) and that if you derive an instance for a type, all the fields of the

Read more
Related news
Comment
FACEBOOK