ANN: text-json-qq - json quasiquatation

18 Jun
2010
18 Jun
'10
7:36 p.m.
Hi, I've just uploaded the first version of text-json-qq (http://hackage.haskell.org/package/text-json-qq). It's a quasiquatation library converting json into Haskell (Text.JSON). You can use it like:
user = [$jsonQQ| {name: "Pelle", age: 34.3, likes: ["mac", "Haskell"] } |]
or you can use Haskell variables with the <<x>>-syntax like:
user = [$jsonQQ| {name: <<name>>, age: <<age>>} |] name = "Pelle" age = 34 :: Integer
It seems to have some performance problems at the moment so I guess I'll have to learn how to profile my code. -- Oscar
5452
Age (days ago)
5452
Last active (days ago)
0 comments
1 participants
participants (1)
-
Oscar Finnsson