module Codec where

import Data.ByteString.Lazy (ByteString)

------------------------------------------------------------------------

data Codec i o = Codec
  { cDecode :: ByteString -> Maybe i
  , cEncode :: o -> ByteString
  }

----------------------------------------------------------------------
module Codec where

import Data.ByteString.Lazy (ByteString)


data Codec i o = Codec
  { cDecode :: ByteString -> Maybe i
  , cEncode :: o -> ByteString
  }
