convertible-text- Typeclasses and instances for converting between types (deprecated)

MaintainerMichael Snoyman <>






class ConvertAttempt a b whereSource

A typeclass that represents something that can attempt a conversion. An ConvertAttempt a b instance represents an a that might be convertible to a b.


convertAttempt :: a -> Attempt bSource

Convert a to b, returning Success on success and Failure on error.


ConvertAttempt Bool String 
ConvertAttempt Bool ByteString 
ConvertAttempt Bool ByteString 
ConvertAttempt Bool Text 
ConvertAttempt Bool Text 
ConvertAttempt Char Int 
ConvertAttempt Char Int8 
ConvertAttempt Char Int16 
ConvertAttempt Char Int32 
ConvertAttempt Char Int64 
ConvertAttempt Char Integer 
ConvertAttempt Char Word 
ConvertAttempt Char Word8 
ConvertAttempt Char Word16 
ConvertAttempt Char Word32 
ConvertAttempt Char Word64 
ConvertAttempt Char CChar 
ConvertAttempt Char CSChar 
ConvertAttempt Char CUChar 
ConvertAttempt Char CShort 
ConvertAttempt Char CUShort 
ConvertAttempt Char CInt 
ConvertAttempt Char CUInt 
ConvertAttempt Char CLong 
ConvertAttempt Char CULong 
ConvertAttempt Char CLLong 
ConvertAttempt Char CULLong 
ConvertAttempt Char CSize 
ConvertAttempt Char CWchar 
ConvertAttempt Double Float 
ConvertAttempt Double Int 
ConvertAttempt Double Int8 
ConvertAttempt Double Int16 
ConvertAttempt Double Int32 
ConvertAttempt Double Int64 
ConvertAttempt Double Integer 
ConvertAttempt Double Rational 
ConvertAttempt Double Word 
ConvertAttempt Double Word8 
ConvertAttempt Double Word16 
ConvertAttempt Double Word32 
ConvertAttempt Double Word64 
ConvertAttempt Double CFloat 
ConvertAttempt Double CDouble 
ConvertAttempt Double CTime 
ConvertAttempt Double TimeDiff 
ConvertAttempt Double POSIXTime 
ConvertAttempt Double UTCTime 
ConvertAttempt Float Double 
ConvertAttempt Float Int 
ConvertAttempt Float Int8 
ConvertAttempt Float Int16 
ConvertAttempt Float Int32 
ConvertAttempt Float Int64 
ConvertAttempt Float Integer 
ConvertAttempt Float Rational 
ConvertAttempt Float Word 
ConvertAttempt Float Word8 
ConvertAttempt Float Word16 
ConvertAttempt Float Word32 
ConvertAttempt Float Word64 
ConvertAttempt Float CFloat 
ConvertAttempt Float CDouble 
ConvertAttempt Int Char 
ConvertAttempt Int Double 
ConvertAttempt Int Float 
ConvertAttempt Int Int8 
ConvertAttempt Int Int16 
ConvertAttempt Int Int32 
ConvertAttempt Int Int64 
ConvertAttempt Int Integer 
ConvertAttempt Int Rational 
ConvertAttempt Int Word 
ConvertAttempt Int Word8 
ConvertAttempt Int Word16 
ConvertAttempt Int Word32 
ConvertAttempt Int Word64 
ConvertAttempt Int String 
ConvertAttempt Int CChar 
ConvertAttempt Int CSChar 
ConvertAttempt Int CUChar 
ConvertAttempt Int CShort 
ConvertAttempt Int CUShort 
ConvertAttempt Int CInt 
ConvertAttempt Int CUInt 
ConvertAttempt Int CLong 
ConvertAttempt Int CULong 
ConvertAttempt Int CLLong 
ConvertAttempt Int CULLong 
ConvertAttempt Int CFloat 
ConvertAttempt Int CDouble 
ConvertAttempt Int CSize 
ConvertAttempt Int CWchar 
ConvertAttempt Int CTime 
ConvertAttempt Int ByteString 
ConvertAttempt Int ByteString 
ConvertAttempt Int Text 
ConvertAttempt Int Text 
ConvertAttempt Int POSIXTime 
ConvertAttempt Int UTCTime 
ConvertAttempt Int8 Char 
ConvertAttempt Int8 Double 
ConvertAttempt Int8 Float 
ConvertAttempt Int8 Int 
ConvertAttempt Int8 Int16 
ConvertAttempt Int8 Int32 
ConvertAttempt Int8 Int64 
ConvertAttempt Int8 Integer 
ConvertAttempt Int8 Rational 
ConvertAttempt Int8 Word 
ConvertAttempt Int8 Word8 
ConvertAttempt Int8 Word16 
ConvertAttempt Int8 Word32 
ConvertAttempt Int8 Word64 
ConvertAttempt Int8 CChar 
ConvertAttempt Int8 CSChar 
ConvertAttempt Int8 CUChar 
ConvertAttempt Int8 CShort 
ConvertAttempt Int8 CUShort 
ConvertAttempt Int8 CInt 
ConvertAttempt Int8 CUInt 
ConvertAttempt Int8 CLong 
ConvertAttempt Int8 CULong 
ConvertAttempt Int8 CLLong 
ConvertAttempt Int8 CULLong 
ConvertAttempt Int8 CFloat 
ConvertAttempt Int8 CDouble 
ConvertAttempt Int8 CSize 
ConvertAttempt Int8 CWchar 
ConvertAttempt Int16 Char 
ConvertAttempt Int16 Double 
ConvertAttempt Int16 Float 
ConvertAttempt Int16 Int 
ConvertAttempt Int16 Int8 
ConvertAttempt Int16 Int32 
ConvertAttempt Int16 Int64 
ConvertAttempt Int16 Integer 
ConvertAttempt Int16 Rational 
ConvertAttempt Int16 Word 
ConvertAttempt Int16 Word8 
ConvertAttempt Int16 Word16 
ConvertAttempt Int16 Word32 
ConvertAttempt Int16 Word64 
ConvertAttempt Int16 CChar 
ConvertAttempt Int16 CSChar 
ConvertAttempt Int16 CUChar 
ConvertAttempt Int16 CShort 
ConvertAttempt Int16 CUShort 
ConvertAttempt Int16 CInt 
ConvertAttempt Int16 CUInt 
ConvertAttempt Int16 CLong 
ConvertAttempt Int16 CULong 
ConvertAttempt Int16 CLLong 
ConvertAttempt Int16 CULLong 
ConvertAttempt Int16 CFloat 
ConvertAttempt Int16 CDouble 
ConvertAttempt Int16 CSize 
ConvertAttempt Int16 CWchar 
ConvertAttempt Int32 Char 
ConvertAttempt Int32 Double 
ConvertAttempt Int32 Float 
ConvertAttempt Int32 Int 
ConvertAttempt Int32 Int8 
ConvertAttempt Int32 Int16 
ConvertAttempt Int32 Int64 
ConvertAttempt Int32 Integer 
ConvertAttempt Int32 Rational 
ConvertAttempt Int32 Word 
ConvertAttempt Int32 Word8 
ConvertAttempt Int32 Word16 
ConvertAttempt Int32 Word32 
ConvertAttempt Int32 Word64 
ConvertAttempt Int32 CChar 
ConvertAttempt Int32 CSChar 
ConvertAttempt Int32 CUChar 
ConvertAttempt Int32 CShort 
ConvertAttempt Int32 CUShort 
ConvertAttempt Int32 CInt 
ConvertAttempt Int32 CUInt 
ConvertAttempt Int32 CLong 
ConvertAttempt Int32 CULong 
ConvertAttempt Int32 CLLong 
ConvertAttempt Int32 CULLong 
ConvertAttempt Int32 CFloat 
ConvertAttempt Int32 CDouble 
ConvertAttempt Int32 CSize 
ConvertAttempt Int32 CWchar 
ConvertAttempt Int64 Char 
ConvertAttempt Int64 Double 
ConvertAttempt Int64 Float 
ConvertAttempt Int64 Int 
ConvertAttempt Int64 Int8 
ConvertAttempt Int64 Int16 
ConvertAttempt Int64 Int32 
ConvertAttempt Int64 Integer 
ConvertAttempt Int64 Rational 
ConvertAttempt Int64 Word 
ConvertAttempt Int64 Word8 
ConvertAttempt Int64 Word16 
ConvertAttempt Int64 Word32 
ConvertAttempt Int64 Word64 
ConvertAttempt Int64 CChar 
ConvertAttempt Int64 CSChar 
ConvertAttempt Int64 CUChar 
ConvertAttempt Int64 CShort 
ConvertAttempt Int64 CUShort 
ConvertAttempt Int64 CInt 
ConvertAttempt Int64 CUInt 
ConvertAttempt Int64 CLong 
ConvertAttempt Int64 CULong 
ConvertAttempt Int64 CLLong 
ConvertAttempt Int64 CULLong 
ConvertAttempt Int64 CFloat 
ConvertAttempt Int64 CDouble 
ConvertAttempt Int64 CSize 
ConvertAttempt Int64 CWchar 
ConvertAttempt Integer Double 
ConvertAttempt Integer Float 
ConvertAttempt Integer Int 
ConvertAttempt Integer Int8 
ConvertAttempt Integer Int16 
ConvertAttempt Integer Int32 
ConvertAttempt Integer Int64 
ConvertAttempt Integer Rational 
ConvertAttempt Integer Word 
ConvertAttempt Integer Word8 
ConvertAttempt Integer Word16 
ConvertAttempt Integer Word32 
ConvertAttempt Integer Word64 
ConvertAttempt Integer CChar 
ConvertAttempt Integer CSChar 
ConvertAttempt Integer CUChar 
ConvertAttempt Integer CShort 
ConvertAttempt Integer CUShort 
ConvertAttempt Integer CInt 
ConvertAttempt Integer CUInt 
ConvertAttempt Integer CLong 
ConvertAttempt Integer CULong 
ConvertAttempt Integer CLLong 
ConvertAttempt Integer CULLong 
ConvertAttempt Integer CFloat 
ConvertAttempt Integer CDouble 
ConvertAttempt Integer CSize 
ConvertAttempt Integer CWchar 
ConvertAttempt Integer CTime 
ConvertAttempt Integer ClockTime 
ConvertAttempt Integer TimeDiff 
ConvertAttempt Integer POSIXTime 
ConvertAttempt Integer UTCTime 
ConvertAttempt Rational Double 
ConvertAttempt Rational Float 
ConvertAttempt Rational Int 
ConvertAttempt Rational Int8 
ConvertAttempt Rational Int16 
ConvertAttempt Rational Int32 
ConvertAttempt Rational Int64 
ConvertAttempt Rational Integer 
ConvertAttempt Rational Word 
ConvertAttempt Rational Word8 
ConvertAttempt Rational Word16 
ConvertAttempt Rational Word32 
ConvertAttempt Rational Word64 
ConvertAttempt Rational String 
ConvertAttempt Rational CFloat 
ConvertAttempt Rational CDouble 
ConvertAttempt Rational ByteString 
ConvertAttempt Rational ByteString 
ConvertAttempt Rational Text 
ConvertAttempt Rational Text 
ConvertAttempt Rational POSIXTime 
ConvertAttempt Rational UTCTime 
ConvertAttempt Word Char 
ConvertAttempt Word Double 
ConvertAttempt Word Float 
ConvertAttempt Word Int 
ConvertAttempt Word Int8 
ConvertAttempt Word Int16 
ConvertAttempt Word Int32 
ConvertAttempt Word Int64 
ConvertAttempt Word Integer 
ConvertAttempt Word Rational 
ConvertAttempt Word Word8 
ConvertAttempt Word Word16 
ConvertAttempt Word Word32 
ConvertAttempt Word Word64 
ConvertAttempt Word CChar 
ConvertAttempt Word CSChar 
ConvertAttempt Word CUChar 
ConvertAttempt Word CShort 
ConvertAttempt Word CUShort 
ConvertAttempt Word CInt 
ConvertAttempt Word CUInt 
ConvertAttempt Word CLong 
ConvertAttempt Word CULong 
ConvertAttempt Word CLLong 
ConvertAttempt Word CULLong 
ConvertAttempt Word CFloat 
ConvertAttempt Word CDouble 
ConvertAttempt Word CSize 
ConvertAttempt Word CWchar 
ConvertAttempt Word8 Char 
ConvertAttempt Word8 Double 
ConvertAttempt Word8 Float 
ConvertAttempt Word8 Int 
ConvertAttempt Word8 Int8 
ConvertAttempt Word8 Int16 
ConvertAttempt Word8 Int32 
ConvertAttempt Word8 Int64 
ConvertAttempt Word8 Integer 
ConvertAttempt Word8 Rational 
ConvertAttempt Word8 Word 
ConvertAttempt Word8 Word16 
ConvertAttempt Word8 Word32 
ConvertAttempt Word8 Word64 
ConvertAttempt Word8 CChar 
ConvertAttempt Word8 CSChar 
ConvertAttempt Word8 CUChar 
ConvertAttempt Word8 CShort 
ConvertAttempt Word8 CUShort 
ConvertAttempt Word8 CInt 
ConvertAttempt Word8 CUInt 
ConvertAttempt Word8 CLong 
ConvertAttempt Word8 CULong 
ConvertAttempt Word8 CLLong 
ConvertAttempt Word8 CULLong 
ConvertAttempt Word8 CFloat 
ConvertAttempt Word8 CDouble 
ConvertAttempt Word8 CSize 
ConvertAttempt Word8 CWchar 
ConvertAttempt Word16 Char 
ConvertAttempt Word16 Double 
ConvertAttempt Word16 Float 
ConvertAttempt Word16 Int 
ConvertAttempt Word16 Int8 
ConvertAttempt Word16 Int16 
ConvertAttempt Word16 Int32 
ConvertAttempt Word16 Int64 
ConvertAttempt Word16 Integer 
ConvertAttempt Word16 Rational 
ConvertAttempt Word16 Word 
ConvertAttempt Word16 Word8 
ConvertAttempt Word16 Word32 
ConvertAttempt Word16 Word64 
ConvertAttempt Word16 CChar 
ConvertAttempt Word16 CSChar 
ConvertAttempt Word16 CUChar 
ConvertAttempt Word16 CShort 
ConvertAttempt Word16 CUShort 
ConvertAttempt Word16 CInt 
ConvertAttempt Word16 CUInt 
ConvertAttempt Word16 CLong 
ConvertAttempt Word16 CULong 
ConvertAttempt Word16 CLLong 
ConvertAttempt Word16 CULLong 
ConvertAttempt Word16 CFloat 
ConvertAttempt Word16 CDouble 
ConvertAttempt Word16 CSize 
ConvertAttempt Word16 CWchar 
ConvertAttempt Word32 Char 
ConvertAttempt Word32 Double 
ConvertAttempt Word32 Float 
ConvertAttempt Word32 Int 
ConvertAttempt Word32 Int8 
ConvertAttempt Word32 Int16 
ConvertAttempt Word32 Int32 
ConvertAttempt Word32 Int64 
ConvertAttempt Word32 Integer 
ConvertAttempt Word32 Rational 
ConvertAttempt Word32 Word 
ConvertAttempt Word32 Word8 
ConvertAttempt Word32 Word16 
ConvertAttempt Word32 Word64 
ConvertAttempt Word32 CChar 
ConvertAttempt Word32 CSChar 
ConvertAttempt Word32 CUChar 
ConvertAttempt Word32 CShort 
ConvertAttempt Word32 CUShort 
ConvertAttempt Word32 CInt 
ConvertAttempt Word32 CUInt 
ConvertAttempt Word32 CLong 
ConvertAttempt Word32 CULong 
ConvertAttempt Word32 CLLong 
ConvertAttempt Word32 CULLong 
ConvertAttempt Word32 CFloat 
ConvertAttempt Word32 CDouble 
ConvertAttempt Word32 CSize 
ConvertAttempt Word32 CWchar 
ConvertAttempt Word64 Char 
ConvertAttempt Word64 Double 
ConvertAttempt Word64 Float 
ConvertAttempt Word64 Int 
ConvertAttempt Word64 Int8 
ConvertAttempt Word64 Int16 
ConvertAttempt Word64 Int32 
ConvertAttempt Word64 Int64 
ConvertAttempt Word64 Integer 
ConvertAttempt Word64 Rational 
ConvertAttempt Word64 Word 
ConvertAttempt Word64 Word8 
ConvertAttempt Word64 Word16 
ConvertAttempt Word64 Word32 
ConvertAttempt Word64 CChar 
ConvertAttempt Word64 CSChar 
ConvertAttempt Word64 CUChar 
ConvertAttempt Word64 CShort 
ConvertAttempt Word64 CUShort 
ConvertAttempt Word64 CInt 
ConvertAttempt Word64 CUInt 
ConvertAttempt Word64 CLong 
ConvertAttempt Word64 CULong 
ConvertAttempt Word64 CLLong 
ConvertAttempt Word64 CULLong 
ConvertAttempt Word64 CFloat 
ConvertAttempt Word64 CDouble 
ConvertAttempt Word64 CSize 
ConvertAttempt Word64 CWchar 
ConvertAttempt String ByteString 
ConvertAttempt String ByteString 
ConvertAttempt String Text 
ConvertAttempt String Text 
ConvertAttempt a a 
ConvertAttempt CChar Char 
ConvertAttempt CChar Int 
ConvertAttempt CChar Int8 
ConvertAttempt CChar Int16 
ConvertAttempt CChar Int32 
ConvertAttempt CChar Int64 
ConvertAttempt CChar Integer 
ConvertAttempt CChar Word 
ConvertAttempt CChar Word8 
ConvertAttempt CChar Word16 
ConvertAttempt CChar Word32 
ConvertAttempt CChar Word64 
ConvertAttempt CChar CSChar 
ConvertAttempt CChar CUChar 
ConvertAttempt CChar CShort 
ConvertAttempt CChar CUShort 
ConvertAttempt CChar CInt 
ConvertAttempt CChar CUInt 
ConvertAttempt CChar CLong 
ConvertAttempt CChar CULong 
ConvertAttempt CChar CLLong 
ConvertAttempt CChar CULLong 
ConvertAttempt CChar CSize 
ConvertAttempt CChar CWchar 
ConvertAttempt CSChar Char 
ConvertAttempt CSChar Int 
ConvertAttempt CSChar Int8 
ConvertAttempt CSChar Int16 
ConvertAttempt CSChar Int32 
ConvertAttempt CSChar Int64 
ConvertAttempt CSChar Integer 
ConvertAttempt CSChar Word 
ConvertAttempt CSChar Word8 
ConvertAttempt CSChar Word16 
ConvertAttempt CSChar Word32 
ConvertAttempt CSChar Word64 
ConvertAttempt CSChar CChar 
ConvertAttempt CSChar CUChar 
ConvertAttempt CSChar CShort 
ConvertAttempt CSChar CUShort 
ConvertAttempt CSChar CInt 
ConvertAttempt CSChar CUInt 
ConvertAttempt CSChar CLong 
ConvertAttempt CSChar CULong 
ConvertAttempt CSChar CLLong 
ConvertAttempt CSChar CULLong 
ConvertAttempt CSChar CSize 
ConvertAttempt CSChar CWchar 
ConvertAttempt CUChar Char 
ConvertAttempt CUChar Int 
ConvertAttempt CUChar Int8 
ConvertAttempt CUChar Int16 
ConvertAttempt CUChar Int32 
ConvertAttempt CUChar Int64 
ConvertAttempt CUChar Integer 
ConvertAttempt CUChar Word 
ConvertAttempt CUChar Word8 
ConvertAttempt CUChar Word16 
ConvertAttempt CUChar Word32 
ConvertAttempt CUChar Word64 
ConvertAttempt CUChar CChar 
ConvertAttempt CUChar CSChar 
ConvertAttempt CUChar CShort 
ConvertAttempt CUChar CUShort 
ConvertAttempt CUChar CInt 
ConvertAttempt CUChar CUInt 
ConvertAttempt CUChar CLong 
ConvertAttempt CUChar CULong 
ConvertAttempt CUChar CLLong 
ConvertAttempt CUChar CULLong 
ConvertAttempt CUChar CSize 
ConvertAttempt CUChar CWchar 
ConvertAttempt CShort Char 
ConvertAttempt CShort Int 
ConvertAttempt CShort Int8 
ConvertAttempt CShort Int16 
ConvertAttempt CShort Int32 
ConvertAttempt CShort Int64 
ConvertAttempt CShort Integer 
ConvertAttempt CShort Word 
ConvertAttempt CShort Word8 
ConvertAttempt CShort Word16 
ConvertAttempt CShort Word32 
ConvertAttempt CShort Word64 
ConvertAttempt CShort CChar 
ConvertAttempt CShort CSChar 
ConvertAttempt CShort CUChar 
ConvertAttempt CShort CUShort 
ConvertAttempt CShort CInt 
ConvertAttempt CShort CUInt 
ConvertAttempt CShort CLong 
ConvertAttempt CShort CULong 
ConvertAttempt CShort CLLong 
ConvertAttempt CShort CULLong 
ConvertAttempt CShort CSize 
ConvertAttempt CShort CWchar 
ConvertAttempt CUShort Char 
ConvertAttempt CUShort Int 
ConvertAttempt CUShort Int8 
ConvertAttempt CUShort Int16 
ConvertAttempt CUShort Int32 
ConvertAttempt CUShort Int64 
ConvertAttempt CUShort Integer 
ConvertAttempt CUShort Word 
ConvertAttempt CUShort Word8 
ConvertAttempt CUShort Word16 
ConvertAttempt CUShort Word32 
ConvertAttempt CUShort Word64 
ConvertAttempt CUShort CChar 
ConvertAttempt CUShort CSChar 
ConvertAttempt CUShort CUChar 
ConvertAttempt CUShort CShort 
ConvertAttempt CUShort CInt 
ConvertAttempt CUShort CUInt 
ConvertAttempt CUShort CLong 
ConvertAttempt CUShort CULong 
ConvertAttempt CUShort CLLong 
ConvertAttempt CUShort CULLong 
ConvertAttempt CUShort CSize 
ConvertAttempt CUShort CWchar 
ConvertAttempt CInt Char 
ConvertAttempt CInt Int 
ConvertAttempt CInt Int8 
ConvertAttempt CInt Int16 
ConvertAttempt CInt Int32 
ConvertAttempt CInt Int64 
ConvertAttempt CInt Integer 
ConvertAttempt CInt Word 
ConvertAttempt CInt Word8 
ConvertAttempt CInt Word16 
ConvertAttempt CInt Word32 
ConvertAttempt CInt Word64 
ConvertAttempt CInt CChar 
ConvertAttempt CInt CSChar 
ConvertAttempt CInt CUChar 
ConvertAttempt CInt CShort 
ConvertAttempt CInt CUShort 
ConvertAttempt CInt CUInt 
ConvertAttempt CInt CLong 
ConvertAttempt CInt CULong 
ConvertAttempt CInt CLLong 
ConvertAttempt CInt CULLong 
ConvertAttempt CInt CSize 
ConvertAttempt CInt CWchar 
ConvertAttempt CUInt Char 
ConvertAttempt CUInt Int 
ConvertAttempt CUInt Int8 
ConvertAttempt CUInt Int16 
ConvertAttempt CUInt Int32 
ConvertAttempt CUInt Int64 
ConvertAttempt CUInt Integer 
ConvertAttempt CUInt Word 
ConvertAttempt CUInt Word8 
ConvertAttempt CUInt Word16 
ConvertAttempt CUInt Word32 
ConvertAttempt CUInt Word64 
ConvertAttempt CUInt CChar 
ConvertAttempt CUInt CSChar 
ConvertAttempt CUInt CUChar 
ConvertAttempt CUInt CShort 
ConvertAttempt CUInt CUShort 
ConvertAttempt CUInt CInt 
ConvertAttempt CUInt CLong 
ConvertAttempt CUInt CULong 
ConvertAttempt CUInt CLLong 
ConvertAttempt CUInt CULLong 
ConvertAttempt CUInt CSize 
ConvertAttempt CUInt CWchar 
ConvertAttempt CLong Char 
ConvertAttempt CLong Int 
ConvertAttempt CLong Int8 
ConvertAttempt CLong Int16 
ConvertAttempt CLong Int32 
ConvertAttempt CLong Int64 
ConvertAttempt CLong Integer 
ConvertAttempt CLong Word 
ConvertAttempt CLong Word8 
ConvertAttempt CLong Word16 
ConvertAttempt CLong Word32 
ConvertAttempt CLong Word64 
ConvertAttempt CLong CChar 
ConvertAttempt CLong CSChar 
ConvertAttempt CLong CUChar 
ConvertAttempt CLong CShort 
ConvertAttempt CLong CUShort 
ConvertAttempt CLong CInt 
ConvertAttempt CLong CUInt 
ConvertAttempt CLong CULong 
ConvertAttempt CLong CLLong 
ConvertAttempt CLong CULLong 
ConvertAttempt CLong CSize 
ConvertAttempt CLong CWchar 
ConvertAttempt CULong Char 
ConvertAttempt CULong Int 
ConvertAttempt CULong Int8 
ConvertAttempt CULong Int16 
ConvertAttempt CULong Int32 
ConvertAttempt CULong Int64 
ConvertAttempt CULong Integer 
ConvertAttempt CULong Word 
ConvertAttempt CULong Word8 
ConvertAttempt CULong Word16 
ConvertAttempt CULong Word32 
ConvertAttempt CULong Word64 
ConvertAttempt CULong CChar 
ConvertAttempt CULong CSChar 
ConvertAttempt CULong CUChar 
ConvertAttempt CULong CShort 
ConvertAttempt CULong CUShort 
ConvertAttempt CULong CInt 
ConvertAttempt CULong CUInt 
ConvertAttempt CULong CLong 
ConvertAttempt CULong CLLong 
ConvertAttempt CULong CULLong 
ConvertAttempt CULong CSize 
ConvertAttempt CULong CWchar 
ConvertAttempt CLLong Char 
ConvertAttempt CLLong Int 
ConvertAttempt CLLong Int8 
ConvertAttempt CLLong Int16 
ConvertAttempt CLLong Int32 
ConvertAttempt CLLong Int64 
ConvertAttempt CLLong Integer 
ConvertAttempt CLLong Word 
ConvertAttempt CLLong Word8 
ConvertAttempt CLLong Word16 
ConvertAttempt CLLong Word32 
ConvertAttempt CLLong Word64 
ConvertAttempt CLLong CChar 
ConvertAttempt CLLong CSChar 
ConvertAttempt CLLong CUChar 
ConvertAttempt CLLong CShort 
ConvertAttempt CLLong CUShort 
ConvertAttempt CLLong CInt 
ConvertAttempt CLLong CUInt 
ConvertAttempt CLLong CLong 
ConvertAttempt CLLong CULong 
ConvertAttempt CLLong CULLong 
ConvertAttempt CLLong CSize 
ConvertAttempt CLLong CWchar 
ConvertAttempt CULLong Char 
ConvertAttempt CULLong Int 
ConvertAttempt CULLong Int8 
ConvertAttempt CULLong Int16 
ConvertAttempt CULLong Int32 
ConvertAttempt CULLong Int64 
ConvertAttempt CULLong Integer 
ConvertAttempt CULLong Word 
ConvertAttempt CULLong Word8 
ConvertAttempt CULLong Word16 
ConvertAttempt CULLong Word32 
ConvertAttempt CULLong Word64 
ConvertAttempt CULLong CChar 
ConvertAttempt CULLong CSChar 
ConvertAttempt CULLong CUChar 
ConvertAttempt CULLong CShort 
ConvertAttempt CULLong CUShort 
ConvertAttempt CULLong CInt 
ConvertAttempt CULLong CUInt 
ConvertAttempt CULLong CLong 
ConvertAttempt CULLong CULong 
ConvertAttempt CULLong CLLong 
ConvertAttempt CULLong CSize 
ConvertAttempt CULLong CWchar 
ConvertAttempt CFloat Double 
ConvertAttempt CFloat Float 
ConvertAttempt CFloat Int 
ConvertAttempt CFloat Int8 
ConvertAttempt CFloat Int16 
ConvertAttempt CFloat Int32 
ConvertAttempt CFloat Int64 
ConvertAttempt CFloat Integer 
ConvertAttempt CFloat Rational 
ConvertAttempt CFloat Word 
ConvertAttempt CFloat Word8 
ConvertAttempt CFloat Word16 
ConvertAttempt CFloat Word32 
ConvertAttempt CFloat Word64 
ConvertAttempt CFloat CDouble 
ConvertAttempt CDouble Double 
ConvertAttempt CDouble Float 
ConvertAttempt CDouble Int 
ConvertAttempt CDouble Int8 
ConvertAttempt CDouble Int16 
ConvertAttempt CDouble Int32 
ConvertAttempt CDouble Int64 
ConvertAttempt CDouble Integer 
ConvertAttempt CDouble Rational 
ConvertAttempt CDouble Word 
ConvertAttempt CDouble Word8 
ConvertAttempt CDouble Word16 
ConvertAttempt CDouble Word32 
ConvertAttempt CDouble Word64 
ConvertAttempt CDouble CFloat 
ConvertAttempt CSize Char 
ConvertAttempt CSize Int 
ConvertAttempt CSize Int8 
ConvertAttempt CSize Int16 
ConvertAttempt CSize Int32 
ConvertAttempt CSize Int64 
ConvertAttempt CSize Integer 
ConvertAttempt CSize Word 
ConvertAttempt CSize Word8 
ConvertAttempt CSize Word16 
ConvertAttempt CSize Word32 
ConvertAttempt CSize Word64 
ConvertAttempt CSize CChar 
ConvertAttempt CSize CSChar 
ConvertAttempt CSize CUChar 
ConvertAttempt CSize CShort 
ConvertAttempt CSize CUShort 
ConvertAttempt CSize CInt 
ConvertAttempt CSize CUInt 
ConvertAttempt CSize CLong 
ConvertAttempt CSize CULong 
ConvertAttempt CSize CLLong 
ConvertAttempt CSize CULLong 
ConvertAttempt CSize CWchar 
ConvertAttempt CWchar Char 
ConvertAttempt CWchar Int 
ConvertAttempt CWchar Int8 
ConvertAttempt CWchar Int16 
ConvertAttempt CWchar Int32 
ConvertAttempt CWchar Int64 
ConvertAttempt CWchar Integer 
ConvertAttempt CWchar Word 
ConvertAttempt CWchar Word8 
ConvertAttempt CWchar Word16 
ConvertAttempt CWchar Word32 
ConvertAttempt CWchar Word64 
ConvertAttempt CWchar CChar 
ConvertAttempt CWchar CSChar 
ConvertAttempt CWchar CUChar 
ConvertAttempt CWchar CShort 
ConvertAttempt CWchar CUShort 
ConvertAttempt CWchar CInt 
ConvertAttempt CWchar CUInt 
ConvertAttempt CWchar CLong 
ConvertAttempt CWchar CULong 
ConvertAttempt CWchar CLLong 
ConvertAttempt CWchar CULLong 
ConvertAttempt CWchar CSize 
ConvertAttempt CTime Double 
ConvertAttempt CTime Int 
ConvertAttempt CTime Integer 
ConvertAttempt CTime ClockTime 
ConvertAttempt CTime CalendarTime 
ConvertAttempt CTime ZonedTime 
ConvertAttempt CTime POSIXTime 
ConvertAttempt CTime UTCTime 
ConvertAttempt ByteString Bool 
ConvertAttempt ByteString Int 
ConvertAttempt ByteString Rational 
ConvertAttempt ByteString String 
ConvertAttempt ByteString ByteString 
ConvertAttempt ByteString Text 
ConvertAttempt ByteString Text 
ConvertAttempt ByteString Day 
ConvertAttempt ByteString Bool 
ConvertAttempt ByteString Int 
ConvertAttempt ByteString Rational 
ConvertAttempt ByteString String 
ConvertAttempt ByteString ByteString 
ConvertAttempt ByteString Text 
ConvertAttempt ByteString Text 
ConvertAttempt ByteString Day 
ConvertAttempt ClockTime Integer 
ConvertAttempt ClockTime CTime 
ConvertAttempt ClockTime CalendarTime 
ConvertAttempt ClockTime ZonedTime 
ConvertAttempt ClockTime POSIXTime 
ConvertAttempt ClockTime UTCTime 
ConvertAttempt CalendarTime CTime 
ConvertAttempt CalendarTime ClockTime 
ConvertAttempt CalendarTime ZonedTime 
ConvertAttempt CalendarTime POSIXTime 
ConvertAttempt CalendarTime UTCTime 
ConvertAttempt TimeDiff Double 
ConvertAttempt TimeDiff Integer 
ConvertAttempt TimeDiff Rational 
ConvertAttempt TimeDiff NominalDiffTime 
ConvertAttempt Text Bool 
ConvertAttempt Text Int 
ConvertAttempt Text Rational 
ConvertAttempt Text String 
ConvertAttempt Text ByteString 
ConvertAttempt Text ByteString 
ConvertAttempt Text Text 
ConvertAttempt Text Day 
ConvertAttempt Text Bool 
ConvertAttempt Text Int 
ConvertAttempt Text Rational 
ConvertAttempt Text String 
ConvertAttempt Text ByteString 
ConvertAttempt Text ByteString 
ConvertAttempt Text Text 
ConvertAttempt Text Day 
ConvertAttempt ZonedTime CTime 
ConvertAttempt ZonedTime ClockTime 
ConvertAttempt ZonedTime CalendarTime 
ConvertAttempt ZonedTime POSIXTime 
ConvertAttempt ZonedTime UTCTime 
ConvertAttempt POSIXTime Double 
ConvertAttempt POSIXTime Int 
ConvertAttempt POSIXTime Integer 
ConvertAttempt POSIXTime Rational 
ConvertAttempt POSIXTime CTime 
ConvertAttempt POSIXTime ClockTime 
ConvertAttempt POSIXTime CalendarTime 
ConvertAttempt POSIXTime ZonedTime 
ConvertAttempt POSIXTime UTCTime 
ConvertAttempt UTCTime Double 
ConvertAttempt UTCTime Int 
ConvertAttempt UTCTime Integer 
ConvertAttempt UTCTime Rational 
ConvertAttempt UTCTime CTime 
ConvertAttempt UTCTime ClockTime 
ConvertAttempt UTCTime CalendarTime 
ConvertAttempt UTCTime ZonedTime 
ConvertAttempt UTCTime POSIXTime 
ConvertAttempt NominalDiffTime TimeDiff 
ConvertAttempt Day String 
ConvertAttempt Day ByteString 
ConvertAttempt Day ByteString 
ConvertAttempt Day Text 
ConvertAttempt Day Text 
ConvertAttempt [Char] Bool 
ConvertAttempt [Char] Int 
ConvertAttempt [Char] Integer 
ConvertAttempt [Char] Rational 
ConvertAttempt [Char] Day 
Ord k => ConvertAttempt [(k, a)] (Map k a) 
ConvertAttempt (Map k a) [(k, a)] 

