cabal-version: 1.12
-- This file has been generated from package.yaml by hpack version 0.34.7.
--
-- see: https://github.com/sol/hpack
name: aeson-modern-tojson
version: 0.2.0.0
synopsis: Provide a handy way for derving ToJSON proprely.
description: Provide a newtype to be used with DerivingVia to correctly derive <https://hackage.haskell.org/package/aeson-2.1.0.0/docs/Data-Aeson.html#g:7 ToJSON>.
.
As simple as:
.
.
@
data W = W Int Int
deriving stock (Generic)
deriving (ToJSON) via (GenericallyToJSONToEncoding W)
@
category: Text, Web, JSON
homepage: https://github.com/blackheaven/aeson-modern-tojson#readme
bug-reports: https://github.com/blackheaven/aeson-modern-tojson/issues
author: Gautier DI FOLCO
maintainer: gautier.difolco@gmail.com
copyright: Gautier DI FOLCO
license: ISC
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
LICENSE
source-repository head
type: git
location: https://github.com/blackheaven/aeson-modern-tojson
library
exposed-modules:
Data.Aeson.ToJSON.Deriving
other-modules:
Paths_aeson_modern_tojson
hs-source-dirs:
src
build-depends:
aeson >=1.0.0.0 && <3
, base >=4.7 && <5
default-language: Haskell2010
test-suite aeson-modern-tojson-test
type: exitcode-stdio-1.0
main-is: Data/Aeson/ToJSON/DerivingSpec.hs
other-modules:
Paths_aeson_modern_tojson
hs-source-dirs:
test
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall -Wcompat -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
build-depends:
aeson >=1.0.0.0 && <3
, aeson-modern-tojson
, base >=4.7 && <5
, inspection-testing >=0.4.4.0 && <1.0
default-language: Haskell2010