Skip to content

Commit

Permalink
CHANGELOG: Introduce KwRange to API
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Mar 4, 2024
1 parent 1016eba commit afbc1c9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,30 @@ Interaction and emacs mode
Backends
--------

API
---

Highlighting some changes to Agda as a library.

* New module `Agda.Syntax.Common.KeywordRange` providing type `KwRange` isomorphic to `Range`
to indicate source positions that just span keywords.
The motiviation for `KwRange` is to distinguish such ranges from ranges for whole subtrees,
e.g. in data type `Agda.Syntax.Concrete.Declaration`.

API:
```haskell
module Agda.Syntax.Common.KeywordRange where

type KwRange

-- From Range to KwRange
kwRange :: HasRange a => a -> KwRange

-- From KwRange to Range
instance HasRange KwRange where
getRange :: KwRange -> Range
```

Other issues closed
-------------------

Expand Down

0 comments on commit afbc1c9

Please sign in to comment.