HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Interaction.Highlighting.Range

Ranges.

  • 2 types
  • 9 values
  • PackageAgda-2.8.0.2
  • 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.8.0.2 · Agda.Interaction.Highlighting.Range
  • Ord RangeDefined in Agda-2.8.0.2 · Agda.Interaction.Highlighting.Range
  • Show RangeDefined in Agda-2.8.0.2 · Agda.Interaction.Highlighting.Range
  • NFData RangeDefined in Agda-2.8.0.2 · Agda.Interaction.Highlighting.Range
  • Null RangeDefined in Agda-2.8.0.2 · Agda.Interaction.Highlighting.Range
  • EmbPrj RangeDefined in Agda-2.8.0.2 · Agda.TypeChecking.Serialise.Instances.Highlighting · orphan
newtypenewtype Ranges
#

Zero or more consecutive and separated ranges.

Constructors

Instances3Eq, Show, NFData
  • Eq RangesDefined in Agda-2.8.0.2 · Agda.Interaction.Highlighting.Range
  • Show RangesDefined in Agda-2.8.0.2 · Agda.Interaction.Highlighting.Range
  • NFData RangesDefined in Agda-2.8.0.2 · 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.