hasmin-1.0.3: CSS Minifier

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

Hasmin.Types.PercentageLength

Description

 
Synopsis

Documentation

type PercentageLength = Either Percentage Length Source #

CSS length-percentage data type, i.e.: [length | percentage] Though because of the name it would be more intuitive to define: type LengthPercentage = Either Length Percentage, they are inverted here to make use of Either's Functor instance, because it makes no sense to minify a Percentage.

isZero :: (Num a, Eq a) => Either a Length -> Bool Source #