failure :: Failure e f => forall v. e -> f v

class ConvertSuccess a b whereSource

A typeclass that represents something that guarantees a successful conversion. A ConvertSuccess a b instance represents an a that can be converted to a b.


convertSuccess :: a -> bSource

Convert a to b.


ConvertSuccess Bool ByteString 
ConvertSuccess Bool ByteString 
ConvertSuccess Bool Text 
ConvertSuccess Bool Text 
ConvertSuccess Char Integer 
ConvertSuccess Double Float 
ConvertSuccess Double Integer 
ConvertSuccess Double Rational 
ConvertSuccess Double CFloat 
ConvertSuccess Double CDouble 
ConvertSuccess Double CTime 
ConvertSuccess Double TimeDiff 
ConvertSuccess Double POSIXTime 
ConvertSuccess Double UTCTime 
ConvertSuccess Float Double 
ConvertSuccess Float Integer 
ConvertSuccess Float Rational 
ConvertSuccess Float CFloat 
ConvertSuccess Float CDouble 
ConvertSuccess Int Double 
ConvertSuccess Int Float 
ConvertSuccess Int Integer 
ConvertSuccess Int Rational 
ConvertSuccess Int CFloat 
ConvertSuccess Int CDouble 
ConvertSuccess Int CTime 
ConvertSuccess Int ByteString 
ConvertSuccess Int ByteString 
ConvertSuccess Int Text 
ConvertSuccess Int Text 
ConvertSuccess Int POSIXTime 
ConvertSuccess Int UTCTime 
ConvertSuccess Int8 Double 
ConvertSuccess Int8 Float 
ConvertSuccess Int8 Integer 
ConvertSuccess Int8 Rational 
ConvertSuccess Int8 CFloat 
ConvertSuccess Int8 CDouble 
ConvertSuccess Int16 Double 
ConvertSuccess Int16 Float 
ConvertSuccess Int16 Integer 
ConvertSuccess Int16 Rational 
ConvertSuccess Int16 CFloat 
ConvertSuccess Int16 CDouble 
ConvertSuccess Int32 Double 
ConvertSuccess Int32 Float 
ConvertSuccess Int32 Integer 
ConvertSuccess Int32 Rational 
ConvertSuccess Int32 CFloat 
ConvertSuccess Int32 CDouble 
ConvertSuccess Int64 Double 
ConvertSuccess Int64 Float 
ConvertSuccess Int64 Integer 
ConvertSuccess Int64 Rational 
ConvertSuccess Int64 CFloat 
ConvertSuccess Int64 CDouble 
ConvertSuccess Integer Double 
ConvertSuccess Integer Float 
ConvertSuccess Integer Rational 
ConvertSuccess Integer CFloat 
ConvertSuccess Integer CDouble 
ConvertSuccess Integer CTime 
ConvertSuccess Integer ClockTime 
ConvertSuccess Integer TimeDiff 
ConvertSuccess Integer POSIXTime 
ConvertSuccess Integer UTCTime 
ConvertSuccess Rational Double 
ConvertSuccess Rational Float 
ConvertSuccess Rational Integer 
ConvertSuccess Rational CFloat 
ConvertSuccess Rational CDouble 
ConvertSuccess Rational ByteString 
ConvertSuccess Rational ByteString 
ConvertSuccess Rational Text 
ConvertSuccess Rational Text 
ConvertSuccess Rational POSIXTime 
ConvertSuccess Rational UTCTime 
ConvertSuccess Word Double 
ConvertSuccess Word Float 
ConvertSuccess Word Integer 
ConvertSuccess Word Rational 
ConvertSuccess Word CFloat 
ConvertSuccess Word CDouble 
ConvertSuccess Word8 Double 
ConvertSuccess Word8 Float 
ConvertSuccess Word8 Integer 
ConvertSuccess Word8 Rational 
ConvertSuccess Word8 CFloat 
ConvertSuccess Word8 CDouble 
ConvertSuccess Word16 Double 
ConvertSuccess Word16 Float 
ConvertSuccess Word16 Integer 
ConvertSuccess Word16 Rational 
ConvertSuccess Word16 CFloat 
ConvertSuccess Word16 CDouble 
ConvertSuccess Word32 Double 
ConvertSuccess Word32 Float 
ConvertSuccess Word32 Integer 
ConvertSuccess Word32 Rational 
ConvertSuccess Word32 CFloat 
ConvertSuccess Word32 CDouble 
ConvertSuccess Word64 Double 
ConvertSuccess Word64 Float 
ConvertSuccess Word64 Integer 
ConvertSuccess Word64 Rational 
ConvertSuccess Word64 CFloat 
ConvertSuccess Word64 CDouble 
ConvertSuccess a a

