HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

ModuleAgda-2.7.0.1Haskell2010

Agda.Interaction.Highlighting.Range

Ranges.

  • 2 types
  • 9 values
  • PackageAgda-2.7.0.1
  • Exports12
  • LanguageHaskell2010
  • LicenceMIT
  • SourceRange.hs
datadata Range
#

Character ranges. The first character in the file has position 1. Note that the to position is considered to be outside of the range.

Invariant: from <= to.

Constructors

Instances6Eq, Ord, Show, NFData, Null, EmbPrj
  • Eq RangeDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
  • Ord RangeDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
  • Show RangeDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
  • NFData RangeDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
  • Null RangeDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
  • EmbPrj RangeDefined in Agda-2.7.0.1 · Agda.TypeChecking.Serialise.Instances.Highlighting · orphan
newtypenewtype Ranges
#

Zero or more consecutive and separated ranges.

Constructors

Instances3Eq, Show, NFData
  • Eq RangesDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
  • Show RangesDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
  • NFData RangesDefined in Agda-2.7.0.1 · Agda.Interaction.Highlighting.Range
valueminus :: Ranges -> Ranges -> Ranges
#

minus xs ys computes the difference between xs and ys: the result contains those positions which are present in xs but not in ys.

Linear in the lengths of the input ranges.