packages feed

battleplace 0.1.0.2 → 0.1.0.3

raw patch · 2 files changed

+5/−5 lines, 2 filesdep ~base

Dependency ranges changed: base

Files

BattlePlace/WebApi/Types.hs view
@@ -152,10 +152,10 @@ type MatchTeamSize = Int  -- | Match tag in match request.-newtype MatchTag = MatchTag T.Text deriving (Eq, Hashable, Monoid, J.FromJSON, J.ToJSON)+newtype MatchTag = MatchTag T.Text deriving (Eq, Hashable, Semigroup, Monoid, J.FromJSON, J.ToJSON)  -- | Opaque player info.-newtype MatchPlayerInfo = MatchPlayerInfo T.Text deriving (Monoid, J.FromJSON, J.ToJSON)+newtype MatchPlayerInfo = MatchPlayerInfo T.Text deriving (Semigroup, Monoid, J.FromJSON, J.ToJSON)  -- | Match token. data MatchToken = MatchToken@@ -233,7 +233,7 @@ base64ParseUrlPiece = either (Left . T.pack) (either (Left . T.pack) Right . S.decode) . BA.convertFromBase BA.Base64URLUnpadded . T.encodeUtf8  -- | ByteString which serializes to JSON as base64 string.-newtype Base64ByteString = Base64ByteString B.ByteString deriving (Eq, Ord, Monoid, Hashable, BA.ByteArray, BA.ByteArrayAccess)+newtype Base64ByteString = Base64ByteString B.ByteString deriving (Eq, Ord, Semigroup, Monoid, Hashable, BA.ByteArray, BA.ByteArrayAccess) instance J.FromJSON Base64ByteString where 	parseJSON = either fail return . BA.convertFromBase BA.Base64URLUnpadded . T.encodeUtf8 <=< J.parseJSON instance J.ToJSON Base64ByteString where
battleplace.cabal view
@@ -1,5 +1,5 @@ name:                battleplace-version:             0.1.0.2+version:             0.1.0.3 synopsis:            Core definitions for BattlePlace.io service description:         Core definitions for BattlePlace.io service license:             MIT@@ -24,7 +24,7 @@   other-modules:   build-depends:     aeson-    , base >= 4.5 && < 5+    , base >= 4.11 && < 5     , bytestring     , cereal     , data-default