Skip to content

Commit cfabd7f

Browse files
committed
Add a Semigroup instance
1 parent 1a2afe5 commit cfabd7f

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

json-pointer.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name:
22
json-pointer
33
version:
4-
0.1.2.1
4+
0.1.2.2
55
synopsis:
66
JSON Pointer parsing and interpretation utilities
77
description:

library/JSONPointer/Model.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ import qualified Data.Text
1717
newtype JSONPointer =
1818
JSONPointer (forall m. Monoid m => (Maybe Int -> Text -> m) -> m)
1919

20+
instance Semigroup JSONPointer where
21+
(<>) = mappend
22+
2023
instance Monoid JSONPointer where
2124
{-# INLINE mempty #-}
2225
mempty =

0 commit comments

Comments
 (0)