chimera-0.2.0.0: Data/Chimera/FromIntegral.hs
-- |
-- Module: Data.Chimera.FromIntegral
-- Copyright: (c) 2018 Andrew Lelechenko
-- Licence: MIT
-- Maintainer: Andrew Lelechenko <andrew.lelechenko@gmail.com>
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_HADDOCK hide #-}
module Data.Chimera.FromIntegral
( word2int
, int2word
) where
import Unsafe.Coerce
word2int :: Word -> Int
word2int = unsafeCoerce
int2word :: Int -> Word
int2word = unsafeCoerce