Ertugrul Söylemez | 20 Jun 17:22 2013
Picon

Ann: Cascading 0.1.0, DSL for Cascading Style Sheets

Hi there,

I've just released the first version of [cascading], library for
writing/generating Cascading Style Sheets (CSS) in Haskell.  The API
design is inspired by many other projects, including blaze-html, HSP and
Yesod's Lucius.

[cascading]: <http://hackage.haskell.org/package/cascading>

Features:

  * Style sheets are monoids and can be MonadWritered.

  * All non-appendix properties of CSS level 2.1 are implemented and
    exposed through a type-safe API.  It's easy enough to set properties
    for which no type-safe API exists.  See the example below.

  * Easy to integrate into all monadic web frameworks, easy to
    interleave stylesheets with framework operations.

  * Builtin support for web-routes.

  * Color space awareness through the colour library.

  * Fully encoding-aware with one caveat:  If you bypass PropValue and
    use ByteStrings as property values directly, then UTF-8 is assumed.

Example:

    stylesheet :: (MonadWriter CSS m) => m ()
(Continue reading)

Ertugrul Söylemez | 20 Jun 17:29 2013
Picon

Re: Ann: Cascading 0.1.0, DSL for Cascading Style Sheets

Ertugrul Söylemez <es <at> ertes.de> wrote:

>                 vendors $ "borderRadius" $= ("3mm" :: PropValue)

Typo: vendors $ "border-radius" $= ("3mm" :: PropValue)

Greets,
Ertugrul

--

-- 
Not to be or to be and (not to be or to be and (not to be or to be and
(not to be or to be and ... that is the list monad.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Gmane