hsass-0.1.0: Integrating Sass into Haskell applications.

Safe HaskellNone
LanguageHaskell2010

Text.Sass.Compilation

Contents

Description

Compilation of sass source or sass files.

Synopsis

Compilation

compileFile Source

Arguments

:: FilePath

Path to the file.

-> SassOptions

Compilation options.

-> IO (Either SassError String)

Error or output string.

Compiles file using specified options.

compileString Source

Arguments

:: String

String to compile.

-> SassOptions

Compilation options.

-> IO (Either SassError String)

Error or output string.

Compiles raw Sass content using specified options.

Error reporting

data SassError Source

Represents compilation error.

errorJson :: SassError -> IO String Source

Loads information about error as JSON.

errorText :: SassError -> IO String Source

Loads error text.

errorMessage :: SassError -> IO String Source

Loads user-friendly error message.

errorFile :: SassError -> IO String Source

Loads file where problem occured.

errorSource :: SassError -> IO String Source

Loads error source.

errorLine :: SassError -> IO Int Source

Loads line in the file where problem occured.

errorColumn :: SassError -> IO Int Source

Loads line in the file where problem occured.