nbt-0.5.1: A parser/serializer for Minecraft's Named Binary Tag (NBT) data format.

Portabilityportable
Stabilityexperimental
Maintaineracfoltzer@gmail.com
Safe HaskellNone

Data.NBT

Description

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.

Synopsis

Documentation

data TagType Source

Tag types listed in order so that deriving Enum will assign them the correct number for the binary type field.

data NBT Source

Primitive representation of NBT data. This type contains only the data part, since named nodes can only exist inside compound nodes.

Constructors

NBT Text NbtContents 

Instances

getArrayElements :: (IArray arr a, Integral len, Ix len) => len -> Get a -> Get (arr len a)Source