{-# OPTIONS_GHC -Wno-orphans #-}

module IsomorphismClass.Relations.ShortByteStringAndWord8List where

import qualified Data.ByteString.Short
import IsomorphismClass.Classes
import IsomorphismClass.Prelude
import IsomorphismClass.Relations.ByteArrayAndShortByteString ()

instance IsomorphicTo [Word8] Data.ByteString.Short.ShortByteString where
  to :: ShortByteString -> [Word8]
to = ShortByteString -> [Word8]
Data.ByteString.Short.unpack

instance IsomorphicTo Data.ByteString.Short.ShortByteString [Word8] where
  to :: [Word8] -> ShortByteString
to = [Word8] -> ShortByteString
Data.ByteString.Short.pack