text-loc 0.1 → 0.1.1
raw patch · 3 files changed
+27/−5 lines, 3 filesdep ~basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: base
API changes (from Hackage documentation)
- Text.Loc: type family LocFrom l;
+ Text.Loc: instance (GHC.Classes.Eq l, GHC.Classes.Eq p) => GHC.Classes.Eq (Text.Loc.Nested l p)
+ Text.Loc: instance (GHC.Classes.Eq l, GHC.Classes.Eq α) => GHC.Classes.Eq (Text.Loc.Located l α)
+ Text.Loc: type LocFrom l;
+ Text.Loc: type LocOf α;
+ Text.Loc: type LocSrc l;
+ Text.Loc: type SpanLoc l;
- Text.Loc: class FromLoc l where type LocFrom l where {
+ Text.Loc: class FromLoc l where {
- Text.Loc: class HasLoc α where type LocOf α where {
+ Text.Loc: class HasLoc α where {
- Text.Loc: class SpannedLoc l where type SpanLoc l where {
+ Text.Loc: class SpannedLoc l where {
- Text.Loc: class SrcLoc l where type LocSrc l where {
+ Text.Loc: class SrcLoc l where {
Files
- README.md +14/−0
- src/Text/Loc.hs +2/−2
- text-loc.cabal +11/−3
+ README.md view
@@ -0,0 +1,14 @@+Text-Loc+========++[](https://travis-ci.org/mvv/text-loc) [](http://hackage.haskell.org/package/text-loc)++This package provides data types that describe line-column locations+within a text.++Installation+------------+The usual:++ $ cabal install+
src/Text/Loc.hs view
@@ -162,7 +162,7 @@ -- | A simple way to attach location to a value. data Located l α = Located { locAt ∷ l , locVal ∷ α }- deriving (Typeable, Generic, Show, Read,+ deriving (Typeable, Generic, Show, Read, Eq, Functor, Foldable, Traversable) instance (Hashable l, Hashable α) ⇒ Hashable (Located l α) where@@ -367,7 +367,7 @@ -- | A simple way to nest a location. data Nested l p = Nested { nestedLoc ∷ l , nestedFrom ∷ p }- deriving (Typeable, Generic, Show, Read)+ deriving (Typeable, Generic, Show, Read, Eq) instance (Hashable l, Hashable p) ⇒ Hashable (Nested l p) where hashWithSalt salt (Nested l p) = hashWithSalt salt (l, p)
text-loc.cabal view
@@ -1,5 +1,5 @@ Name: text-loc-Version: 0.1+Version: 0.1.1 Category: Text Stability: experimental Synopsis: Line-column locations within a text.@@ -16,7 +16,14 @@ License: BSD3 License-File: LICENSE -Cabal-Version: >= 1.6.0+Extra-Source-Files:+ README.md++Tested-With: GHC==7.6.3, GHC==7.8.4, GHC==7.10.3, GHC==8.0.2, GHC==8.2.2,+ GHC==8.4.4, GHC==8.6.5, GHC==8.8.4, GHC==8.10.7, GHC==9.0.2,+ GHC==9.2.4, GHC==9.4.2++Cabal-Version: >= 1.10.0 Build-Type: Simple Source-Repository head@@ -24,7 +31,8 @@ Location: https://github.com/mvv/text-loc.git Library- Build-Depends: base >= 4 && < 5+ Default-Language: Haskell2010+ Build-Depends: base >= 4.6 && < 5 , hashable >= 1.1.1 Hs-Source-Dirs: src GHC-Options: -Wall