Hets - the Heterogeneous Tool Set

Copyright(c) Christian Maeder, DFKI GmbH 2014
LicenseGPLv2 or higher, see LICENSE.txt
MaintainerChristian.Maeder@dfki.de
Stabilityprovisional
Portabilitynon-portable
Safe HaskellSafe-Inferred

Common.Json

Description

inspired by Yuriy Iskra's json2-types hackage package

Documentation

data Json

Instances

mkJNum :: Real b => b -> Json

mkJArr :: [Json] -> Json

mkJObj :: [JPair] -> Json

type JPair = (String, Json)

toJson :: Pretty a => GlobalAnnos -> a -> Json

class ToJson a where

Methods

asJson :: a -> Json

Instances