Safe Haskell | None |
---|
- lucius :: QuasiQuoter
- luciusFile :: FilePath -> Q Exp
- luciusFileDebug :: FilePath -> Q Exp
- luciusFileReload :: FilePath -> Q Exp
- luciusRT :: Text -> [(Text, Text)] -> Either String Text
- luciusRT' :: Text -> Either String ([(Text, Text)] -> Either String [CssTop])
- data Css
- type CssUrl url = (url -> [(Text, Text)] -> Text) -> Css
- class ToCss a where
- renderCss :: Css -> Text
- renderCssUrl :: (url -> [(Text, Text)] -> Text) -> CssUrl url -> Text
- data Color = Color Word8 Word8 Word8
- colorRed :: Color
- colorBlack :: Color
- mkSize :: String -> ExpQ
- data AbsoluteUnit
- = Centimeter
- | Inch
- | Millimeter
- | Pica
- | Point
- data AbsoluteSize = AbsoluteSize {}
- absoluteSize :: AbsoluteUnit -> Rational -> AbsoluteSize
- data EmSize = EmSize Rational
- data ExSize = ExSize Rational
- data PercentageSize = PercentageSize {}
- percentageSize :: Rational -> PercentageSize
- data PixelSize = PixelSize Rational
- parseTopLevels :: Parser [TopLevel]
- luciusUsedIdentifiers :: String -> [(Deref, VarType)]
Parsing
>>>
renderCss ([lucius|foo{bar:baz}|] undefined)
"foo{bar:baz}"
luciusFile :: FilePath -> Q ExpSource
luciusFileDebug :: FilePath -> Q ExpSource
luciusFileReload :: FilePath -> Q ExpSource
Runtime
Datatypes
Type class
Rendering
ToCss instances
Color
Size
data AbsoluteUnit Source
Absolute size units.
data AbsoluteSize Source
Not intended for direct use, see mkSize
.
AbsoluteSize | |
|
absoluteSize :: AbsoluteUnit -> Rational -> AbsoluteSizeSource
Constructs AbsoluteSize
. Not intended for direct use, see mkSize
.
data PercentageSize Source
Not intended for direct use, see mkSize
.
PercentageSize | |
|
percentageSize :: Rational -> PercentageSizeSource
Constructs PercentageSize
. Not intended for direct use, see mkSize
.
Internal
parseTopLevels :: Parser [TopLevel]Source
luciusUsedIdentifiers :: String -> [(Deref, VarType)]Source
Determine which identifiers are used by the given template, useful for creating systems like yesod devel.