A pretty printer for Elixir
MIT License
A pretty printer for Elixir
mix.exs:
...
defp deps do
[
{:expand, ">= 0.0.3"}
]
end
...
Primitive types are printed one item per line.
For example, here is the abbreviated output for String.__info__(:functions)
:
> IO.puts Expand.it(String.__info__(:functions))
[
at:
2,
capitalize:
1,
chunk:
2,
...
]
You can create a specialized pretty printer by use
-ing the
Expand.Mixin
, see Expand.AbstractCode for an example.