module Rattletrap.Decode.Int8le
  ( decodeInt8leBits
  )
where

import Rattletrap.Decode.Common
import Rattletrap.Type.Int8le

decodeInt8le :: Decode Int8le
decodeInt8le :: Decode Int8le
decodeInt8le = Int8 -> Int8le
Int8le (Int8 -> Int8le) -> Get Int8 -> Decode Int8le
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Get Int8
getInt8

decodeInt8leBits :: DecodeBits Int8le
decodeInt8leBits :: DecodeBits Int8le
decodeInt8leBits = Decode Int8le -> Int -> DecodeBits Int8le
forall a. Decode a -> Int -> DecodeBits a
toBits Decode Int8le
decodeInt8le Int
1