- Added support for
text
>= 2.0 andtemplate-haskell
>= 2.18.0.0, removed support for older versions. - Tested with GHC 9.2.5, 9.4.8 and 9.6.4.
- Forbid writing/reading
Nothing
to/from union vectors and required unions fields.
FlatBuffers.Vector.toByteString
renamed toFlatBuffers.Vector.toLazyByteString
- Allow trailing comma after the last enum/union field for compatibility with flatc.
- If a Haskell keyword is used as the name of a table or struct, then suffix the name of the generated constructor with an underscore.
- Add support for bitmasks, i.e. enums with the
bit_flags
attribute. FlatBuffers.Vector.length
changed fromEither ReadError Int32
toInt32
.- Vector length is now read once upfront, rather than on every access.
- Added to
FlatBuffers.Vector
:fromByteString
fromLazyByteString
fromMonoFoldable
(supportsData.Vector.Unboxed
andData.Vector.Storable
)take
drop
toByteString
- TemplateHaskell:
- Added
colorName
for enums. - Fixed error messages when running
ghcid
(they used to be truncated).
- Added
- First version.