hasmin-1.0.2.1: 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 # 
Instance details

Defined in Hasmin.Class

ToText Word8 Source # 
Instance details

Defined in Hasmin.Class

ToText Text Source # 
Instance details

Defined in Hasmin.Class

ToText RSKeyword Source # 
Instance details

Defined in Hasmin.Types.RepeatStyle

ToText RepeatStyle Source # 
Instance details

Defined in Hasmin.Types.RepeatStyle

ToText StringType Source # 
Instance details

Defined in Hasmin.Types.String

ToText Percentage Source # 
Instance details

Defined in Hasmin.Types.Numeric

ToText Alphavalue Source # 
Instance details

Defined in Hasmin.Types.Numeric

ToText Number Source # 
Instance details

Defined in Hasmin.Types.Numeric

ToText StepPosition Source # 
Instance details

Defined in Hasmin.Types.TimingFunction

ToText TimingFunction Source # 
Instance details

Defined in Hasmin.Types.TimingFunction

ToText ResolutionUnit Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText FrequencyUnit Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText TimeUnit Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText AngleUnit Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText LengthUnit Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText Resolution Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText Frequency Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText Time Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText Angle Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText Length Source # 
Instance details

Defined in Hasmin.Types.Dimension

ToText TransformFunction Source # 
Instance details

Defined in Hasmin.Types.TransformFunction

ToText Position Source # 
Instance details

Defined in Hasmin.Types.Position

ToText PosKeyword Source # 
Instance details

Defined in Hasmin.Types.Position

ToText BgSize Source # 
Instance details

Defined in Hasmin.Types.BgSize

ToText Auto Source # 
Instance details

Defined in Hasmin.Types.BgSize

ToText Color Source # 
Instance details

Defined in Hasmin.Types.Color

ToText FilterFunction Source # 
Instance details

Defined in Hasmin.Types.FilterFunction

ToText BorderRadius Source # 
Instance details

Defined in Hasmin.Types.BorderRadius

ToText FillRule Source # 
Instance details

Defined in Hasmin.Types.BasicShape

ToText ShapeRadius Source # 
Instance details

Defined in Hasmin.Types.BasicShape

ToText BasicShape Source # 
Instance details

Defined in Hasmin.Types.BasicShape

ToText Separator Source # 
Instance details

Defined in Hasmin.Types.Value

ToText Values Source # 
Instance details

Defined in Hasmin.Types.Value

ToText Url Source # 
Instance details

Defined in Hasmin.Types.Value

ToText TextV Source # 
Instance details

Defined in Hasmin.Types.Value

ToText Value Source # 
Instance details

Defined in Hasmin.Types.Value

ToText Declaration Source # 
Instance details

Defined in Hasmin.Types.Declaration

ToText SupportsCondInParens Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

ToText SupportsCondition Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

ToText Rule Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

ToText KeyframeBlock Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

ToText KeyframeSelector Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

ToText Expression Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

ToText MediaQuery Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

(ToText a, ToText b) => ToText (Either a b) Source # 
Instance details

Defined in Hasmin.Class

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 # 
Instance details

Defined in Hasmin.Types.RepeatStyle

Minifiable StringType Source # 
Instance details

Defined in Hasmin.Types.String

Minifiable TimingFunction Source # 
Instance details

Defined in Hasmin.Types.TimingFunction

Minifiable Resolution Source # 
Instance details

Defined in Hasmin.Types.Dimension

Minifiable Frequency Source # 
Instance details

Defined in Hasmin.Types.Dimension

Minifiable Time Source # 
Instance details

Defined in Hasmin.Types.Dimension

Minifiable Angle Source # 
Instance details

Defined in Hasmin.Types.Dimension

Minifiable Length Source # 
Instance details

Defined in Hasmin.Types.Dimension

Minifiable TransformFunction Source # 
Instance details

Defined in Hasmin.Types.TransformFunction

Minifiable Position Source # 
Instance details

Defined in Hasmin.Types.Position

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).

Instance details

Defined in Hasmin.Types.BgSize

Minifiable Color Source # 
Instance details

Defined in Hasmin.Types.Color

Minifiable FilterFunction Source # 
Instance details

Defined in Hasmin.Types.FilterFunction

Minifiable BorderRadius Source # 
Instance details

Defined in Hasmin.Types.BorderRadius

Minifiable BasicShape Source # 
Instance details

Defined in Hasmin.Types.BasicShape

Minifiable Values Source # 
Instance details

Defined in Hasmin.Types.Value

Minifiable Url Source # 
Instance details

Defined in Hasmin.Types.Value

Minifiable Value Source # 
Instance details

Defined in Hasmin.Types.Value

Minifiable Declaration Source # 
Instance details

Defined in Hasmin.Types.Declaration

Minifiable SupportsCondInParens Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Minifiable SupportsCondition Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Minifiable Rule Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Minifiable KeyframeBlock Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Minifiable KeyframeSelector Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Minifiable Expression Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Minifiable MediaQuery Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Minifiable [Rule] Source # 
Instance details

Defined in Hasmin.Types.Stylesheet

Methods

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

Minifiable [MediaQuery] Source # 
Instance details

Defined in Hasmin.Types.Stylesheet