Stability | experimental |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
| This module defines some types from the Web IDL specification
Synopsis
- type DOMString = Text
- type USVString = Text
- type UnsignedLongLong = Word64
- type UnsignedLong = Word32
- type Long = Int32
- type UnsignedShort = Word16
- type Octet = Word8
- type Boolean = Bool
- type Double = Double
- newtype BufferSource = URLEncodedBase64 {}
- type ArrayBuffer = BufferSource
Documentation
type DOMString = Text Source #
(spec) The `DOMString` type corresponds to the set of all possible sequences of code units. Such sequences are commonly interpreted as UTF-16 encoded strings RFC2781 although this is not required. TODO: This implementation doesn't allow invalid UTF-16 codepoints, which probably makes it not work regarding https://www.w3.org/TR/webauthn-2/#sctn-strings Write a test case that doesn't work and find a better representation.
type USVString = Text Source #
(spec) The `USVString` type corresponds to the set of all possible sequences of Unicode scalar values, which are all of the Unicode code points apart from the surrogate code points. TODO: This implementation allows for surrogate code points. Figure out if this can violate the spec in any way.
type UnsignedLongLong = Word64 Source #
type UnsignedLong = Word32 Source #
type UnsignedShort = Word16 Source #
newtype BufferSource Source #
URLEncodedBase64 | base64url encoded buffersource as done by https://github.com/github/webauthn-json |
Instances
Eq BufferSource Source # | |
Defined in Crypto.WebAuthn.WebIDL (==) :: BufferSource -> BufferSource -> Bool # (/=) :: BufferSource -> BufferSource -> Bool # | |
Show BufferSource Source # | |
Defined in Crypto.WebAuthn.WebIDL showsPrec :: Int -> BufferSource -> ShowS # show :: BufferSource -> String # showList :: [BufferSource] -> ShowS # | |
ToJSON BufferSource Source # | |
Defined in Crypto.WebAuthn.WebIDL toJSON :: BufferSource -> Value # toEncoding :: BufferSource -> Encoding # toJSONList :: [BufferSource] -> Value # toEncodingList :: [BufferSource] -> Encoding # | |
FromJSON BufferSource Source # | |
Defined in Crypto.WebAuthn.WebIDL parseJSON :: Value -> Parser BufferSource # parseJSONList :: Value -> Parser [BufferSource] # |
type ArrayBuffer = BufferSource Source #