hasmin-1.0.2: CSS Minifier

Copyright(c) 2017 Cristian Adrián Ontivero
LicenseBSD3
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Hasmin.Class

Description

 

Synopsis

Documentation

class ToText a where Source #

Class for types that can be converted to Text. Used for printing the minified results.

Minimal complete definition

toText | toBuilder

Methods

toText :: a -> Text Source #

toBuilder :: a -> Builder Source #

Instances

ToText Int Source # 
ToText Word8 Source # 
ToText Text Source # 
ToText RSKeyword Source # 
ToText RepeatStyle Source # 
ToText StringType Source # 
ToText Percentage Source # 
ToText Alphavalue Source # 
ToText Number Source # 
ToText StepPosition Source # 
ToText TimingFunction Source # 
ToText ResolutionUnit Source # 
ToText FrequencyUnit Source # 
ToText TimeUnit Source # 
ToText AngleUnit Source # 
ToText LengthUnit Source # 
ToText Resolution Source # 
ToText Frequency Source # 
ToText Time Source # 
ToText Angle Source # 
ToText Length Source # 
ToText TransformFunction Source # 
ToText Position Source # 
ToText PosKeyword Source # 
ToText BgSize Source # 
ToText Auto Source # 
ToText Color Source # 
ToText FilterFunction Source # 
ToText BorderRadius Source # 
ToText FillRule Source # 
ToText ShapeRadius Source # 
ToText BasicShape Source # 
ToText Separator Source # 
ToText Values Source # 
ToText Url Source # 
ToText TextV Source # 
ToText Value Source # 
ToText Declaration Source # 
ToText SupportsCondInParens Source # 
ToText SupportsCondition Source # 
ToText Rule Source # 
ToText KeyframeBlock Source # 
ToText KeyframeSelector Source # 
ToText Expression Source # 
ToText MediaQuery Source # 
(ToText a, ToText b) => ToText (Either a b) Source # 

Methods

toText :: Either a b -> Text Source #

toBuilder :: Either a b -> Builder Source #

class Minifiable a where Source #

Class for types that can be minified

Minimal complete definition

minify

Methods

minify :: a -> Reader Config a Source #

Instances

Minifiable RepeatStyle Source # 
Minifiable StringType Source # 
Minifiable TimingFunction Source # 
Minifiable Resolution Source # 
Minifiable Frequency Source # 
Minifiable Time Source # 
Minifiable Angle Source # 
Minifiable Length Source # 
Minifiable TransformFunction Source # 
Minifiable Position Source # 
Minifiable BgSize Source #

Minifying a <bg-size> value entails, apart from minifying the individual values, removing any auto value in the second position (if present).

Minifiable Color Source # 
Minifiable FilterFunction Source # 
Minifiable BorderRadius Source # 
Minifiable BasicShape Source # 
Minifiable Values Source # 
Minifiable Url Source # 
Minifiable Value Source # 
Minifiable Declaration Source # 
Minifiable SupportsCondInParens Source # 
Minifiable SupportsCondition Source # 
Minifiable Rule Source # 
Minifiable KeyframeBlock Source # 
Minifiable KeyframeSelector Source # 
Minifiable Expression Source # 
Minifiable MediaQuery Source # 
Minifiable [Rule] Source # 

Methods

minify :: [Rule] -> Reader Config [Rule] Source #

Minifiable [MediaQuery] Source #