Packages

A `with` that tags each clause's failure by name, so `else` can tell which step failed, even when two clauses fail with the same-looking value.

Current section

Files

Jump to
Raw

mix.exs

defmodule TaggedWith.MixProject do
use Mix.Project
@version "0.1.0"
@source_url "https://github.com/drselump14/tagged_with"
def project do
[
app: :tagged_with,
version: @version,
elixir: "~> 1.14",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
name: "TaggedWith",
source_url: @source_url,
docs: docs()
]
end
def application do
[
extra_applications: [:logger]
]
end
defp deps do
[
{:ex_doc, "~> 0.34", only: :dev, runtime: false}
]
end
defp description do
"A `with` that tags each clause's failure by name, so `else` can tell " <>
"which step failed, even when two clauses fail with the same-looking value."
end
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
main: "TaggedWith",
source_url: @source_url,
extras: ["README.md"]
]
end
end