{-# LANGUAGE NoImplicitPrelude #-}
module Codec.QRCode.Data.QRCodeOptions
( QRCodeOptions(..)
, defaultQRCodeOptions
) where
import Codec.QRCode.Base
import Codec.QRCode.Data.ErrorLevel
import Codec.QRCode.Data.Mask
data QRCodeOptions
= QRCodeOptions
{ QRCodeOptions -> Int
qroMinVersion :: !Int
, QRCodeOptions -> Int
qroMaxVersion :: !Int
, QRCodeOptions -> ErrorLevel
qroErrorLevel :: !ErrorLevel
, QRCodeOptions -> Bool
qroBoostErrorLevel :: !Bool
, QRCodeOptions -> Maybe Mask
qroMask :: !(Maybe Mask)
}
defaultQRCodeOptions :: ErrorLevel -> QRCodeOptions
defaultQRCodeOptions :: ErrorLevel -> QRCodeOptions
defaultQRCodeOptions ErrorLevel
e =
Int -> Int -> ErrorLevel -> Bool -> Maybe Mask -> QRCodeOptions
QRCodeOptions Int
1 Int
40 ErrorLevel
e Bool
True Maybe Mask
forall a. Maybe a
Nothing