Packages

A functional optics library. Create and compose lenses to view, set, and modify data inside arbitrarily nested maps, lists, and tuples.

Current section

Files

Jump to
focus lib types.ex
Raw

lib/types.ex

defmodule Focus.Types do
@moduledoc """
Shared elements for the Focus modules.
"""
@type product :: map | struct | tuple
@type sum :: list
@type traversable :: product | sum
@type maybe :: {:ok, any} | {:error, any}
@type optic :: Lens.t()
end