Allow declare
forms in typeclass instances
#616
ornamentist
started this conversation in
Ideas and Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, we make a typeclass with functions identified by name:
Sometime later, perhaps in a different file, we create a typeclass instance with functions identified by
define
forms:Would it be possible to have an optional
declare
form with each typeclass instance function? I've found these very useful in Haskell to remind me of the type signature of the instance method, in terms of the instance:These declarations also help as a checkable docstring for each instance function.
Beta Was this translation helpful? Give feedback.
All reactions