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(FFO) :: {list_comparison,
list(match(list(FFO))),
list(match(list(FFO)))} |
{string_comparison,
list(match(list(binary()))),
list(match(list(binary())))}.
-type match(FFP) :: {match, FFP} | {no_match, FFP}.