Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 -> SassImport
Functions
type SassFunctionType Source #
Type of the function that may be used in sass source.
data SassFunction Source #
Description of the function that may be used in sass source.
SassFunction | |
|
Imports and headers
data SassImport Source #
Represents a sass import - a sass content with additional metadata.
Even though this ADT has four fields, you may just provide either
importPath
and importAbsolutePath
and leave loading to the library, or
provide importSource
and do not provide importAbsolutePath
.
Nevertheless, you are free to provide all of the fields.
SassImport | |
|
type SassImporterType Source #
= 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 Source #
Description of the importer.
SassImporter | |
|
type SassHeaderType Source #
= String | Absolute path to the file being processed. |
-> IO [SassImport] | Imports. |
Type of the function that acts like a header.
data SassHeader Source #
Description of the header.
SassHeader | |
|
makeSourceImport :: String -> SassImport Source #
makeSourceImport
s
is equivalent to SassImport
Nothing Nothing (Just s) Nothing
.
makePathImport :: String -> SassImport Source #
makePathImport
p
is equivalent to SassImport
(Just p) (Just p) Nothing Nothing
.