| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Text.Sass.Functions
Contents
Description
Provides support for user-defined functions, importers and headers.
Synopsis
- type SassFunctionType = SassValue -> IO SassValue
- data SassFunction = SassFunction {}
- data SassImport = SassImport {}
- type SassImporterType = String -> String -> IO [SassImport]
- data SassImporter = SassImporter {}
- type SassHeaderType = String -> IO [SassImport]
- data SassHeader = SassHeader {}
- makeSourceImport :: String -> SassImport
- makePathImport :: String -> String -> SassImport
Functions
type SassFunctionType #
Type of the function that may be used in sass source.
data SassFunction #
Description of the function that may be used in sass source.
Constructors
| SassFunction | |
Fields
| |
Imports and headers
data SassImport #
Represents a sass import - a sass content with additional metadata.
Even though this ADT has four fields, you may just provide either
importPath and importBase and leave loading to the library, or provide
importSource and do not provide importPath nor importBase.
Nevertheless, you are free to provide all of the fields.
Constructors
| SassImport | |
Fields
| |
type SassImporterType #
Arguments
| = String | Path to the import that needs to be loaded. |
| -> String | Absolute path to the importing file. |
| -> IO [SassImport] | Imports. |
Type of the function that acts like an importer.
You may return the empty list in order to tell libsass to handle the import by itself.
data SassImporter #
Description of the importer.
Constructors
| SassImporter | |
Fields
| |
type SassHeaderType #
Arguments
| = String | Absolute path to the file being processed. |
| -> IO [SassImport] | Imports. |
Type of the function that acts like a header.
data SassHeader #
Description of the header.
Constructors
| SassHeader | |
Fields
| |
makeSourceImport :: String -> SassImport #
makeSourceImport s is equivalent to SassImport
Nothing Nothing (Just s) Nothing.
makePathImport :: String -> String -> SassImport #
makePathImport p b is equivalent to SassImport
(Just p) (Just b) Nothing Nothing.