{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE StrictData #-}
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
{ qroMinVersion :: Int
, qroMaxVersion :: Int
, qroErrorLevel :: ErrorLevel
, qroBoostErrorLevel :: Bool
, qroMask :: Maybe Mask
}
defaultQRCodeOptions :: ErrorLevel -> QRCodeOptions
defaultQRCodeOptions e =
QRCodeOptions 1 40 e True Nothing