File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
unison-runtime/src/Unison/Runtime/Foreign Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -2052,25 +2052,6 @@ avroDecodeBinary _env readSchema bytes = do
20522052 Left (_, _, err) -> pure $ encodeVal @ (Either String Val ) (Left err)
20532053 Right (_, _, value) -> pure $ encodeVal @ (Either String Val ) (Right (avroEncodeValue value))
20542054
2055- -- go schema = case schema of
2056- -- Enum _ t
2057- -- | TT.avroReadSchemaNullTag == t -> pure (Right avroNull)
2058- -- | TT.avroReadSchemaBooleanTag == t -> do
2059- -- b <- Get.getWord8
2060- -- pure (if b == 0 then Right avroFalse else Right avroTrue)
2061- -- | TT.avroReadSchemaIntTag == t -> do
2062- -- n <- Get.var
2063- -- where
2064- -- getNonNegative :: (Bits i, Integral i) => Get i
2065- -- getNonNegative = do
2066- -- orig <- getWord8s
2067- -- return $! foldl' (\a x -> (a `shiftL` 7) + fromIntegral x) 0 (reverse orig)
2068- -- getWord8s :: Get [Word8]
2069- -- getWord8s = do
2070- -- w <- getWord8
2071- -- let msb = w `testBit` 7 in
2072- -- (w .&. 0x7F :) <$> if msb then getWord8s else return []
2073-
20742055-- A ForeignConvention explains how to encode foreign values as
20752056-- unison types. Depending on the situation, this can take three
20762057-- forms.
You can’t perform that action at this time.
0 commit comments