drboolean
mostly-adequate-guide (old)

Updated 2 years ago

Jewel Mahanta (@lap00zza) started discussion #204

2 years ago · 0 comments

Open

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 2 years ago

Isn't it?

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


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

You’re not receiving notifications from this thread.


1 participant