Safe Haskell | None |
---|---|
Language | Haskell2010 |
Compilation of sass source or sass files.
- compileFile :: FilePath -> SassOptions -> IO (Either SassError String)
- compileString :: String -> SassOptions -> IO (Either SassError String)
- data SassError
- errorJson :: SassError -> IO String
- errorText :: SassError -> IO String
- errorMessage :: SassError -> IO String
- errorFile :: SassError -> IO String
- errorSource :: SassError -> IO String
- errorLine :: SassError -> IO Int
- errorColumn :: SassError -> IO Int
Compilation
:: FilePath | Path to the file. |
-> SassOptions | Compilation options. |
-> IO (Either SassError String) | Error or output string. |
Compiles file using specified options.
:: String | String to compile. |
-> SassOptions | Compilation options. |
-> IO (Either SassError String) | Error or output string. |
Compiles raw Sass content using specified options.
Error reporting
errorMessage :: SassError -> IO String Source
Loads user-friendly error message.
errorSource :: SassError -> IO String Source
Loads error source.
errorColumn :: SassError -> IO Int Source
Loads line in the file where problem occured.