module Data.Hermes.SIMDJSON.Types
(
Array(..)
, ArrayIter(..)
, Document(..)
, InputBuffer(..)
, JSONArray
, JSONArrayIter
, JSONObject
, JSONObjectIter
, JSONValue
, Object(..)
, ObjectIter(..)
, PaddedString
, Parser(..)
, SIMDDocument
, SIMDErrorCode(..)
, SIMDParser
, Value(..)
)
where
import UnliftIO.Foreign (Ptr)
newtype Parser = Parser (Ptr SIMDParser)
newtype Document = Document (Ptr SIMDDocument)
newtype InputBuffer = InputBuffer (Ptr PaddedString)
newtype Value = Value (Ptr JSONValue)
newtype Object = Object (Ptr JSONObject)
newtype Array = Array (Ptr JSONArray)
newtype ArrayIter = ArrayIter (Ptr JSONArrayIter)
newtype ObjectIter = ObjectIter (Ptr JSONObjectIter)
data SIMDParser
data SIMDDocument
data PaddedString
data JSONValue
data JSONObject
data JSONArray
data JSONArrayIter
data JSONObjectIter
data SIMDErrorCode =
SUCCESS
| CAPACITY
| MEMALLOC
| TAPE_ERROR
| DEPTH_ERROR
| STRING_ERROR
| T_ATOM_ERROR
| F_ATOM_ERROR
| N_ATOM_ERROR
| NUMBER_ERROR
| UTF8_ERROR
| UNINITIALIZED
| EMPTY
| UNESCAPED_CHARS
| UNCLOSED_STRING
| UNSUPPORTED_ARCHITECTURE
| INCORRECT_TYPE
| NUMBER_OUT_OF_RANGE
| INDEX_OUT_OF_BOUNDS
| NO_SUCH_FIELD
| IO_ERROR
| INVALID_JSON_POINTER
| INVALID_URI_FRAGMENT
| UNEXPECTED_ERROR
| PARSER_IN_USE
| OUT_OF_ORDER_ITERATION
| INSUFFICIENT_PADDING
| INCOMPLETE_ARRAY_OR_OBJECT
| SCALAR_DOCUMENT_AS_VALUE
| OUT_OF_BOUNDS
| NUM_ERROR_CODES
deriving (SIMDErrorCode -> SIMDErrorCode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SIMDErrorCode -> SIMDErrorCode -> Bool
$c/= :: SIMDErrorCode -> SIMDErrorCode -> Bool
== :: SIMDErrorCode -> SIMDErrorCode -> Bool
$c== :: SIMDErrorCode -> SIMDErrorCode -> Bool
Eq, Int -> SIMDErrorCode -> ShowS
[SIMDErrorCode] -> ShowS
SIMDErrorCode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SIMDErrorCode] -> ShowS
$cshowList :: [SIMDErrorCode] -> ShowS
show :: SIMDErrorCode -> String
$cshow :: SIMDErrorCode -> String
showsPrec :: Int -> SIMDErrorCode -> ShowS
$cshowsPrec :: Int -> SIMDErrorCode -> ShowS
Show, SIMDErrorCode
forall a. a -> a -> Bounded a
maxBound :: SIMDErrorCode
$cmaxBound :: SIMDErrorCode
minBound :: SIMDErrorCode
$cminBound :: SIMDErrorCode
Bounded, Int -> SIMDErrorCode
SIMDErrorCode -> Int
SIMDErrorCode -> [SIMDErrorCode]
SIMDErrorCode -> SIMDErrorCode
SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
SIMDErrorCode -> SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: SIMDErrorCode -> SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
$cenumFromThenTo :: SIMDErrorCode -> SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
enumFromTo :: SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
$cenumFromTo :: SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
enumFromThen :: SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
$cenumFromThen :: SIMDErrorCode -> SIMDErrorCode -> [SIMDErrorCode]
enumFrom :: SIMDErrorCode -> [SIMDErrorCode]
$cenumFrom :: SIMDErrorCode -> [SIMDErrorCode]
fromEnum :: SIMDErrorCode -> Int
$cfromEnum :: SIMDErrorCode -> Int
toEnum :: Int -> SIMDErrorCode
$ctoEnum :: Int -> SIMDErrorCode
pred :: SIMDErrorCode -> SIMDErrorCode
$cpred :: SIMDErrorCode -> SIMDErrorCode
succ :: SIMDErrorCode -> SIMDErrorCode
$csucc :: SIMDErrorCode -> SIMDErrorCode
Enum)