It is a nullary type class, which means it doesn't have type arguments. You can think of these as assumptions the function makes, in this case an assumption that partiality is acceptable to the user.
We don't write instances for nullary type classes, since that would defeat their purpose, by making the assumption globally for anyone who imports your module. Instead, we write can write a function to selectively remove the assumption made by the class. This is what the purescript-partial library does.
View all comments
Show parent comment
1
u/paf31 Dec 20 '15
It is a nullary type class, which means it doesn't have type arguments. You can think of these as assumptions the function makes, in this case an assumption that partiality is acceptable to the user.
We don't write instances for nullary type classes, since that would defeat their purpose, by making the assumption globally for anyone who imports your module. Instead, we write can write a function to selectively remove the assumption made by the class. This is what the
purescript-partiallibrary does.