Packages

A Gleam library for comparing strings/lists and producing a textual (styled) representation of the differences.

Current section

Files

Jump to
gap src gap@comparison.erl
Raw

src/gap@comparison.erl

-module(gap@comparison).
-compile(no_auto_import).
-export_type([comparison/1, match/1]).
-type comparison(FAY) :: {list_comparison,
list(match(list(FAY))),
list(match(list(FAY)))} |
{string_comparison,
list(match(list(binary()))),
list(match(list(binary())))}.
-type match(FAZ) :: {match, FAZ} | {no_match, FAZ}.