{-# OPTIONS_GHC -Wno-orphans #-}

module IsomorphismClass.Relations.Int32AndWord32 where

import IsomorphismClass.Classes
import IsomorphismClass.Prelude

instance IsomorphicTo Int32 Word32 where
  to :: Word32 -> Int32
to = Word32 -> Int32
forall a b. (Integral a, Num b) => a -> b
fromIntegral

instance IsomorphicTo Word32 Int32 where
  to :: Int32 -> Word32
to = Int32 -> Word32
forall a b. (Integral a, Num b) => a -> b
fromIntegral