| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
BattlePlace.WebApi.Types.Util
Synopsis
- newtype Base64ByteString = Base64ByteString ByteString
- newtype Base64Word64 = Base64Word64 Word64
- newtype StrWord64 = StrWord64 Word64
Documentation
newtype Base64ByteString Source #
ByteString which serializes to JSON as base64 string.
Constructors
| Base64ByteString ByteString |
Instances
newtype Base64Word64 Source #
Word64 which serializes to JSON as base64 string. Useful because 64-bit integer is not representable in javascript.
Constructors
| Base64Word64 Word64 |
Instances
Word64 which serializes to JSON as decimal string. Useful because 64-bit integer is not representable in javascript.
Instances
| Eq StrWord64 Source # | |
| Num StrWord64 Source # | |
Defined in BattlePlace.WebApi.Types.Util | |
| Ord StrWord64 Source # | |
| Read StrWord64 Source # | |
| Show StrWord64 Source # | |
| Hashable StrWord64 Source # | |
Defined in BattlePlace.WebApi.Types.Util | |
| ToJSON StrWord64 Source # | |
Defined in BattlePlace.WebApi.Types.Util | |
| FromJSON StrWord64 Source # | |
| Storable StrWord64 Source # | |
Defined in BattlePlace.WebApi.Types.Util | |
| Serialize StrWord64 Source # | |
| FromHttpApiData StrWord64 Source # | |
Defined in BattlePlace.WebApi.Types.Util Methods parseUrlPiece :: Text -> Either Text StrWord64 # parseHeader :: ByteString -> Either Text StrWord64 # | |
| ToSchema StrWord64 Source # | |
Defined in BattlePlace.WebApi.Types.Util Methods declareNamedSchema :: Proxy StrWord64 -> Declare (Definitions Schema) NamedSchema # | |