mostly-adequate-guide (old)

Updated 3 years ago

Jewel Mahanta (@lap00zza) started discussion #204

3 years ago · 0 comments


In the wild, we'll typically see Maybe used in functions which might fail to return a result.

Chapter 8: Tupperware (Edit this file)

Why isnt safeHead using Maybe as a type constraint? What I mean is why not `safeHead :: Maybe f => [a] -> f a`

No description provided.
Anton Strömkvist @ahstro commented 3 years ago

Isn't it?

// safeHead :: [a] -> Maybe(a)

to join this conversation on GitBook. Already have an account? Sign in to comment

You’re not receiving notifications from this thread.

1 participant