{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE OverloadedLabels #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.OpenApi.Optics () where
import Data.Aeson (Value)
import Data.Scientific (Scientific)
import Data.OpenApi.Internal
import Data.OpenApi.Internal.Utils
import Data.Text (Text)
import Optics.Core
import Optics.TH
makeFieldLabels ''OpenApi
makeFieldLabels ''Components
makeFieldLabels ''Server
makeFieldLabels ''ServerVariable
makeFieldLabels ''RequestBody
makeFieldLabels ''MediaTypeObject
makeFieldLabels ''Info
makeFieldLabels ''Contact
makeFieldLabels ''License
makeFieldLabels ''PathItem
makeFieldLabels ''Tag
makeFieldLabels ''Operation
makeFieldLabels ''Param
makeFieldLabels ''Header
makeFieldLabels ''Schema
makeFieldLabels ''NamedSchema
makeFieldLabels ''Xml
makeFieldLabels ''Responses
makeFieldLabels ''Response
makeFieldLabels ''SecurityScheme
makeFieldLabels ''ApiKeyParams
makeFieldLabels ''OAuth2ImplicitFlow
makeFieldLabels ''OAuth2PasswordFlow
makeFieldLabels ''OAuth2ClientCredentialsFlow
makeFieldLabels ''OAuth2AuthorizationCodeFlow
makeFieldLabels ''OAuth2Flow
makeFieldLabels ''OAuth2Flows
makeFieldLabels ''ExternalDocs
makeFieldLabels ''Encoding
makeFieldLabels ''Example
makeFieldLabels ''Discriminator
makeFieldLabels ''Link
makePrismLabels ''SecuritySchemeType
makePrismLabels ''Referenced
instance
( a ~ [Referenced Schema]
, b ~ [Referenced Schema]
) => LabelOptic "_OpenApiItemsArray"
A_Review
OpenApiItems
OpenApiItems
a
b where
labelOptic :: Optic A_Review NoIx OpenApiItems OpenApiItems a b
labelOptic = (a -> OpenApiItems) -> Review OpenApiItems a
forall (b :: OpticKind) (t :: OpticKind). (b -> t) -> Review t b
unto (\a
x -> [Referenced Schema] -> OpenApiItems
OpenApiItemsArray a
[Referenced Schema]
x)
{-# INLINE labelOptic #-}
instance
( a ~ Referenced Schema
, b ~ Referenced Schema
) => LabelOptic "_OpenApiItemsObject"
A_Review
OpenApiItems
OpenApiItems
a
b where
labelOptic :: Optic A_Review NoIx OpenApiItems OpenApiItems a b
labelOptic = (a -> OpenApiItems) -> Review OpenApiItems a
forall (b :: OpticKind) (t :: OpticKind). (b -> t) -> Review t b
unto (\a
x -> Referenced Schema -> OpenApiItems
OpenApiItemsObject a
Referenced Schema
x)
{-# INLINE labelOptic #-}
type instance Index Responses = HttpStatusCode
type instance Index Operation = HttpStatusCode
type instance IxValue Responses = Referenced Response
type instance IxValue Operation = Referenced Response
instance Ixed Responses where
ix :: Index Responses
-> Optic' (IxKind Responses) NoIx Responses (IxValue Responses)
ix Index Responses
n = Optic
A_Lens
NoIx
Responses
Responses
(InsOrdHashMap HttpStatusCode (Referenced Response))
(InsOrdHashMap HttpStatusCode (Referenced Response))
#responses Optic
A_Lens
NoIx
Responses
Responses
(InsOrdHashMap HttpStatusCode (Referenced Response))
(InsOrdHashMap HttpStatusCode (Referenced Response))
-> Optic
(IxKind (InsOrdHashMap HttpStatusCode (Referenced Response)))
NoIx
(InsOrdHashMap HttpStatusCode (Referenced Response))
(InsOrdHashMap HttpStatusCode (Referenced Response))
(Referenced Response)
(Referenced Response)
-> Optic
An_AffineTraversal
NoIx
Responses
Responses
(Referenced Response)
(Referenced Response)
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Index (InsOrdHashMap HttpStatusCode (Referenced Response))
-> Optic'
(IxKind (InsOrdHashMap HttpStatusCode (Referenced Response)))
NoIx
(InsOrdHashMap HttpStatusCode (Referenced Response))
(IxValue (InsOrdHashMap HttpStatusCode (Referenced Response)))
forall (m :: OpticKind).
Ixed m =>
Index m -> Optic' (IxKind m) NoIx m (IxValue m)
ix Index (InsOrdHashMap HttpStatusCode (Referenced Response))
Index Responses
n
{-# INLINE ix #-}
instance At Responses where
at :: Index Responses -> Lens' Responses (Maybe (IxValue Responses))
at Index Responses
n = Optic
A_Lens
NoIx
Responses
Responses
(InsOrdHashMap HttpStatusCode (Referenced Response))
(InsOrdHashMap HttpStatusCode (Referenced Response))
#responses Optic
A_Lens
NoIx
Responses
Responses
(InsOrdHashMap HttpStatusCode (Referenced Response))
(InsOrdHashMap HttpStatusCode (Referenced Response))
-> Optic
A_Lens
NoIx
(InsOrdHashMap HttpStatusCode (Referenced Response))
(InsOrdHashMap HttpStatusCode (Referenced Response))
(Maybe (Referenced Response))
(Maybe (Referenced Response))
-> Optic
A_Lens
NoIx
Responses
Responses
(Maybe (Referenced Response))
(Maybe (Referenced Response))
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Index (InsOrdHashMap HttpStatusCode (Referenced Response))
-> Lens'
(InsOrdHashMap HttpStatusCode (Referenced Response))
(Maybe
(IxValue (InsOrdHashMap HttpStatusCode (Referenced Response))))
forall (m :: OpticKind).
At m =>
Index m -> Lens' m (Maybe (IxValue m))
at Index (InsOrdHashMap HttpStatusCode (Referenced Response))
Index Responses
n
{-# INLINE at #-}
instance Ixed Operation where
ix :: Index Operation
-> Optic' (IxKind Operation) NoIx Operation (IxValue Operation)
ix Index Operation
n = Optic A_Lens NoIx Operation Operation Responses Responses
#responses Optic A_Lens NoIx Operation Operation Responses Responses
-> Optic
(IxKind Responses)
NoIx
Responses
Responses
(Referenced Response)
(Referenced Response)
-> Optic
An_AffineTraversal
NoIx
Operation
Operation
(Referenced Response)
(Referenced Response)
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Index Responses
-> Optic' (IxKind Responses) NoIx Responses (IxValue Responses)
forall (m :: OpticKind).
Ixed m =>
Index m -> Optic' (IxKind m) NoIx m (IxValue m)
ix Index Responses
Index Operation
n
{-# INLINE ix #-}
instance At Operation where
at :: Index Operation -> Lens' Operation (Maybe (IxValue Operation))
at Index Operation
n = Optic A_Lens NoIx Operation Operation Responses Responses
#responses Optic A_Lens NoIx Operation Operation Responses Responses
-> Optic
A_Lens
NoIx
Responses
Responses
(Maybe (Referenced Response))
(Maybe (Referenced Response))
-> Optic
A_Lens
NoIx
Operation
Operation
(Maybe (Referenced Response))
(Maybe (Referenced Response))
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Index Responses -> Lens' Responses (Maybe (IxValue Responses))
forall (m :: OpticKind).
At m =>
Index m -> Lens' m (Maybe (IxValue m))
at Index Responses
Index Operation
n
{-# INLINE at #-}
instance
( a ~ Maybe OpenApiType
, b ~ Maybe OpenApiType
) => LabelOptic "type" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#type
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Value, b ~ Maybe Value
) => LabelOptic "default" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#default
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Format, b ~ Maybe Format
) => LabelOptic "format" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#format
{-# INLINE labelOptic #-}
instance
( a ~ Maybe OpenApiItems
, b ~ Maybe OpenApiItems
) => LabelOptic "items" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#items
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Scientific, b ~ Maybe Scientific
) => LabelOptic "maximum" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#maximum
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Bool, b ~ Maybe Bool
) => LabelOptic "exclusiveMaximum" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#exclusiveMaximum
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Scientific, b ~ Maybe Scientific
) => LabelOptic "minimum" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#minimum
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Bool, b ~ Maybe Bool
) => LabelOptic "exclusiveMinimum" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#exclusiveMinimum
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Integer, b ~ Maybe Integer
) => LabelOptic "maxLength" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#maxLength
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Integer, b ~ Maybe Integer
) => LabelOptic "minLength" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#minLength
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Text, b ~ Maybe Text
) => LabelOptic "pattern" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#pattern
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Integer, b ~ Maybe Integer
) => LabelOptic "maxItems" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#maxItems
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Integer, b ~ Maybe Integer
) => LabelOptic "minItems" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#minItems
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Bool, b ~ Maybe Bool
) => LabelOptic "uniqueItems" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#uniqueItems
{-# INLINE labelOptic #-}
instance
( a ~ Maybe [Value], b ~ Maybe [Value]
) => LabelOptic "enum" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#enum
{-# INLINE labelOptic #-}
instance
( a ~ Maybe Scientific, b ~ Maybe Scientific
) => LabelOptic "multipleOf" A_Lens NamedSchema NamedSchema a b where
labelOptic :: Optic A_Lens NoIx NamedSchema NamedSchema a b
labelOptic = Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
#schema Optic A_Lens NoIx NamedSchema NamedSchema Schema Schema
-> Optic A_Lens NoIx Schema Schema a b
-> Optic A_Lens NoIx NamedSchema NamedSchema a b
forall (k :: OpticKind) (l :: OpticKind) (m :: OpticKind)
(is :: IxList) (js :: IxList) (ks :: IxList) (s :: OpticKind)
(t :: OpticKind) (u :: OpticKind) (v :: OpticKind) (a :: OpticKind)
(b :: OpticKind).
(JoinKinds k l m, AppendIndices is js ks) =>
Optic k is s t u v -> Optic l js u v a b -> Optic m ks s t a b
% Optic A_Lens NoIx Schema Schema a b
#multipleOf
{-# INLINE labelOptic #-}