packages feed

from-1.0.0.0: src/From/Num.hs

{-# LANGUAGE MultiParamTypeClasses #-}
{-# OPTIONS_GHC -Wno-orphans #-}

module From.Num () where

import Data.Int
import Data.Word
import From.Classes

-- | Implementation is 'fromIntegral'
instance From Int Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Integer Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int8 Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int16 Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int32 Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Int64 Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word8 Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word16 Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Word64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word32 Double where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Int where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Integer where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Int8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Int16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Int32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Int64 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Word8 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Word16 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Word32 where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Float where
  from = fromIntegral

-- | Implementation is 'fromIntegral'
instance From Word64 Double where
  from = fromIntegral