Any type can be converted to itself.

ConvertSuccess CChar Integer 
ConvertSuccess CSChar Integer 
ConvertSuccess CUChar Integer 
ConvertSuccess CShort Integer 
ConvertSuccess CUShort Integer 
ConvertSuccess CInt Integer 
ConvertSuccess CUInt Integer 
ConvertSuccess CLong Integer 
ConvertSuccess CULong Integer 
ConvertSuccess CLLong Integer 
ConvertSuccess CULLong Integer 
ConvertSuccess CFloat Double 
ConvertSuccess CFloat Float 
ConvertSuccess CFloat Integer 
ConvertSuccess CFloat Rational 
ConvertSuccess CFloat CDouble 
ConvertSuccess CDouble Double 
ConvertSuccess CDouble Float 
ConvertSuccess CDouble Integer 
ConvertSuccess CDouble Rational 
ConvertSuccess CDouble CFloat 
ConvertSuccess CSize Integer 
ConvertSuccess CWchar Integer 
ConvertSuccess CTime Double 
ConvertSuccess CTime Integer 
ConvertSuccess CTime ClockTime 
ConvertSuccess CTime CalendarTime 
ConvertSuccess CTime ZonedTime 
ConvertSuccess CTime POSIXTime 
ConvertSuccess CTime UTCTime 
ConvertSuccess ByteString ByteString 
ConvertSuccess ByteString Text 
ConvertSuccess ByteString Text 
ConvertSuccess ByteString ByteString 
ConvertSuccess ByteString Text 
ConvertSuccess ByteString Text 
ConvertSuccess ClockTime Integer 
ConvertSuccess ClockTime CTime 
ConvertSuccess ClockTime CalendarTime 
ConvertSuccess ClockTime ZonedTime 
ConvertSuccess ClockTime POSIXTime 
ConvertSuccess ClockTime UTCTime 
ConvertSuccess CalendarTime CTime 
ConvertSuccess CalendarTime ClockTime 
ConvertSuccess CalendarTime ZonedTime 
ConvertSuccess CalendarTime POSIXTime 
ConvertSuccess CalendarTime UTCTime 
ConvertSuccess TimeDiff Double 
ConvertSuccess TimeDiff Integer 
ConvertSuccess TimeDiff Rational 
ConvertSuccess TimeDiff NominalDiffTime 
ConvertSuccess Text ByteString 
ConvertSuccess Text ByteString 
ConvertSuccess Text Text 
ConvertSuccess Text ByteString 
ConvertSuccess Text ByteString 
ConvertSuccess Text Text 
ConvertSuccess ZonedTime CTime 
ConvertSuccess ZonedTime ClockTime 
ConvertSuccess ZonedTime CalendarTime 
ConvertSuccess ZonedTime POSIXTime 
ConvertSuccess ZonedTime UTCTime 
ConvertSuccess POSIXTime Double 
ConvertSuccess POSIXTime Integer 
ConvertSuccess POSIXTime Rational 
ConvertSuccess POSIXTime CTime 
ConvertSuccess POSIXTime ClockTime 
ConvertSuccess POSIXTime CalendarTime 
ConvertSuccess POSIXTime ZonedTime 
ConvertSuccess POSIXTime UTCTime 
ConvertSuccess UTCTime Double 
ConvertSuccess UTCTime Integer 
ConvertSuccess UTCTime Rational 
ConvertSuccess UTCTime CTime 
ConvertSuccess UTCTime ClockTime 
ConvertSuccess UTCTime CalendarTime 
ConvertSuccess UTCTime ZonedTime 
ConvertSuccess UTCTime POSIXTime 
ConvertSuccess NominalDiffTime TimeDiff 
ConvertSuccess Day ByteString 
ConvertSuccess Day ByteString 
ConvertSuccess Day Text 
ConvertSuccess Day Text 
ConvertSuccess Bool [Char] 
ConvertSuccess Int [Char] 
ConvertSuccess Integer [Char] 
ConvertSuccess Rational [Char] 
ConvertSuccess ByteString [Char] 
ConvertSuccess ByteString [Char] 
ConvertSuccess Text [Char] 
ConvertSuccess Text [Char] 
ConvertSuccess Day [Char] 
ConvertSuccess [Char] ByteString 
ConvertSuccess [Char] ByteString 
ConvertSuccess [Char] Text 
ConvertSuccess [Char] Text 
Ord k => ConvertSuccess [(k, a)] (Map k a) 
ConvertSuccess (Map k a) [(k, a)] 

cs :: ConvertSuccess x y => x -> ySource

A convenience synonym for convertSuccess

ca :: ConvertAttempt x y => x -> Attempt ySource

A convenience synonym for convertAttempt

convertUnsafe :: ConvertAttempt a b => a -> bSource

Convert from one type of data to another. Raises an exception if there is an error with the conversion. For a function that does not raise an exception in that case, see convertAttempt.

deriveAttempts :: [(Q Type, Q Type)] -> Q [Dec]Source

Template Haskell to derive ConvertAttempt instances from the corresponding ConvertSuccess instances.