Packages
doma_algae
1.3.2-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/writer/functor.ex
alias Algae.Writer
import TypeClass
use Witchcraft
definst Witchcraft.Functor, for: Algae.Writer do
def map(%Writer{writer: {value, log}}, fun), do: Writer.new(fun.(value), log)
end