git.iko.soy/typeable/hjsonschema
on master help sign in
Add ghc-8.4 support
commite1bcba426f51b44ede757728334f61d981a164ae authorDmitry Bushev <bushevdv@gmail.com> dateMon 9 Apr 2018, 21:49 (9 years ago) parentc0ef770
2 files changed+4−1
hjsonschema.cabal+2 src/JSONSchema/Fetch.hs+2−1
hjsonschema.cabal+2
@@ -81,6 +81,8 @@ library
8181 , unordered-containers >= 0.2
8282 , text >= 1.1
8383 , vector >= 0.10
84+ if impl(ghc < 8.0)
85+ build-depends: semigroups == 0.18.*
8486
8587test-suite local
8688 hs-source-dirs:
src/JSONSchema/Fetch.hs+2−1
@@ -7,6 +7,7 @@ import Control.Monad (foldM)
77import qualified Data.ByteString as BS
88import qualified Data.ByteString.Lazy as LBS
99import qualified Data.HashMap.Strict as HM
10+import qualified Data.Semigroup as S
1011import qualified Data.Text as T
1112import qualified Network.HTTP.Client as NC
1213import qualified Network.HTTP.Client.TLS as NCTLS
@@ -29,7 +30,7 @@ data FetchInfo schema = FetchInfo
2930-- | Keys are URIs (without URI fragments).
3031newtype URISchemaMap schema
3132 = URISchemaMap { _unURISchemaMap :: HashMap Text schema }
32− deriving (Eq, Show, Monoid)
33+ deriving (Eq, Show, S.Semigroup, Monoid)
3334
3435-- | A top-level schema along with its location.
3536data SchemaWithURI schema = SchemaWithURI