{-# OPTIONS_HADDOCK hide #-}
module Codec.BMP.Error
(Error(..))
where
import Codec.BMP.Compression
import Data.Word
data Error
= ErrorBadMagic
{ Error -> Word16
errorMagic :: Word16 }
|
|
| ErrorImageDataTruncated
{ Error -> Int
errorBytesNeeded :: Int
, Error -> Int
errorBytesAvailable :: Int }
| ErrorReservedFieldNotZero
|
{ :: Word32 }
| ErrorUnhandledBitmapHeaderSize
{ :: Word32 }
| ErrorUnhandledPlanesCount
{ Error -> Word16
errorPlanesCount :: Word16 }
| ErrorUnhandledColorDepth
{ Error -> Word16
errorColorDepth :: Word16 }
| ErrorUnhandledCompressionMode
{ Error -> Compression
errorCompression :: Compression}
| ErrorImagePhysicalSizeMismatch
{ :: Word32
, Error -> Word32
errorImageSizeOfBuffer :: Word32 }
| ErrorInternalErrorPleaseReport
deriving (Error -> Error -> Bool
(Error -> Error -> Bool) -> (Error -> Error -> Bool) -> Eq Error
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Error -> Error -> Bool
== :: Error -> Error -> Bool
$c/= :: Error -> Error -> Bool
/= :: Error -> Error -> Bool
Eq, Int -> Error -> ShowS
[Error] -> ShowS
Error -> String
(Int -> Error -> ShowS)
-> (Error -> String) -> ([Error] -> ShowS) -> Show Error
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Error -> ShowS
showsPrec :: Int -> Error -> ShowS
$cshow :: Error -> String
show :: Error -> String
$cshowList :: [Error] -> ShowS
showList :: [Error] -> ShowS
Show)