TypeClass v1.2.0 TypeClass.Dependency View Source

Helpers for setting type class dependencies

Link to this section Summary

Functions

Set a type class dependency. ie: another type class that need to be definsted before this one

The opposite of set_up/1: collect dependencies

Set up the dependency collection from extend

Link to this section Types

Link to this section Functions

Link to this macro extend(parent_class) View Source (macro)
extend(term, module) :: ast

Set a type class dependency. ie: another type class that need to be definsted before this one.

Examples

defmodule Quux do
  extend Foo
  extend Bar
  extend Baz

  # ...
end
Link to this macro extend(parent_class, list) View Source (macro)
Link to this macro run() View Source (macro)
run(term) :: ast

The opposite of set_up/1: collect dependencies

Link to this macro set_up() View Source (macro)
set_up(term) :: ast

Set up the dependency collection from extend