úÎE6Av8      !"#$%&'()*+,-./01234567Encoding and decoding GraphSON Toshio Ito <debug.ito@gmail.com>Noneý)Types that have an intrinsic type ID for  field. Type ID for .GWrapper for "typed JSON object" introduced in GraphSON version 2. See 9http://tinkerpop.apache.org/docs/current/dev/io/#graphson=This data type is useful for encoding/decoding GraphSON text.-Aeson.decode "1000" :: Maybe (GraphSON Int32)6Just (GraphSON {gsonType = Nothing, gsonValue = 1000})SAeson.decode "{\"@type\": \"g:Int32\", \"@value\": 1000}" :: Maybe (GraphSON Int32)=Just (GraphSON {gsonType = Just "g:Int32", gsonValue = 1000})Type ID, corresponding to @type field.Value, correspoding to @value field. Create a  without .nonTypedGraphSON (10 :: Int)-GraphSON {gsonType = Nothing, gsonValue = 10} Create a  with its type ID.typedGraphSON (10 :: Int32)4GraphSON {gsonType = Just "g:Int32", gsonValue = 10} Create a  with the given type ID.$typedGraphSON' "g:Int32" (10 :: Int)4GraphSON {gsonType = Just "g:Int32", gsonValue = 10} Parse  GraphSON v, but it checks . If  is 8 or it's not equal to , the 9 fails.  If the given : is a typed JSON object,  field of the result is ;. Otherwise, the given : is directly parsed into , and  is 8. If  is ;, the ( is encoded as a typed JSON object. If  is 8, the  is directly encoded.ANote that Lazy HashMap and Strict HashMap are the same data type.Map to "g:Double".2Map to "gx:Byte". Note that Java's Byte is signed.   "Low-level Gremlin script data type Toshio Ito <debug.ito@gmail.com>NoneFT@ÎSomething that can convert to  .!type of return value by Greskell. Gremlin expression of type a. N is essentially just a piece of Gremlin script with a phantom type. The type aI represents the type of data that the script is supposed to evaluate to.< and =E instances compare Gremlin scripts, NOT the values they evaluate to.!Unsafely create a  ? of arbitrary type. The given Gremlin script is printed as-is.$toGremlin $ unsafeGreskell "x + 100" "x + 100""Same as !, but it takes lazy >.#QCreate a String literal in Gremlin script. The content is automatically escaped.toGremlin $ string "foo bar" "\"foo bar\""5toGremlin $ string "escape newline\n escape dollar $")"\"escape newline\\n escape dollar \\$\""$Boolean true literal.toGremlin true"true"%Boolean false literal.toGremlin false"false"& List literal.4toGremlin $ list ([100, 200, 300] :: [Greskell Int])"[100,200,300]"'wMake a list with a single object. Useful to prevent the Gremlin Server from automatically iterating the result object..toGremlin $ single ("hoge" :: Greskell String) "[\"hoge\"]"(1Arbitrary precision number literal, like "123e8".toGremlin $ number 123e8 "1.23e10")Aeson : literal.toGremlin $ value Aeson.Null"null":toGremlin $ value $ Aeson.toJSON $ ([10, 20, 30] :: [Int])"[10.0,20.0,30.0]"'toGremlin $ value $ Aeson.Object mempty"[:]"*&Create a readable Gremlin script from  .+Same as * except that this returns lazy >.,Unsafely create a  9 that calls the given function with the given arguments.,toGremlin $ unsafeFunCall "add" ["10", "20"] "add(10,20)"-Unsafely create a  N that calls the given object method call with the given target and arguments.FtoGremlin $ unsafeMethodCall ("foobar" :: Greskell String) "length" []"(\"foobar\").length()".Monoidal operations on   assumes String operations in Gremlin. ? is the empty String, and @ is String concatenation./Semigroup operator '(<>)' on   assumes String concatenation on Gremlin.0?Floating-point number literals and numeric operation in Gremlin11Integer literals and numeric operation in Gremlin2"Unsafely convert the phantom type.3Same as #& except for the input and output type.4 It's just A.!Gremlin script"Gremlin script, function name arguments!return value of the function call- target object method name argumentsreturn value of the method call !"#$%&'()*+,- *+#$%&'()!",- BCD      !"#$%&'()*+,-./0123456789:;<=>?=>@:;ABCDBCEFGH:;I:;J:;K"LM+greskell-core-0.1.1.0-rprbs9YgwI4ZHqA7asFvRData.Greskell.GraphSONData.Greskell.Greskell GraphSONTyped gsonTypeForGraphSONgsonType gsonValuenonTypedGraphSON typedGraphSONtypedGraphSON'parseTypedGraphSON$fFromJSONGraphSON$fToJSONGraphSON$fTraversableGraphSON$fFoldableGraphSON$fFunctorGraphSON$fGraphSONTypedHashSet$fGraphSONTypedHashMap$fGraphSONTypedScientific$fGraphSONTyped[]$fGraphSONTypedDouble$fGraphSONTypedFloat$fGraphSONTypedInt64$fGraphSONTypedInt32$fGraphSONTypedInt16$fGraphSONTypedInt8$fGraphSONTypedChar$fShowGraphSON $fEqGraphSON $fOrdGraphSON ToGreskellGreskellReturn toGreskellGreskellunsafeGreskellunsafeGreskellLazystringtruefalselistsinglenumbervalue toGremlin toGremlinLazy unsafeFunCallunsafeMethodCall$fMonoidGreskell$fSemigroupGreskell$fFractionalGreskell $fNumGreskell$fFunctorGreskell$fIsStringGreskell$fToGreskellGreskell$fShowGreskell $fEqGreskell $fOrdGreskellbaseGHC.BaseNothing$aeson-1.2.4.0-1zctWaeLSQREbMpEicx0A8Data.Aeson.Types.InternalParserValueJustghc-prim GHC.ClassesEqOrd#text-1.2.2.2-EakMpasry3jA6OIwSZhq9MData.Text.Internal.LazyTextmemptymappendid unGreskell