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, nowarn_unused_vars]).
-export_type([comparison/1, match/1]).
-type comparison(FIE) :: {list_comparison,
list(match(list(FIE))),
list(match(list(FIE)))} |
{string_comparison,
list(match(list(binary()))),
list(match(list(binary())))}.
-type match(FIF) :: {match, FIF} | {no_match, FIF}.