module Text.Sass.Options
(
SassOptions (..)
, Lib.SassOutputStyle (..)
) where
import qualified Bindings.Libsass as Lib
import Data.Default.Class
import Text.Sass.Functions
data SassOptions = SassOptions {
sassPrecision :: Int
, sassOutputStyle :: Lib.SassOutputStyle
, sassSourceComments :: Bool
, sassSourceMapEmbed :: Bool
, sassSourceMapContents :: Bool
, sassOmitSourceMapUrl :: Bool
, sassIsIndentedSyntax :: Bool
, sassIndent :: String
, sassLinefeed :: String
, sassInputPath :: Maybe FilePath
, sassOutputPath :: Maybe FilePath
, sassPluginPaths :: Maybe [FilePath]
, sassIncludePaths :: Maybe [FilePath]
, sassSourceMapFile :: Maybe FilePath
, sassSourceMapRoot :: Maybe String
, sassFunctions :: Maybe [SassFunction]
, sassHeaders :: Maybe [SassImporter]
, sassImporters :: Maybe [SassImporter]
}
instance Default SassOptions where
def = SassOptions {
sassPrecision = 5
, sassOutputStyle = Lib.SassStyleNested
, sassSourceComments = False
, sassSourceMapEmbed = False
, sassSourceMapContents = False
, sassOmitSourceMapUrl = False
, sassIsIndentedSyntax = False
, sassIndent = " "
, sassLinefeed = "\n"
, sassInputPath = Nothing
, sassOutputPath = Nothing
, sassPluginPaths = Nothing
, sassIncludePaths = Nothing
, sassSourceMapFile = Nothing
, sassSourceMapRoot = Nothing
, sassFunctions = Nothing
, sassHeaders = Nothing
, sassImporters = Nothing
}