    {-# OPTIONS_GHC -Wno-orphans #-}

    module IsomorphismClass.Relations.ByteStringAndShortByteString where

    import qualified Data.ByteString.Short
    import IsomorphismClass.Classes
    import IsomorphismClass.Prelude

    instance IsomorphicTo ByteString Data.ByteString.Short.ShortByteString where
      to :: ShortByteString -> ByteString
    to = ShortByteString -> ByteString
    Data.ByteString.Short.fromShort

    instance IsomorphicTo Data.ByteString.Short.ShortByteString ByteString where
      to :: ByteString -> ShortByteString
    to = ByteString -> ShortByteString
    Data.ByteString.Short.toShort