json-autotype-3.0.1: Automatic type declaration for JSON input data

Safe HaskellNone
LanguageHaskell2010

Data.Aeson.AutoType.Split

Description

Formatting type declarations and class instances for inferred types.

Synopsis

Documentation

splitTypeByLabel :: Text -> Type -> Map Text Type Source #

Splits initial type with a given label, into a mapping of object type names and object type structures.

unificationCandidates :: HashMap t Type -> [[t]] Source #

For a given splitted types, it returns candidates for extra unifications.

unifyCandidates :: [[Text]] -> Map Text Type -> Map Text Type Source #

Unifies candidates on a give input list.

toposort :: Map Text Type -> [(Text, Type)] Source #

Topological sorting of splitted types so that it is accepted declaration order.