Packages
doma_algae
1.3.1-doma
Bootstrapped algebraic data types for Elixir, forked by doma for maintenance and testing packagesets
Current section
Files
Jump to
Current section
Files
lib/algae/id/semigroup.ex
import TypeClass
use Witchcraft
definst Witchcraft.Semigroup, for: Algae.Id do
custom_generator(_) do
1
|> TypeClass.Property.Generator.generate()
|> Algae.Id.new()
end
def append(%{id: a}, %{id: b}), do: %Algae.Id{id: a <> b}
end