witchcrafters / type_class

(Semi-)principled type classes for Elixir
https://hex.pm/packages/type_class
MIT License
140 stars 16 forks source link

Espec Tests: Proto.wrap/2 undefined #42

Closed asmodehn closed 2 years ago

asmodehn commented 3 years ago

I ran the espec test on my setup (elixir 1.11), and, mostly as a way to slowly understand the code, I would like to address one of the warnings I got:

warning: Proto.wrap/2 is undefined (module Proto is not available or is yet to be defined)
  spec/type_class_spec.exs:194: TypeClassSpec.Applicative.wrap/2

This refers to this line.

I was wondering what is this supposed to refer to ? Is there something missing, or is this supposed to be an alias for Applicative.Proto.of/1 and the defdelegate arguments should be fixed ?

Thanks for the hint.

github-actions[bot] commented 3 years ago

Thank you for submitting an issue! It means a lot that you took the time -- it helps us be better 🙏