json-autotype-0.2.0.0: json-autotype.cabal
-- Build information for the package.
name: json-autotype
version: 0.2.0.0
synopsis: Automatic type declaration for JSON input data
description: Generates datatype declarations with Aeson's "FromJSON" instances
from a set of example ".json" files.
.
To get started you need to install the package,
and run "json-autotype" binary on an input ".json" file.
That will generate a new Aeson-based JSON parser.
.
"$ json-autotype input.json -o JSONTypes.hs"
.
Feel free to tweak the by changing types of the fields
- any field type that is instance of "FromJSON" should work.
.
You may immediately test the parser by calling it as a script:
.
"$ runghc JSONTypes.hs input.json"
.
See introduction on <https://github.com/mgajda/json-autotype>
for details.
homepage: https://github.com/mgajda/json-autotype
license: BSD3
license-file: LICENSE
author: Michal J. Gajda
maintainer: mjgajda@gmail.com
copyright: Copyright by Michal J. Gajda '2014
category: Web
build-type: Simple
extra-source-files: README.md changelog
cabal-version: >=1.10
bug-reports: https://github.com/mgajda/json-autotype/issues
executable json-autotype
main-is: GenerateJSONParser.hs
other-modules: Data.Aeson.AutoType.Type
Data.Aeson.AutoType.Util
Data.Aeson.AutoType.Extract
Data.Aeson.AutoType.Format
other-extensions: TemplateHaskell,
ScopedTypeVariables,
OverloadedStrings,
FlexibleInstances,
MultiParamTypeClasses,
DeriveDataTypeable
build-depends: base >=4.3 && <4.8,
lens >=4.1 && <4.2,
bytestring >=0.9 && <0.11,
unordered-containers >=0.2 && <0.3,
containers >=0.3 && <0.6,
vector >=0.9 && <0.11,
aeson >=0.7 && <0.8,
text >=1.1 && <1.2,
hashable >=1.2 && <1.3,
uniplate >=1.6 && <1.7,
MissingH >=1.2 && <1.3,
hflags >=0.4 && <0.5,
filepath >=1.3 && <1.4,
mtl >=2.1 && <2.2
-- hs-source-dirs:
default-language: Haskell2010