The buffer-builder-aeson package
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
- 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.
A very fast BufferBuilder-based JSON encoder for Aeson.
The whole library is a a single orphan instance for Aeson.Value.
import Data.Aeson (object, (.=), Value (..)) import Data.BufferBuilder.Json (encodeJson) import Data.BufferBuilder.Aeson () import qualified Data.ByteString as BS stuff :: Value stuff = Array [ object [ "name" .= ("eggs" :: String) , "price" .= (3.141592 :: Double) ] , object [ "name" .= ("cheese" :: String) , "price" .= (0.57721 :: Double) ] ] main :: IO () main = do BS.putStrLn $ encodeJson stuff
|Versions||0.1.0.1, 0.2.0.0, 0.2.0.3, 0.2.0.3, 0.2.0.4|
|Change log||None available|
|Dependencies||aeson, base (>=4.6 && <4.8), buffer-builder (>=0.2.0.3), bytestring, integer-gmp, scientific, unordered-containers, vector [details]|
|Author||Andy Friesen, Chad Austin|
|Source repository||this: git clone https://github.com/andyfriesen/buffer-builder-aeson(tag 0.2.0.3)|
|Uploaded||Mon Feb 23 05:16:52 UTC 2015 by afriesen|
- buffer-builder-aeson-0.2.0.3.tar.gz [browse] (Cabal source package)
- Package description (included in the package)
For package maintainers and hackage trustees