-- Generated by protobuf-simple. DO NOT EDIT! module Types.FloatMsg where import Control.Applicative ((<$>)) import Prelude () import qualified Data.ProtoBufInt as PB newtype FloatMsg = FloatMsg { value :: PB.Float } deriving (PB.Show, PB.Eq, PB.Ord) instance PB.Default FloatMsg where defaultVal = FloatMsg { value = PB.defaultVal } instance PB.Mergeable FloatMsg where merge a b = FloatMsg { value = PB.merge (value a) (value b) } instance PB.Required FloatMsg where reqTags _ = PB.fromList [PB.WireTag 1 PB.Bit32] instance PB.WireMessage FloatMsg where fieldToValue (PB.WireTag 1 PB.Bit32) self = (\v -> self{value = PB.merge (value self) v}) <$> PB.getFloat fieldToValue tag self = PB.getUnknown tag self messageToFields self = do PB.putFloat (PB.WireTag 1 PB.Bit32) (value self)