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 #

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

Minimal complete definition

toText | toBuilder

Methods

toText :: a -> Text #

toBuilder :: a -> Builder #

Instances

ToText Int # 

Methods

toText :: Int -> Text #

toBuilder :: Int -> Builder #

ToText Word8 # 
ToText Text # 

Methods

toText :: Text -> Text #

toBuilder :: Text -> Builder #

ToText RSKeyword # 
ToText RepeatStyle # 
ToText StringType # 
ToText Percentage # 
ToText Alphavalue # 
ToText Number # 
ToText StepPosition # 
ToText TimingFunction # 
ToText ResolutionUnit # 
ToText FrequencyUnit # 
ToText TimeUnit # 
ToText AngleUnit # 
ToText LengthUnit # 
ToText Resolution # 
ToText Frequency # 
ToText Time # 

Methods

toText :: Time -> Text #

toBuilder :: Time -> Builder #

ToText Angle # 
ToText Length # 
ToText TransformFunction # 
ToText Position # 
ToText PosKeyword # 
ToText BgSize # 
ToText Auto # 

Methods

toText :: Auto -> Text #

toBuilder :: Auto -> Builder #

ToText Color # 
ToText FilterFunction # 
ToText BorderRadius # 
ToText FillRule # 
ToText ShapeRadius # 
ToText BasicShape # 
ToText Separator # 
ToText Values # 
ToText Url # 

Methods

toText :: Url -> Text #

toBuilder :: Url -> Builder #

ToText TextV # 
ToText Value # 
ToText Declaration # 
ToText SupportsCondInParens # 
ToText SupportsCondition # 
ToText Rule # 

Methods

toText :: Rule -> Text #

toBuilder :: Rule -> Builder #

ToText KeyframeBlock # 
ToText KeyframeSelector # 
ToText Expression # 
ToText MediaQuery # 
(ToText a, ToText b) => ToText (Either a b) # 

Methods

toText :: Either a b -> Text #

toBuilder :: Either a b -> Builder #

class Minifiable a where #

Class for types that can be minified

Minimal complete definition

minify

Methods

minify :: a -> Reader Config a #

Instances

Minifiable RepeatStyle # 
Minifiable StringType # 
Minifiable TimingFunction # 
Minifiable Resolution # 
Minifiable Frequency # 
Minifiable Time # 

Methods

minify :: Time -> Reader Config Time #

Minifiable Angle # 
Minifiable Length # 
Minifiable TransformFunction # 
Minifiable Position # 
Minifiable BgSize #

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

Minifiable Color # 
Minifiable FilterFunction # 
Minifiable BorderRadius # 
Minifiable BasicShape # 
Minifiable Values # 
Minifiable Url # 

Methods

minify :: Url -> Reader Config Url #

Minifiable Value # 
Minifiable Declaration # 
Minifiable SupportsCondInParens # 
Minifiable SupportsCondition # 
Minifiable Rule # 

Methods

minify :: Rule -> Reader Config Rule #

Minifiable KeyframeBlock # 
Minifiable KeyframeSelector # 
Minifiable Expression # 
Minifiable MediaQuery # 
Minifiable [Rule] # 

Methods

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

Minifiable [MediaQuery] #