TypeClass.Dependency (TypeClass v1.2.8) 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)

Specs

extend(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)

Specs

run() :: ast()

The opposite of set_up/1: collect dependencies

Specs

set_up() :: ast()

Set up the dependency collection from extend