packages feed

loc 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+7/−8 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

loc.cabal view
@@ -3,11 +3,10 @@ -- see: https://github.com/sol/hpack  name:           loc-version:        0.1.0.0+version:        0.1.0.1 synopsis:       Types representing line and column positions and ranges in text files. -description:    The package name /loc/ stands for "location" and is also an allusion to the acronym for "lines of code".-                The @Loc@ type represents a caret position in a text file, the @Span@ type is a nonempty range between two @Loc@s, and the @Area@ type is a set of non-touching @Span@s.+description:    The package name /loc/ stands for “location” and is also an allusion to the acronym for “lines of code”. . The @Loc@ type represents a caret position in a text file, the @Span@ type is a nonempty range between two @Loc@s, and the @Area@ type is a set of non-touching @Span@s. category:       Data Structures homepage:       https://github.com/chris-martin/haskell-libraries author:         Chris Martin <ch.martin@gmail.com>
src/Data/Loc.hs view
@@ -171,18 +171,18 @@ > 4 │ and vice versa.               │ >   └───────────────────────────────┘ -In this example, the word "obvious" starts at line 2, column 20, and it ends at+In this example, the word “obvious” starts at line 2, column 20, and it ends at line 2, column 27. The 'Show' instance uses a shorthand notation denoting these locs as @2:20@ and @2:27@.  A 'Span' is a nonempty contiguous region of text between two locs; think of it like a highlighted area in a simple text editor. In the above example, a span-that covers the word "obvious" starts at @2:20@ and ends at @2:27@. The 'Show'+that covers the word “obvious” starts at @2:20@ and ends at @2:27@. The 'Show' instance describes this tersely as @2:20-2:27@.  Multiple non-overlapping regions form an 'Area'. You may also think of an-area like a span that can be empty or have "gaps". In the example above, the-first three words "I have my", and not the spaces between them, are covered by+area like a span that can be empty or have “gaps”. In the example above, the+first three words “I have my”, and not the spaces between them, are covered by the area @[1:1-1:2,1:3-1:7,1:8-1:10]@.  -}
src/Data/Loc/Area.hs view
@@ -44,7 +44,7 @@ {- |  A set of non-overlapping, non-abutting 'Span's. You may also think of an 'Area'-like a span that can be empty or have "gaps".+like a span that can be empty or have “gaps”.  Construct and combine areas using 'mempty', 'spanArea', 'fromTo', '+', and '-'.