-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | A parser/serializer for Minecraft's Named Binary Tag (NBT)
-- data format.
--
-- This package includes a data type for the NBT file format, notably
-- used to represent saved data in Minecraft and significant parts of the
-- Minecraft network protocol. All twelve tags of verion 19133 (needed
-- for Anvil maps) are implemented.
@package nbt
@version 0.6
-- | Defines a Haskell representation of Minecraft's NBT binary data
-- format, along with instances of Serialize. See the NBT
-- specification for details:
-- https://raw.github.com/acfoltzer/nbt/master/NBT-spec.txt.
module Data.NBT
-- | Tag types listed in order so that deriving Enum will assign
-- them the correct number for the binary type field.
data TagType
EndType :: TagType
ByteType :: TagType
ShortType :: TagType
IntType :: TagType
LongType :: TagType
FloatType :: TagType
DoubleType :: TagType
ByteArrayType :: TagType
StringType :: TagType
ListType :: TagType
CompoundType :: TagType
IntArrayType :: TagType
-- | Primitive representation of NBT data. This type contains only the data
-- part, since named nodes can only exist inside compound nodes.
data NBT
NBT :: Text -> NbtContents -> NBT
data NbtContents
ByteTag :: Int8 -> NbtContents
ShortTag :: Int16 -> NbtContents
IntTag :: Int32 -> NbtContents
LongTag :: Int64 -> NbtContents
FloatTag :: Float -> NbtContents
DoubleTag :: Double -> NbtContents
ByteArrayTag :: (UArray Int32 Int8) -> NbtContents
StringTag :: Text -> NbtContents
ListTag :: (Array Int32 NbtContents) -> NbtContents
CompoundTag :: [NBT] -> NbtContents
IntArrayTag :: (UArray Int32 Int32) -> NbtContents
typeOf :: NbtContents -> TagType
instance GHC.Classes.Eq Data.NBT.NBT
instance GHC.Show.Show Data.NBT.NBT
instance GHC.Classes.Eq Data.NBT.NbtContents
instance GHC.Show.Show Data.NBT.NbtContents
instance GHC.Enum.Enum Data.NBT.TagType
instance GHC.Classes.Eq Data.NBT.TagType
instance GHC.Show.Show Data.NBT.TagType
instance Data.Serialize.Serialize Data.NBT.TagType
instance Data.Serialize.Serialize Data.NBT.NBT