[prev in list] [next in list] [prev in thread] [next in thread] 

List:       haskell
Subject:    [Haskell] ANNOUNCE: buildable-0.1.0.0
From:       Ivan Lazar Miljenovic <ivan.miljenovic () gmail ! com>
Date:       2014-09-08 13:32:52
Message-ID: CA+u6gbzCbfpmcNG7knjuvZivw3hzRBnqmSHujruGQSKZFMOJ_g () mail ! gmail ! com
[Download RAW message or body]

Have you ever wanted to deal with the builders for various data types
in a polymorphic/overloaded fashion?  I'm needing to do so and
couldn't find any existing code that did so, so I decided to rectify
this: http://hackage.haskell.org/package/buildable

As a (very contrived) example:

λ> build ((365 :: Dec Int) <| fromValue (Char7 ' ') |> (365 ::
BigEndian Int16) |> (" omega=𝟂 " :: Utf8 String) |> Utf16 (LE
("hello" :: LT.Text))) :: SB.ByteString
"365 \SOHm omega=\240\157\159\130 h\NULe\NULl\NULl\NULo\NUL"

-- 
Ivan Lazar Miljenovic
Ivan.Miljenovic@gmail.com
http://IvanMiljenovic.wordpress.com
_______________________________________________
Haskell mailing list
Haskell@haskell.org
http://www.haskell.org/mailman/listinfo/haskell

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic