Meta tags:
Headings (most frequently used words):
aeson, deriving, type, driven, generic, instance, customisation, modules, downloads, readme, for, 10, how, it, works, previous, studies, maintainer, corner,
Text of the page (most frequently used words):
aeson (16), #deriving (14), type (11), package (10), customjson (9), str (9), user (8), aesonoptions (7), ghc (6), the (6), fieldlabelmodifier (6), instance (5), and (4), derivingvia (4), level (4), data (4), where (4), for (4), stripprefix (4), cameltosnake (4), generic (4), hackage (3), json (3), driven (3), tojson (3), fromjson (3), using (3), tolower (3), can (3), name (3), newtype (3), omitnothingfields (3), wrapper (3), import (3), testdata (3), with (3), com (3), cabal (2), some (2), stringmodifier (2), getstringmodifier (2), you (2), class (2), phantom (2), parameter (2), option (2), stripsuffix (2), stock (2), string (2), via (2), alice (2), bob (2), xyz (2), this (2), provides (2), description (2), readme (2), last (2), 2024 (2), log (2), rating (2), downloads (2), details (2), dependencies (2), git (2), https (2), github (2), fumieval (2), source (2), generics (2), fumiakikinoshita (2), maintainer (2), fumiaki (2), kinoshita (2), copyright (2), maintainers (2), browse (2), instances (2), customisation (2), produced, strip, prefices, from, representation, safe, derivation, hacks, previous, studies, use, any, static, function, modification, adding, uncustomjson, options, true, has, builder, primitives, are, reduced, one, how, works, vanilla, snake, suffixedsnake, suffixed, prefixedsnake, prefixed, contains, aliases, even, less, boilerplates, language, datakinds, derivegeneric, qualified, bytestring, lazy, char8, userid, int, username, userapitoken, maybe, nothing, just, main, putstrln, encode, api_token, customise, methods, interface, which, synergises, well, back, docs, available, success, reported, all, reports, build, status, your, votes, yet, estimated, bayesian, average, 20822, total, days, direct, indirect, reverse, arch, fedora, ltshaskell, stackage, distributions, head, clone, repo, bug, tracker, category, 23t02, 38z, uploaded, fumiexcel, gmail, author, 2020, bsd, clause, license, tested, base, changelog, change, info, versions, rss, candidates, edit, information, trustees, corner, included, tar, quick, jump, index, modules, skip, customisable, rendered, original, report, vulnerability, propose, tags, library, bsd3, accounts, upload, what, new, search,
Text of the page (random words):
deriving aeson type driven generic aeson instance customisation hackage package search browse what s new upload user accounts deriving aeson type driven generic aeson instance customisation bsd3 generics json library propose tags report a vulnerability this package provides a newtype wrapper with fromjson tojson instances customisable via a phantom type parameter the instances can be rendered to the original type using derivingvia skip to readme modules index quick jump deriving deriving aeson deriving aeson stock downloads deriving aeson 0 2 10 tar gz browse cabal source package package description as included in the package maintainer s corner package maintainers fumiakikinoshita for package maintainers and hackage trustees edit package information candidates 0 0 1 0 1 2 0 2 3 0 2 4 0 2 7 0 2 8 0 2 9 versions rss 0 0 1 0 1 1 0 1 2 0 2 0 2 1 0 2 2 0 2 3 0 2 4 0 2 5 0 2 6 0 2 6 1 0 2 7 0 2 8 0 2 9 0 2 10 info change log changelog md dependencies aeson 1 4 7 0 2 3 base 4 12 5 details tested with ghc 8 6 5 ghc 8 8 3 ghc 8 10 7 ghc 9 2 5 ghc 9 4 4 license bsd 3 clause copyright copyright c 2020 fumiaki kinoshita author fumiaki kinoshita maintainer fumiexcel gmail com uploaded by fumiakikinoshita at 2024 11 23t02 29 38z category json generics bug tracker https github com fumieval deriving aeson source repo head git clone https github com fumieval deriving aeson git distributions arch 0 2 10 fedora 0 2 10 ltshaskell 0 2 10 stackage 0 2 10 reverse dependencies 19 direct 56 indirect details downloads 20822 total 91 in the last 30 days rating no votes yet estimated by bayesian average your rating λ λ λ status docs available build log last success reported on 2024 11 23 all 1 reports readme for deriving aeson 0 2 10 back to package description deriving aeson this package provides a newtype wrapper where you can customise aeson s generic methods using a type level interface which synergises well with derivingvia language derivingvia datakinds derivegeneric import data aeson import deriving aeson import qualified data bytestring lazy char8 as bl data user user userid int username string userapitoken maybe string deriving generic deriving fromjson tojson via customjson omitnothingfields fieldlabelmodifier stripprefix user cameltosnake user testdata user testdata user 42 alice nothing user 43 bob just xyz main bl putstrln encode testdata name alice id 42 api_token xyz name bob id 43 deriving aeson stock contains some aliases for even less boilerplates prefixed str customjson fieldlabelmodifier stripprefix str prefixedsnake str customjson fieldlabelmodifier stripprefix str cameltosnake suffixed str customjson fieldlabelmodifier stripsuffix str suffixedsnake str customjson fieldlabelmodifier stripsuffix str cameltosnake snake customjson fieldlabelmodifier stripprefix str cameltosnake vanilla customjson how it works the wrapper type has a phantom type parameter t a type level builder of an option type level primitives are reduced to one option by the aesonoptions class newtype customjson t a customjson uncustomjson a class aesonoptions xs where aesonoptions options instance aesonoptions xs aesonoptions omitnothingfields xs where aesonoptions aesonoptions xs omitnothingfields true you can use any static function for name modification by adding an instance of stringmodifier data tolower instance stringmodifier tolower where getstringmodifier getstringmodifier c xs tolower c xs previous studies type driven safe derivation of tojson and fromjson using derivingvia in ghc 8 6 and some type level hacks strip prefices from json representation produced by hackage and cabal 3 16 1 0
|