clay 0.5 → 0.5.1
raw patch · 2 files changed
+6/−5 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- clay.cabal +3/−4
- src/Clay/Font.hs +3/−1
clay.cabal view
@@ -1,5 +1,5 @@ Name: clay-Version: 0.5+Version: 0.5.1 Synopsis: CSS preprocessor as embedded Haskell. Description: Clay is a CSS preprocessor like LESS and Sass, but implemented as an embedded@@ -11,9 +11,8 @@ . The API documentation can be found in the top level module "Clay". .- > 0.4 -> 0.5- > - Generalized the borderRadius function.- > - Fixed some small issues in Dynamic.+ > 0.5 -> 0.5.1+ > - Fixed bug in fontFamily renderer. Author: Sebastiaan Visser Maintainer: Sebastiaan Visser <code@fvisser.nl>
src/Clay/Font.hs view
@@ -118,7 +118,9 @@ ------------------------------------------------------------------------------- fontFamily :: [Text] -> [Text] -> Css-fontFamily a b = key "font-family" (value (Literal <$> a) <> if null b then "" else (", " <> value b))+fontFamily a b = key "font-family" $+ let sep = if null a || null b then "" else ", "+ in value (Literal <$> a) <> sep <> value b sansSerif :: Text sansSerif = "sans-serif"