Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
- data Sass = Sass {
- snapletFilePath :: FilePath
- compileMode :: CompileMode
- style :: Style
- sourcemap :: Bool
- verbose :: Bool
- data CompileMode
- data Style
- = Nested
- | Compact
- | Compressed
- | Expanded
- srcDir :: Sass -> FilePath
- destDir :: Sass -> FilePath
- createDirUnlessExists :: FilePath -> IO ()
- compileModeFromString :: String -> Maybe CompileMode
- styleFromString :: String -> Maybe Style
- verbosePut :: Sass -> String -> IO ()
Sass types
Configuration
Sass | |
|
data CompileMode Source
Compile on every request or when Snap starts.
helper functions
createDirUnlessExists :: FilePath -> IO () Source
Create given directory unless it exists
compileModeFromString :: String -> Maybe CompileMode Source
Lookup CompileMode for string
styleFromString :: String -> Maybe Style Source
Lookup Style for string
verbosePut :: Sass -> String -> IO () Source
Print log messages when the verbose flag is set