convertible-1.1.1.0: Typeclasses and instances for converting between types

Copyright | Copyright (C) 2009-2011 John Goerzen
License | BSD3
Maintainer | John Goerzen <jgoerzen@complete.org>
Stability | provisional
Portability | portable
Safe Haskell | Safe
Language | Haskell98

Data.Convertible.Instances.Num

Contents

- Orphan instances

Description

Numeric instances for Convertible.

Copyright (C) 2009-2011 John Goerzen jgoerzen@complete.org

All rights reserved.

For license and copyright information, see the file LICENSE

These instances perform conversion between numeric types such as Double, Int, Integer, Rational, and the like. Here are some notes about the conversion process:

Conversions from floating-point types such as Double to integral types are done via the `truncate` function. This is a somewhat arbitrary decision; if you need different behavior, you will have to write your own instance or manually perform the conversion.

All conversions perform bounds checking. If a value is too large for its destination type, you will get a `ConvertError` informing you of this. Note that this behavior differs from functions in the Haskell standard libraries, which will perform the conversion without error, but give you garbage in the end.

Conversions do not perform precision checking; loss of precision is implied with certain conversions (for instance, Double to Float) and this is not an error.

# Orphan instances

Convertible Char Int Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Int Source #
Convertible Char Int8 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Int8 Source #
Convertible Char Int16 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Int16 Source #
Convertible Char Int32 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Int32 Source #
Convertible Char Int64 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Int64 Source #
Convertible Char Integer Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Integer Source #
Convertible Char Word Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Word Source #
Convertible Char Word8 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Word8 Source #
Convertible Char Word16 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Word16 Source #
Convertible Char Word32 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Word32 Source #
Convertible Char Word64 Source # |
Instance details Methods safeConvert :: Char -> ConvertResult Word64 Source #
Convertible Double Float Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Float Source #
Convertible Double Int Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Int Source #
Convertible Double Int8 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Int8 Source #
Convertible Double Int16 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Int16 Source #
Convertible Double Int32 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Int32 Source #
Convertible Double Int64 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Int64 Source #
Convertible Double Integer Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Integer Source #
Convertible Double Rational Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Rational Source #
Convertible Double Word Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Word Source #
Convertible Double Word8 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Word8 Source #
Convertible Double Word16 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Word16 Source #
Convertible Double Word32 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Word32 Source #
Convertible Double Word64 Source # |
Instance details Methods safeConvert :: Double -> ConvertResult Word64 Source #
Convertible Float Double Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Double Source #
Convertible Float Int Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Int Source #
Convertible Float Int8 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Int8 Source #
Convertible Float Int16 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Int16 Source #
Convertible Float Int32 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Int32 Source #
Convertible Float Int64 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Int64 Source #
Convertible Float Integer Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Integer Source #
Convertible Float Rational Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Rational Source #
Convertible Float Word Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Word Source #
Convertible Float Word8 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Word8 Source #
Convertible Float Word16 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Word16 Source #
Convertible Float Word32 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Word32 Source #
Convertible Float Word64 Source # |
Instance details Methods safeConvert :: Float -> ConvertResult Word64 Source #
Convertible Int Char Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Char Source #
Convertible Int Double Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Double Source #
Convertible Int Float Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Float Source #
Convertible Int Int8 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Int8 Source #
Convertible Int Int16 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Int16 Source #
Convertible Int Int32 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Int32 Source #
Convertible Int Int64 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Int64 Source #
Convertible Int Integer Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Integer Source #
Convertible Int Rational Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Rational Source #
Convertible Int Word Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Word Source #
Convertible Int Word8 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Word8 Source #
Convertible Int Word16 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Word16 Source #
Convertible Int Word32 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Word32 Source #
Convertible Int Word64 Source # |
Instance details Methods safeConvert :: Int -> ConvertResult Word64 Source #
Convertible Int8 Char Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Char Source #
Convertible Int8 Double Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Double Source #
Convertible Int8 Float Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Float Source #
Convertible Int8 Int Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Int Source #
Convertible Int8 Int16 Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Int16 Source #
Convertible Int8 Int32 Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Int32 Source #
Convertible Int8 Int64 Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Int64 Source #
Convertible Int8 Integer Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Integer Source #
Convertible Int8 Rational Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Rational Source #
Convertible Int8 Word Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Word Source #
Convertible Int8 Word8 Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Word8 Source #
Convertible Int8 Word16 Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Word16 Source #
Convertible Int8 Word32 Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Word32 Source #
Convertible Int8 Word64 Source # |
Instance details Methods safeConvert :: Int8 -> ConvertResult Word64 Source #
Convertible Int16 Char Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Char Source #
Convertible Int16 Double Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Double Source #
Convertible Int16 Float Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Float Source #
Convertible Int16 Int Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Int Source #
Convertible Int16 Int8 Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Int8 Source #
Convertible Int16 Int32 Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Int32 Source #
Convertible Int16 Int64 Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Int64 Source #
Convertible Int16 Integer Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Integer Source #
Convertible Int16 Rational Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Rational Source #
Convertible Int16 Word Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Word Source #
Convertible Int16 Word8 Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Word8 Source #
Convertible Int16 Word16 Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Word16 Source #
Convertible Int16 Word32 Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Word32 Source #
Convertible Int16 Word64 Source # |
Instance details Methods safeConvert :: Int16 -> ConvertResult Word64 Source #
Convertible Int32 Char Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Char Source #
Convertible Int32 Double Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Double Source #
Convertible Int32 Float Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Float Source #
Convertible Int32 Int Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Int Source #
Convertible Int32 Int8 Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Int8 Source #
Convertible Int32 Int16 Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Int16 Source #
Convertible Int32 Int64 Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Int64 Source #
Convertible Int32 Integer Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Integer Source #
Convertible Int32 Rational Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Rational Source #
Convertible Int32 Word Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Word Source #
Convertible Int32 Word8 Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Word8 Source #
Convertible Int32 Word16 Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Word16 Source #
Convertible Int32 Word32 Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Word32 Source #
Convertible Int32 Word64 Source # |
Instance details Methods safeConvert :: Int32 -> ConvertResult Word64 Source #
Convertible Int64 Char Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Char Source #
Convertible Int64 Double Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Double Source #
Convertible Int64 Float Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Float Source #
Convertible Int64 Int Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Int Source #
Convertible Int64 Int8 Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Int8 Source #
Convertible Int64 Int16 Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Int16 Source #
Convertible Int64 Int32 Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Int32 Source #
Convertible Int64 Integer Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Integer Source #
Convertible Int64 Rational Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Rational Source #
Convertible Int64 Word Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Word Source #
Convertible Int64 Word8 Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Word8 Source #
Convertible Int64 Word16 Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Word16 Source #
Convertible Int64 Word32 Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Word32 Source #
Convertible Int64 Word64 Source # |
Instance details Methods safeConvert :: Int64 -> ConvertResult Word64 Source #
Convertible Integer Char Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Char Source #
Convertible Integer Double Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Double Source #
Convertible Integer Float Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Float Source #
Convertible Integer Int Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Int Source #
Convertible Integer Int8 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Int8 Source #
Convertible Integer Int16 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Int16 Source #
Convertible Integer Int32 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Int32 Source #
Convertible Integer Int64 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Int64 Source #
Convertible Integer Integer Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Integer Source #
Convertible Integer Rational Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Rational Source #
Convertible Integer Word Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Word Source #
Convertible Integer Word8 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Word8 Source #
Convertible Integer Word16 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Word16 Source #
Convertible Integer Word32 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Word32 Source #
Convertible Integer Word64 Source # |
Instance details Methods safeConvert :: Integer -> ConvertResult Word64 Source #
Convertible Rational Double Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Double Source #
Convertible Rational Float Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Float Source #
Convertible Rational Int Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Int Source #
Convertible Rational Int8 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Int8 Source #
Convertible Rational Int16 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Int16 Source #
Convertible Rational Int32 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Int32 Source #
Convertible Rational Int64 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Int64 Source #
Convertible Rational Integer Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Integer Source #
Convertible Rational Word Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Word Source #
Convertible Rational Word8 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Word8 Source #
Convertible Rational Word16 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Word16 Source #
Convertible Rational Word32 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Word32 Source #
Convertible Rational Word64 Source # |
Instance details Methods safeConvert :: Rational -> ConvertResult Word64 Source #
Convertible Word Char Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Char Source #
Convertible Word Double Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Double Source #
Convertible Word Float Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Float Source #
Convertible Word Int Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Int Source #
Convertible Word Int8 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Int8 Source #
Convertible Word Int16 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Int16 Source #
Convertible Word Int32 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Int32 Source #
Convertible Word Int64 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Int64 Source #
Convertible Word Integer Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Integer Source #
Convertible Word Rational Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Rational Source #
Convertible Word Word8 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Word8 Source #
Convertible Word Word16 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Word16 Source #
Convertible Word Word32 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Word32 Source #
Convertible Word Word64 Source # |
Instance details Methods safeConvert :: Word -> ConvertResult Word64 Source #
Convertible Word8 Char Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Char Source #
Convertible Word8 Double Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Double Source #
Convertible Word8 Float Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Float Source #
Convertible Word8 Int Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Int Source #
Convertible Word8 Int8 Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Int8 Source #
Convertible Word8 Int16 Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Int16 Source #
Convertible Word8 Int32 Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Int32 Source #
Convertible Word8 Int64 Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Int64 Source #
Convertible Word8 Integer Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Integer Source #
Convertible Word8 Rational Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Rational Source #
Convertible Word8 Word Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Word Source #
Convertible Word8 Word16 Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Word16 Source #
Convertible Word8 Word32 Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Word32 Source #
Convertible Word8 Word64 Source # |
Instance details Methods safeConvert :: Word8 -> ConvertResult Word64 Source #
Convertible Word16 Char Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Char Source #
Convertible Word16 Double Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Double Source #
Convertible Word16 Float Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Float Source #
Convertible Word16 Int Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Int Source #
Convertible Word16 Int8 Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Int8 Source #
Convertible Word16 Int16 Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Int16 Source #
Convertible Word16 Int32 Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Int32 Source #
Convertible Word16 Int64 Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Int64 Source #
Convertible Word16 Integer Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Integer Source #
Convertible Word16 Rational Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Rational Source #
Convertible Word16 Word Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Word Source #
Convertible Word16 Word8 Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Word8 Source #
Convertible Word16 Word32 Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Word32 Source #
Convertible Word16 Word64 Source # |
Instance details Methods safeConvert :: Word16 -> ConvertResult Word64 Source #
Convertible Word32 Char Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Char Source #
Convertible Word32 Double Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Double Source #
Convertible Word32 Float Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Float Source #
Convertible Word32 Int Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Int Source #
Convertible Word32 Int8 Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Int8 Source #
Convertible Word32 Int16 Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Int16 Source #
Convertible Word32 Int32 Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Int32 Source #
Convertible Word32 Int64 Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Int64 Source #
Convertible Word32 Integer Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Integer Source #
Convertible Word32 Rational Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Rational Source #
Convertible Word32 Word Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Word Source #
Convertible Word32 Word8 Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Word8 Source #
Convertible Word32 Word16 Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Word16 Source #
Convertible Word32 Word64 Source # |
Instance details Methods safeConvert :: Word32 -> ConvertResult Word64 Source #
Convertible Word64 Char Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Char Source #
Convertible Word64 Double Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Double Source #
Convertible Word64 Float Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Float Source #
Convertible Word64 Int Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Int Source #
Convertible Word64 Int8 Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Int8 Source #
Convertible Word64 Int16 Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Int16 Source #
Convertible Word64 Int32 Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Int32 Source #
Convertible Word64 Int64 Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Int64 Source #
Convertible Word64 Integer Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Integer Source #
Convertible Word64 Rational Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Rational Source #
Convertible Word64 Word Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Word Source #
Convertible Word64 Word8 Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Word8 Source #
Convertible Word64 Word16 Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Word16 Source #
Convertible Word64 Word32 Source # |
Instance details Methods safeConvert :: Word64 -> ConvertResult Word32 Source #