| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Hpack.Yaml
Synopsis
- decodeYaml :: FilePath -> IO (Either String ([String], Value))
- decodeYamlWithParseError :: FilePath -> IO (Either ParseException ([String], Value))
- data ParseException
- formatYamlParseError :: FilePath -> ParseException -> String
- formatWarning :: FilePath -> Warning -> String
- class FromValue a where
- data Parser a
- type Result a = Either String (a, [String], [(String, String)])
- decodeValue :: FromValue a => Value -> Result a
- class Generic a
- class GenericDecode f
- genericFromValue :: forall a d m. (Generic a, Rep a ~ D1 d m, Datatype d, GenericDecode (Rep a)) => Value -> Parser a
- data Options = Options {
- optionsRecordSelectorModifier :: String -> String
- genericFromValueWith :: (Generic a, GenericDecode (Rep a)) => Options -> Value -> Parser a
- typeMismatch :: String -> Value -> Parser a
- withObject :: (Object -> Parser a) -> Value -> Parser a
- withText :: (Text -> Parser a) -> Value -> Parser a
- withString :: (String -> Parser a) -> Value -> Parser a
- withArray :: (Array -> Parser a) -> Value -> Parser a
- withNumber :: (Scientific -> Parser a) -> Value -> Parser a
- withBool :: (Bool -> Parser a) -> Value -> Parser a
- parseArray :: (Value -> Parser a) -> Array -> Parser [a]
- traverseObject :: (Value -> Parser a) -> Object -> Parser [(Key, a)]
- (.:) :: FromValue a => Object -> Key -> Parser a
- (.:?) :: FromValue a => Object -> Key -> Parser (Maybe a)
- data Key
- data Value
- type Object = KeyMap Value
- type Array = Vector Value
- newtype Alias (deprecated :: Bool) (alias :: Symbol) a = Alias a
- unAlias :: Alias deprecated alias a -> a
Documentation
NOTE: This module is exposed to allow integration of Hpack into other tools. It is not meant for general use by end users. The following caveats apply:
- The API is undocumented, consult the source instead.
- The exposed types and functions primarily serve Hpack's own needs, not that of a public API. Breaking changes can happen as Hpack evolves.
As an Hpack user you either want to use the hpack executable or a build
tool that supports Hpack (e.g. stack or cabal2nix).
decodeYaml :: FilePath -> IO (Either String ([String], Value)) Source #
decodeYamlWithParseError :: FilePath -> IO (Either ParseException ([String], Value)) Source #
data ParseException #
Instances
| Exception ParseException | |
Defined in Data.Yaml.Internal Methods toException :: ParseException -> SomeException fromException :: SomeException -> Maybe ParseException displayException :: ParseException -> String | |
| Show ParseException | |
Defined in Data.Yaml.Internal Methods showsPrec :: Int -> ParseException -> ShowS show :: ParseException -> String showList :: [ParseException] -> ShowS | |
formatYamlParseError :: FilePath -> ParseException -> String Source #
formatWarning :: FilePath -> Warning -> String Source #
class FromValue a where Source #
Minimal complete definition
Nothing
Methods
Instances
| FromValue BuildType Source # | |
| FromValue Cond Source # | |
| FromValue Language Source # | |
| FromValue Verbatim Source # | |
| FromValue VerbatimValue Source # | |
Defined in Hpack.Config | |
| FromValue Module Source # | |
| FromValue SystemBuildTools Source # | |
Defined in Hpack.Syntax.BuildTools | |
| FromValue Dependencies Source # | |
Defined in Hpack.Syntax.Dependencies | |
| FromValue VersionConstraint Source # | |
Defined in Hpack.Syntax.DependencyVersion | |
| FromValue Text Source # | |
| FromValue String Source # | |
| FromValue Bool Source # | |
| FromValue Int Source # | |
| FromValue a => FromValue (Maybe a) Source # | |
| FromValue a => FromValue [a] Source # | |
| (FromValue a, FromValue b) => FromValue (Either a b) Source # | |
| FromValue a => FromValue (Map String a) Source # | |
| (FromValue a, FromValue b) => FromValue (a, b) Source # | |
Minimal complete definition
from, to
Instances
| Generic CabalSpecVersion | |
Defined in Distribution.CabalSpecVersion Associated Types type Rep CabalSpecVersion :: Type -> Type | |
| Generic License | |
Defined in Distribution.License Associated Types type Rep License :: Type -> Type | |
| Generic ModuleName | |
Defined in Distribution.ModuleName Associated Types type Rep ModuleName :: Type -> Type | |
| Generic PError | |
Defined in Distribution.Parsec.Error Associated Types type Rep PError :: Type -> Type | |
| Generic Position | |
Defined in Distribution.Parsec.Position Associated Types type Rep Position :: Type -> Type | |
| Generic PWarnType | |
Defined in Distribution.Parsec.Warning Associated Types type Rep PWarnType :: Type -> Type | |
| Generic PWarning | |
Defined in Distribution.Parsec.Warning Associated Types type Rep PWarning :: Type -> Type | |
| Generic License | |
Defined in Distribution.SPDX.License Associated Types type Rep License :: Type -> Type | |
| Generic LicenseExceptionId | |
Defined in Distribution.SPDX.LicenseExceptionId Associated Types type Rep LicenseExceptionId :: Type -> Type | |
| Generic LicenseExpression | |
Defined in Distribution.SPDX.LicenseExpression Associated Types type Rep LicenseExpression :: Type -> Type | |
| Generic SimpleLicenseExpression | |
Defined in Distribution.SPDX.LicenseExpression Associated Types type Rep SimpleLicenseExpression :: Type -> Type | |
| Generic LicenseRef | |
Defined in Distribution.SPDX.LicenseReference Associated Types type Rep LicenseRef :: Type -> Type | |
| Generic AbiHash | |
Defined in Distribution.Types.AbiHash Associated Types type Rep AbiHash :: Type -> Type | |
| Generic ComponentId | |
Defined in Distribution.Types.ComponentId Associated Types type Rep ComponentId :: Type -> Type | |
| Generic ComponentName | |
Defined in Distribution.Types.ComponentName Associated Types type Rep ComponentName :: Type -> Type | |
| Generic NotLibComponentName | |
Defined in Distribution.Types.ComponentName Associated Types type Rep NotLibComponentName :: Type -> Type | |
| Generic Dependency | |
Defined in Distribution.Types.Dependency Associated Types type Rep Dependency :: Type -> Type | |
| Generic ExeDependency | |
Defined in Distribution.Types.ExeDependency Associated Types type Rep ExeDependency :: Type -> Type | |
| Generic LegacyExeDependency | |
Defined in Distribution.Types.LegacyExeDependency Associated Types type Rep LegacyExeDependency :: Type -> Type | |
| Generic LibraryName | |
Defined in Distribution.Types.LibraryName Associated Types type Rep LibraryName :: Type -> Type | |
| Generic Module | |
Defined in Distribution.Types.Module Associated Types type Rep Module :: Type -> Type | |
| Generic MungedPackageId | |
Defined in Distribution.Types.MungedPackageId Associated Types type Rep MungedPackageId :: Type -> Type | |
| Generic MungedPackageName | |
Defined in Distribution.Types.MungedPackageName Associated Types type Rep MungedPackageName :: Type -> Type | |
| Generic PackageIdentifier | |
Defined in Distribution.Types.PackageId Associated Types type Rep PackageIdentifier :: Type -> Type | |
| Generic PackageName | |
Defined in Distribution.Types.PackageName Associated Types type Rep PackageName :: Type -> Type | |
| Generic PkgconfigName | |
Defined in Distribution.Types.PkgconfigName Associated Types type Rep PkgconfigName :: Type -> Type | |
| Generic DefUnitId | |
Defined in Distribution.Types.UnitId Associated Types type Rep DefUnitId :: Type -> Type | |
| Generic UnitId | |
Defined in Distribution.Types.UnitId Associated Types type Rep UnitId :: Type -> Type | |
| Generic UnqualComponentName | |
Defined in Distribution.Types.UnqualComponentName Associated Types type Rep UnqualComponentName :: Type -> Type | |
| Generic Version | |
Defined in Distribution.Types.Version Associated Types type Rep Version :: Type -> Type | |
| Generic VersionRange | |
Defined in Distribution.Types.VersionRange.Internal Associated Types type Rep VersionRange :: Type -> Type | |
| Generic ShortText | |
Defined in Distribution.Utils.ShortText Associated Types type Rep ShortText :: Type -> Type | |
| Generic Structure | |
Defined in Distribution.Utils.Structured Associated Types type Rep Structure :: Type -> Type | |
| Generic Value | |
| Generic All | |
Defined in Data.Semigroup.Internal Associated Types type Rep All :: Type -> Type | |
| Generic Any | |
Defined in Data.Semigroup.Internal Associated Types type Rep Any :: Type -> Type | |
| Generic Version | |
Defined in Data.Version Associated Types type Rep Version :: Type -> Type | |
| Generic Void | |
Defined in GHC.Generics Associated Types type Rep Void :: Type -> Type | |
| Generic Fingerprint | |
Defined in GHC.Generics Associated Types type Rep Fingerprint :: Type -> Type | |
| Generic Associativity | |
Defined in GHC.Generics Associated Types type Rep Associativity :: Type -> Type | |
| Generic DecidedStrictness | |
Defined in GHC.Generics Associated Types type Rep DecidedStrictness :: Type -> Type | |
| Generic Fixity | |
Defined in GHC.Generics Associated Types type Rep Fixity :: Type -> Type | |
| Generic SourceStrictness | |
Defined in GHC.Generics Associated Types type Rep SourceStrictness :: Type -> Type | |
| Generic SourceUnpackedness | |
Defined in GHC.Generics Associated Types type Rep SourceUnpackedness :: Type -> Type | |
| Generic ExitCode | |
Defined in GHC.IO.Exception Associated Types type Rep ExitCode :: Type -> Type | |
| Generic CCFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep CCFlags :: Type -> Type | |
| Generic ConcFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep ConcFlags :: Type -> Type | |
| Generic DebugFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep DebugFlags :: Type -> Type | |
| Generic DoCostCentres | |
Defined in GHC.RTS.Flags Associated Types type Rep DoCostCentres :: Type -> Type | |
| Generic DoHeapProfile | |
Defined in GHC.RTS.Flags Associated Types type Rep DoHeapProfile :: Type -> Type | |
| Generic DoTrace | |
Defined in GHC.RTS.Flags Associated Types type Rep DoTrace :: Type -> Type | |
| Generic GCFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep GCFlags :: Type -> Type | |
| Generic GiveGCStats | |
Defined in GHC.RTS.Flags Associated Types type Rep GiveGCStats :: Type -> Type | |
| Generic MiscFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep MiscFlags :: Type -> Type | |
| Generic ParFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep ParFlags :: Type -> Type | |
| Generic ProfFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep ProfFlags :: Type -> Type | |
| Generic RTSFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep RTSFlags :: Type -> Type | |
| Generic TickyFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep TickyFlags :: Type -> Type | |
| Generic TraceFlags | |
Defined in GHC.RTS.Flags Associated Types type Rep TraceFlags :: Type -> Type | |
| Generic SrcLoc | |
Defined in GHC.Generics Associated Types type Rep SrcLoc :: Type -> Type | |
| Generic GCDetails | |
| Generic RTSStats | |
| Generic GeneralCategory | |
Defined in GHC.Generics Associated Types type Rep GeneralCategory :: Type -> Type | |
| Generic OsChar | |
Defined in System.OsString.Internal.Types.Hidden Associated Types type Rep OsChar :: Type -> Type | |
| Generic OsString | |
Defined in System.OsString.Internal.Types.Hidden Associated Types type Rep OsString :: Type -> Type | |
| Generic PosixChar | |
Defined in System.OsString.Internal.Types.Hidden Associated Types type Rep PosixChar :: Type -> Type | |
| Generic PosixString | |
Defined in System.OsString.Internal.Types.Hidden Associated Types type Rep PosixString :: Type -> Type | |
| Generic WindowsChar | |
Defined in System.OsString.Internal.Types.Hidden Associated Types type Rep WindowsChar :: Type -> Type | |
| Generic WindowsString | |
Defined in System.OsString.Internal.Types.Hidden Associated Types type Rep WindowsString :: Type -> Type | |
| Generic ForeignSrcLang | |
Defined in GHC.ForeignSrcLang.Type Associated Types type Rep ForeignSrcLang :: Type -> Type | |
| Generic Extension | |
Defined in GHC.LanguageExtensions.Type Associated Types type Rep Extension :: Type -> Type | |
| Generic Ordering | |
Defined in GHC.Generics Associated Types type Rep Ordering :: Type -> Type | |
| Generic ByteRange | |
Defined in Network.HTTP.Types.Header Associated Types type Rep ByteRange :: Type -> Type | |
| Generic StdMethod | |
Defined in Network.HTTP.Types.Method Associated Types type Rep StdMethod :: Type -> Type | |
| Generic Status | |
| Generic HttpVersion | |
Defined in Network.HTTP.Types.Version Associated Types type Rep HttpVersion :: Type -> Type | |
| Generic IP | |
Defined in Data.IP.Addr Associated Types type Rep IP :: Type -> Type | |
| Generic IPv4 | |
Defined in Data.IP.Addr Associated Types type Rep IPv4 :: Type -> Type | |
| Generic IPv6 | |
Defined in Data.IP.Addr Associated Types type Rep IPv6 :: Type -> Type | |
| Generic IPRange | |
Defined in Data.IP.Range Associated Types type Rep IPRange :: Type -> Type | |
| Generic URI | |
Defined in Network.URI Associated Types type Rep URI :: Type -> Type | |
| Generic URIAuth | |
Defined in Network.URI Associated Types type Rep URIAuth :: Type -> Type | |
| Generic OsChar | |
Defined in System.OsString.Internal.Types Associated Types type Rep OsChar :: Type -> Type | |
| Generic OsString | |
Defined in System.OsString.Internal.Types Associated Types type Rep OsString :: Type -> Type | |
| Generic PosixChar | |
Defined in System.OsString.Internal.Types Associated Types type Rep PosixChar :: Type -> Type | |
| Generic PosixString | |
Defined in System.OsString.Internal.Types Associated Types type Rep PosixString :: Type -> Type | |
| Generic WindowsChar | |
Defined in System.OsString.Internal.Types Associated Types type Rep WindowsChar :: Type -> Type | |
| Generic WindowsString | |
Defined in System.OsString.Internal.Types Associated Types type Rep WindowsString :: Type -> Type | |
| Generic Mode | |
Defined in Text.PrettyPrint.Annotated.HughesPJ Associated Types type Rep Mode :: Type -> Type | |
| Generic Style | |
Defined in Text.PrettyPrint.Annotated.HughesPJ Associated Types type Rep Style :: Type -> Type | |
| Generic TextDetails | |
Defined in Text.PrettyPrint.Annotated.HughesPJ Associated Types type Rep TextDetails :: Type -> Type | |
| Generic Doc | |
Defined in Text.PrettyPrint.HughesPJ Associated Types type Rep Doc :: Type -> Type | |
| Generic AnnLookup | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep AnnLookup :: Type -> Type | |
| Generic AnnTarget | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep AnnTarget :: Type -> Type | |
| Generic Bang | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Bang :: Type -> Type | |
| Generic Body | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Body :: Type -> Type | |
| Generic Bytes | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Bytes :: Type -> Type | |
| Generic Callconv | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Callconv :: Type -> Type | |
| Generic Clause | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Clause :: Type -> Type | |
| Generic Con | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Con :: Type -> Type | |
| Generic Dec | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Dec :: Type -> Type | |
| Generic DecidedStrictness | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep DecidedStrictness :: Type -> Type | |
| Generic DerivClause | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep DerivClause :: Type -> Type | |
| Generic DerivStrategy | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep DerivStrategy :: Type -> Type | |
| Generic DocLoc | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep DocLoc :: Type -> Type | |
| Generic Exp | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Exp :: Type -> Type | |
| Generic FamilyResultSig | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep FamilyResultSig :: Type -> Type | |
| Generic Fixity | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Fixity :: Type -> Type | |
| Generic FixityDirection | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep FixityDirection :: Type -> Type | |
| Generic Foreign | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Foreign :: Type -> Type | |
| Generic FunDep | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep FunDep :: Type -> Type | |
| Generic Guard | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Guard :: Type -> Type | |
| Generic Info | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Info :: Type -> Type | |
| Generic InjectivityAnn | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep InjectivityAnn :: Type -> Type | |
| Generic Inline | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Inline :: Type -> Type | |
| Generic Lit | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Lit :: Type -> Type | |
| Generic Loc | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Loc :: Type -> Type | |
| Generic Match | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Match :: Type -> Type | |
| Generic ModName | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep ModName :: Type -> Type | |
| Generic Module | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Module :: Type -> Type | |
| Generic ModuleInfo | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep ModuleInfo :: Type -> Type | |
| Generic Name | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Name :: Type -> Type | |
| Generic NameFlavour | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep NameFlavour :: Type -> Type | |
| Generic NameSpace | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep NameSpace :: Type -> Type | |
| Generic OccName | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep OccName :: Type -> Type | |
| Generic Overlap | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Overlap :: Type -> Type | |
| Generic Pat | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Pat :: Type -> Type | |
| Generic PatSynArgs | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep PatSynArgs :: Type -> Type | |
| Generic PatSynDir | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep PatSynDir :: Type -> Type | |
| Generic Phases | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Phases :: Type -> Type | |
| Generic PkgName | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep PkgName :: Type -> Type | |
| Generic Pragma | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Pragma :: Type -> Type | |
| Generic Range | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Range :: Type -> Type | |
| Generic Role | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Role :: Type -> Type | |
| Generic RuleBndr | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep RuleBndr :: Type -> Type | |
| Generic RuleMatch | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep RuleMatch :: Type -> Type | |
| Generic Safety | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Safety :: Type -> Type | |
| Generic SourceStrictness | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep SourceStrictness :: Type -> Type | |
| Generic SourceUnpackedness | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep SourceUnpackedness :: Type -> Type | |
| Generic Specificity | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Specificity :: Type -> Type | |
| Generic Stmt | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Stmt :: Type -> Type | |
| Generic TyLit | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep TyLit :: Type -> Type | |
| Generic TySynEqn | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep TySynEqn :: Type -> Type | |
| Generic Type | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep Type :: Type -> Type | |
| Generic TypeFamilyHead | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep TypeFamilyHead :: Type -> Type | |
| Generic UnixTime | |
Defined in Data.UnixTime.Types Associated Types type Rep UnixTime :: Type -> Type | |
| Generic CompressionLevel | |
Defined in Codec.Compression.Zlib.Stream Associated Types type Rep CompressionLevel :: Type -> Type | |
| Generic CompressionStrategy | |
Defined in Codec.Compression.Zlib.Stream Associated Types type Rep CompressionStrategy :: Type -> Type | |
| Generic Format | |
Defined in Codec.Compression.Zlib.Stream Associated Types type Rep Format :: Type -> Type | |
| Generic MemoryLevel | |
Defined in Codec.Compression.Zlib.Stream Associated Types type Rep MemoryLevel :: Type -> Type | |
| Generic Method | |
Defined in Codec.Compression.Zlib.Stream Associated Types type Rep Method :: Type -> Type | |
| Generic WindowBits | |
Defined in Codec.Compression.Zlib.Stream Associated Types type Rep WindowBits :: Type -> Type | |
| Generic () | |
Defined in GHC.Generics Associated Types type Rep () :: Type -> Type | |
| Generic Bool | |
Defined in GHC.Generics Associated Types type Rep Bool :: Type -> Type | |
| Generic (Last' a) | |
Defined in Distribution.Compat.Semigroup Associated Types type Rep (Last' a) :: Type -> Type | |
| Generic (Option' a) | |
Defined in Distribution.Compat.Semigroup Associated Types type Rep (Option' a) :: Type -> Type | |
| Generic (VersionRangeF a) | |
Defined in Distribution.Types.VersionRange.Internal Associated Types type Rep (VersionRangeF a) :: Type -> Type | |
| Generic (ZipList a) | |
Defined in Control.Applicative Associated Types type Rep (ZipList a) :: Type -> Type | |
| Generic (Complex a) | |
Defined in Data.Complex Associated Types type Rep (Complex a) :: Type -> Type | |
| Generic (Identity a) | |
Defined in Data.Functor.Identity Associated Types type Rep (Identity a) :: Type -> Type | |
| Generic (First a) | |
Defined in Data.Monoid Associated Types type Rep (First a) :: Type -> Type | |
| Generic (Last a) | |
Defined in Data.Monoid Associated Types type Rep (Last a) :: Type -> Type | |
| Generic (Down a) | |
Defined in GHC.Generics Associated Types type Rep (Down a) :: Type -> Type | |
| Generic (First a) | |
Defined in Data.Semigroup Associated Types type Rep (First a) :: Type -> Type | |
| Generic (Last a) | |
Defined in Data.Semigroup Associated Types type Rep (Last a) :: Type -> Type | |
| Generic (Max a) | |
Defined in Data.Semigroup Associated Types type Rep (Max a) :: Type -> Type | |
| Generic (Min a) | |
Defined in Data.Semigroup Associated Types type Rep (Min a) :: Type -> Type | |
| Generic (WrappedMonoid m) | |
Defined in Data.Semigroup Associated Types type Rep (WrappedMonoid m) :: Type -> Type | |
| Generic (Dual a) | |
Defined in Data.Semigroup.Internal Associated Types type Rep (Dual a) :: Type -> Type | |
| Generic (Endo a) | |
Defined in Data.Semigroup.Internal Associated Types type Rep (Endo a) :: Type -> Type | |
| Generic (Product a) | |
Defined in Data.Semigroup.Internal Associated Types type Rep (Product a) :: Type -> Type | |
| Generic (Sum a) | |
Defined in Data.Semigroup.Internal Associated Types type Rep (Sum a) :: Type -> Type | |
| Generic (NonEmpty a) | |
Defined in GHC.Generics Associated Types type Rep (NonEmpty a) :: Type -> Type | |
| Generic (Par1 p) | |
Defined in GHC.Generics Associated Types type Rep (Par1 p) :: Type -> Type | |
| Generic (Digit a) | |
Defined in Data.Sequence.Internal Associated Types type Rep (Digit a) :: Type -> Type | |
| Generic (Elem a) | |
Defined in Data.Sequence.Internal Associated Types type Rep (Elem a) :: Type -> Type | |
| Generic (FingerTree a) | |
Defined in Data.Sequence.Internal Associated Types type Rep (FingerTree a) :: Type -> Type | |
| Generic (Node a) | |
Defined in Data.Sequence.Internal Associated Types type Rep (Node a) :: Type -> Type | |
| Generic (ViewL a) | |
Defined in Data.Sequence.Internal Associated Types type Rep (ViewL a) :: Type -> Type | |
| Generic (ViewR a) | |
Defined in Data.Sequence.Internal Associated Types type Rep (ViewR a) :: Type -> Type | |
| Generic (Tree a) | |
| Generic (Fix f) | |
| Generic (HistoriedResponse body) | |
Defined in Network.HTTP.Client Associated Types type Rep (HistoriedResponse body) :: Type -> Type | |
| Generic (AddrRange a) | |
Defined in Data.IP.Range Associated Types type Rep (AddrRange a) :: Type -> Type | |
| Generic (Doc a) | |
Defined in Text.PrettyPrint.Annotated.HughesPJ Associated Types type Rep (Doc a) :: Type -> Type | |
| Generic (Maybe a) | |
Defined in Data.Strict.Maybe Associated Types type Rep (Maybe a) :: Type -> Type | |
| Generic (TyVarBndr flag) | |
Defined in Language.Haskell.TH.Syntax Associated Types type Rep (TyVarBndr flag) :: Type -> Type | |
| Generic (Maybe a) | |
Defined in GHC.Generics Associated Types type Rep (Maybe a) :: Type -> Type | |
| Generic (a) | |
Defined in GHC.Generics Associated Types type Rep (a) :: Type -> Type | |
| Generic [a] | |
Defined in GHC.Generics Associated Types type Rep [a] :: Type -> Type | |
| Generic (WrappedMonad m a) | |
Defined in Control.Applicative Associated Types type Rep (WrappedMonad m a) :: Type -> Type | |
| Generic (Either a b) | |
Defined in GHC.Generics Associated Types type Rep (Either a b) :: Type -> Type | |
| Generic (Proxy t) | |
Defined in GHC.Generics Associated Types type Rep (Proxy t) :: Type -> Type | |
| Generic (Arg a b) | |
Defined in Data.Semigroup Associated Types type Rep (Arg a b) :: Type -> Type | |
| Generic (U1 p) | |
Defined in GHC.Generics Associated Types type Rep (U1 p) :: Type -> Type | |
| Generic (V1 p) | |
Defined in GHC.Generics Associated Types type Rep (V1 p) :: Type -> Type | |
| Generic (Either a b) | |
Defined in Data.Strict.Either Associated Types type Rep (Either a b) :: Type -> Type | |
| Generic (These a b) | |
Defined in Data.Strict.These Associated Types type Rep (These a b) :: Type -> Type | |
| Generic (Pair a b) | |
Defined in Data.Strict.Tuple Associated Types type Rep (Pair a b) :: Type -> Type | |
| Generic (These a b) | |
Defined in Data.These Associated Types type Rep (These a b) :: Type -> Type | |
| Generic (MaybeT m a) | |
Defined in Control.Monad.Trans.Maybe Associated Types type Rep (MaybeT m a) :: Type -> Type | |
| Generic (a, b) | |
Defined in GHC.Generics Associated Types type Rep (a, b) :: Type -> Type | |
| Generic (WrappedArrow a b c) | |
Defined in Control.Applicative Associated Types type Rep (WrappedArrow a b c) :: Type -> Type | |
| Generic (Kleisli m a b) | |
Defined in Control.Arrow Associated Types type Rep (Kleisli m a b) :: Type -> Type | |
| Generic (Const a b) | |
Defined in Data.Functor.Const Associated Types type Rep (Const a b) :: Type -> Type | |
| Generic (Ap f a) | |
Defined in Data.Monoid Associated Types type Rep (Ap f a) :: Type -> Type | |
| Generic (Alt f a) | |
Defined in Data.Semigroup.Internal Associated Types type Rep (Alt f a) :: Type -> Type | |
| Generic (Rec1 f p) | |
Defined in GHC.Generics Associated Types type Rep (Rec1 f p) :: Type -> Type | |
| Generic (URec (Ptr ()) p) | |
Defined in GHC.Generics Associated Types type Rep (URec (Ptr ()) p) :: Type -> Type | |
| Generic (URec Char p) | |
Defined in GHC.Generics Associated Types type Rep (URec Char p) :: Type -> Type | |
| Generic (URec Double p) | |
Defined in GHC.Generics Associated Types type Rep (URec Double p) :: Type -> Type | |
| Generic (URec Float p) | |
Defined in GHC.Generics Associated Types type Rep (URec Float p) :: Type -> Type | |
| Generic (URec Int p) | |
Defined in GHC.Generics Associated Types type Rep (URec Int p) :: Type -> Type | |
| Generic (URec Word p) | |
Defined in GHC.Generics Associated Types type Rep (URec Word p) :: Type -> Type | |
| Generic (Tagged s b) | |
Defined in Data.Tagged Associated Types type Rep (Tagged s b) :: Type -> Type | |
| Generic (These1 f g a) | |
Defined in Data.Functor.These Associated Types type Rep (These1 f g a) :: Type -> Type | |
| Generic (Backwards f a) | |
Defined in Control.Applicative.Backwards Associated Types type Rep (Backwards f a) :: Type -> Type | |
| Generic (AccumT w m a) | |
Defined in Control.Monad.Trans.Accum Associated Types type Rep (AccumT w m a) :: Type -> Type | |
| Generic (ExceptT e m a) | |
Defined in Control.Monad.Trans.Except Associated Types type Rep (ExceptT e m a) :: Type -> Type | |
| Generic (IdentityT f a) | |
Defined in Control.Monad.Trans.Identity Associated Types type Rep (IdentityT f a) :: Type -> Type | |
| Generic (ReaderT r m a) | |
Defined in Control.Monad.Trans.Reader Associated Types type Rep (ReaderT r m a) :: Type -> Type | |
| Generic (SelectT r m a) | |
Defined in Control.Monad.Trans.Select Associated Types type Rep (SelectT r m a) :: Type -> Type | |
| Generic (StateT s m a) | |
Defined in Control.Monad.Trans.State.Lazy Associated Types type Rep (StateT s m a) :: Type -> Type | |
| Generic (StateT s m a) | |
Defined in Control.Monad.Trans.State.Strict Associated Types type Rep (StateT s m a) :: Type -> Type | |
| Generic (WriterT w m a) | |
Defined in Control.Monad.Trans.Writer.CPS Associated Types type Rep (WriterT w m a) :: Type -> Type | |
| Generic (WriterT w m a) | |
Defined in Control.Monad.Trans.Writer.Lazy Associated Types type Rep (WriterT w m a) :: Type -> Type | |
| Generic (WriterT w m a) | |
Defined in Control.Monad.Trans.Writer.Strict Associated Types type Rep (WriterT w m a) :: Type -> Type | |
| Generic (Constant a b) | |
Defined in Data.Functor.Constant Associated Types type Rep (Constant a b) :: Type -> Type | |
| Generic (Reverse f a) | |
Defined in Data.Functor.Reverse Associated Types type Rep (Reverse f a) :: Type -> Type | |
| Generic (a, b, c) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c) :: Type -> Type | |
| Generic (Product f g a) | |
Defined in Data.Functor.Product Associated Types type Rep (Product f g a) :: Type -> Type | |
| Generic (Sum f g a) | |
Defined in Data.Functor.Sum Associated Types type Rep (Sum f g a) :: Type -> Type | |
| Generic ((f :*: g) p) | |
Defined in GHC.Generics Associated Types type Rep ((f :*: g) p) :: Type -> Type | |
| Generic ((f :+: g) p) | |
Defined in GHC.Generics Associated Types type Rep ((f :+: g) p) :: Type -> Type | |
| Generic (K1 i c p) | |
Defined in GHC.Generics Associated Types type Rep (K1 i c p) :: Type -> Type | |
| Generic (ContT r m a) | |
Defined in Control.Monad.Trans.Cont Associated Types type Rep (ContT r m a) :: Type -> Type | |
| Generic (a, b, c, d) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d) :: Type -> Type | |
| Generic (Compose f g a) | |
Defined in Data.Functor.Compose Associated Types type Rep (Compose f g a) :: Type -> Type | |
| Generic ((f :.: g) p) | |
Defined in GHC.Generics Associated Types type Rep ((f :.: g) p) :: Type -> Type | |
| Generic (M1 i c f p) | |
Defined in GHC.Generics Associated Types type Rep (M1 i c f p) :: Type -> Type | |
| Generic (RWST r w s m a) | |
Defined in Control.Monad.Trans.RWS.CPS Associated Types type Rep (RWST r w s m a) :: Type -> Type | |
| Generic (RWST r w s m a) | |
Defined in Control.Monad.Trans.RWS.Lazy Associated Types type Rep (RWST r w s m a) :: Type -> Type | |
| Generic (RWST r w s m a) | |
Defined in Control.Monad.Trans.RWS.Strict Associated Types type Rep (RWST r w s m a) :: Type -> Type | |
| Generic (a, b, c, d, e) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e) :: Type -> Type | |
| Generic (a, b, c, d, e, f) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h, i) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h, i) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h, i, j) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h, i, j) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h, i, j, k) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h, i, j, k) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h, i, j, k, l) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h, i, j, k, l) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h, i, j, k, l, m) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h, i, j, k, l, m) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h, i, j, k, l, m, n) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h, i, j, k, l, m, n) :: Type -> Type | |
| Generic (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) | |
Defined in GHC.Generics Associated Types type Rep (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o) :: Type -> Type | |
class GenericDecode f Source #
Minimal complete definition
genericDecode
Instances
| (GenericDecode a, GenericDecode b) => GenericDecode (a :*: b) Source # | |
Defined in Data.Aeson.Config.FromValue Methods genericDecode :: Options -> Value -> Parser ((a :*: b) p) | |
| GenericDecode a => GenericDecode (C1 c a) Source # | |
Defined in Data.Aeson.Config.FromValue Methods genericDecode :: Options -> Value -> Parser (C1 c a p) | |
| GenericDecode a => GenericDecode (D1 d a) Source # | |
Defined in Data.Aeson.Config.FromValue Methods genericDecode :: Options -> Value -> Parser (D1 d a p) | |
genericFromValue :: forall a d m. (Generic a, Rep a ~ D1 d m, Datatype d, GenericDecode (Rep a)) => Value -> Parser a Source #
Constructors
| Options | |
Fields
| |
genericFromValueWith :: (Generic a, GenericDecode (Rep a)) => Options -> Value -> Parser a Source #
typeMismatch :: String -> Value -> Parser a Source #
Instances
| Arbitrary Key | |
| CoArbitrary Key | |
Defined in Data.Aeson.Key Methods coarbitrary :: Key -> Gen b -> Gen b | |
| Function Key | |
Defined in Data.Aeson.Key | |
| FromJSON Key | |
Defined in Data.Aeson.Types.FromJSON | |
| FromJSONKey Key | |
Defined in Data.Aeson.Types.FromJSON | |
| ToJSON Key | |
Defined in Data.Aeson.Types.ToJSON | |
| ToJSONKey Key | |
Defined in Data.Aeson.Types.ToJSON | |
| Data Key | |
Defined in Data.Aeson.Key Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Key -> c Key gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Key dataTypeOf :: Key -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Key) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Key) gmapT :: (forall b. Data b => b -> b) -> Key -> Key gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Key -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Key -> r gmapQ :: (forall d. Data d => d -> u) -> Key -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Key -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Key -> m Key gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Key -> m Key gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Key -> m Key | |
| IsString Key | |
Defined in Data.Aeson.Key Methods fromString :: String -> Key | |
| Monoid Key | |
| Semigroup Key | |
| Read Key | |
Defined in Data.Aeson.Key | |
| Show Key | |
| NFData Key | |
Defined in Data.Aeson.Key | |
| Eq Key | |
| Ord Key | |
| Hashable Key | |
Defined in Data.Aeson.Key | |
| FoldableWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| FunctorWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| TraversableWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| SemialignWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap Methods ialignWith :: (Key -> These a b -> c) -> KeyMap a -> KeyMap b -> KeyMap c | |
| ZipWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| Lift Key | |
| FilterableWithIndex Key KeyMap | |
Defined in Data.Aeson.KeyMap | |
| WitherableWithIndex Key KeyMap | |
| FromPairs Value (DList Pair) | |
Defined in Data.Aeson.Types.ToJSON | |
| v ~ Value => KeyValuePair v (DList Pair) | |
Defined in Data.Aeson.Types.ToJSON | |
Instances
| Arbitrary Value | |
| CoArbitrary Value | |
Defined in Data.Aeson.Types.Internal Methods coarbitrary :: Value -> Gen b -> Gen b | |
| Function Value | |
Defined in Data.Aeson.Types.Internal | |
| FromJSON Value | |
Defined in Data.Aeson.Types.FromJSON | |
| FromString Encoding | |
Defined in Data.Aeson.Types.ToJSON Methods fromString :: String -> Encoding | |
| FromString Value | |
Defined in Data.Aeson.Types.ToJSON Methods fromString :: String -> Value | |
| ToJSON Value | |
Defined in Data.Aeson.Types.ToJSON Methods toEncoding :: Value -> Encoding toJSONList :: [Value] -> Value toEncodingList :: [Value] -> Encoding | |
| Data Value | |
Defined in Data.Aeson.Types.Internal Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Value -> c Value gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Value dataTypeOf :: Value -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Value) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Value) gmapT :: (forall b. Data b => b -> b) -> Value -> Value gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Value -> r gmapQ :: (forall d. Data d => d -> u) -> Value -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Value -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Value -> m Value gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Value -> m Value | |
| IsString Value | |
Defined in Data.Aeson.Types.Internal Methods fromString :: String -> Value | |
| Generic Value | |
| Read Value | |
Defined in Data.Aeson.Types.Internal | |
| Show Value | |
| NFData Value | |
Defined in Data.Aeson.Types.Internal | |
| Eq Value | |
| Ord Value | |
| Hashable Value | |
Defined in Data.Aeson.Types.Internal | |
| Lift Value | |
| (GToJSON' Encoding arity a, ConsToJSON Encoding arity a, Constructor c) => SumToJSON' TwoElemArray Encoding arity (C1 c a) | |
Defined in Data.Aeson.Types.ToJSON Methods sumToJSON' :: Options -> ToArgs Encoding arity a0 -> C1 c a a0 -> Tagged TwoElemArray Encoding | |
| (GToJSON' Value arity a, ConsToJSON Value arity a, Constructor c) => SumToJSON' TwoElemArray Value arity (C1 c a) | |
Defined in Data.Aeson.Types.ToJSON Methods sumToJSON' :: Options -> ToArgs Value arity a0 -> C1 c a a0 -> Tagged TwoElemArray Value | |
| GToJSON' Encoding arity (U1 :: Type -> Type) | |
Defined in Data.Aeson.Types.ToJSON Methods gToJSON :: Options -> ToArgs Encoding arity a -> U1 a -> Encoding | |
| GToJSON' Encoding arity (V1 :: Type -> Type) | |
Defined in Data.Aeson.Types.ToJSON Methods gToJSON :: Options -> ToArgs Encoding arity a -> V1 a -> Encoding | |
| GToJSON' Value arity (U1 :: Type -> Type) | |
Defined in Data.Aeson.Types.ToJSON | |
| GToJSON' Value arity (V1 :: Type -> Type) | |
Defined in Data.Aeson.Types.ToJSON | |
| ToJSON1 f => GToJSON' Encoding One (Rec1 f) | |
Defined in Data.Aeson.Types.ToJSON Methods gToJSON :: Options -> ToArgs Encoding One a -> Rec1 f a -> Encoding | |
| ToJSON1 f => GToJSON' Value One (Rec1 f) | |
Defined in Data.Aeson.Types.ToJSON | |
| (EncodeProduct arity a, EncodeProduct arity b) => GToJSON' Encoding arity (a :*: b) | |
Defined in Data.Aeson.Types.ToJSON Methods gToJSON :: Options -> ToArgs Encoding arity a0 -> (a :*: b) a0 -> Encoding | |
| ToJSON a => GToJSON' Encoding arity (K1 i a :: Type -> Type) | |
Defined in Data.Aeson.Types.ToJSON Methods gToJSON :: Options -> ToArgs Encoding arity a0 -> K1 i a a0 -> Encoding | |
| (WriteProduct arity a, WriteProduct arity b, ProductSize a, ProductSize b) => GToJSON' Value arity (a :*: b) | |
Defined in Data.Aeson.Types.ToJSON | |
| ToJSON a => GToJSON' Value arity (K1 i a :: Type -> Type) | |
Defined in Data.Aeson.Types.ToJSON | |
| (ToJSON1 f, GToJSON' Encoding One g) => GToJSON' Encoding One (f :.: g) | |
Defined in Data.Aeson.Types.ToJSON Methods gToJSON :: Options -> ToArgs Encoding One a -> (f :.: g) a -> Encoding | |
| (ToJSON1 f, GToJSON' Value One g) => GToJSON' Value One (f :.: g) | |
Defined in Data.Aeson.Types.ToJSON | |
| FromPairs Value (DList Pair) | |
Defined in Data.Aeson.Types.ToJSON | |
| v ~ Value => KeyValuePair v (DList Pair) | |
Defined in Data.Aeson.Types.ToJSON | |
| type Rep Value | |
Defined in Data.Aeson.Types.Internal type Rep Value = D1 ('MetaData "Value" "Data.Aeson.Types.Internal" "aeson-2.1.2.1-D0qQe3CNlvvLYKUgPcjbMF" 'False) ((C1 ('MetaCons "Object" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Object)) :+: (C1 ('MetaCons "Array" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Array)) :+: C1 ('MetaCons "String" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)))) :+: (C1 ('MetaCons "Number" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Scientific)) :+: (C1 ('MetaCons "Bool" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :+: C1 ('MetaCons "Null" 'PrefixI 'False) (U1 :: Type -> Type)))) | |
newtype Alias (deprecated :: Bool) (alias :: Symbol) a Source #
Constructors
| Alias a |