Module
Data.Lens.Barlow
- Package
- purescript-barlow-lens
- Repository
- sigma-andex/purescript-barlow-lens
#TNil Source
data TNil :: TList
Instances
Parse1Symbol a "" (TCons (RecordField a) TNil)
ParseSymbol "?" (TCons (RecordField "") (TCons QuestionMark TNil))
ParseSymbol ">" (TCons (RecordField "") (TCons RightArrow TNil))
ParseSymbol "<" (TCons (RecordField "") (TCons LeftArrow TNil))
ParseSymbol "+" (TCons (RecordField "") (TCons Plus TNil))
ParseSymbol "!" (TCons (RecordField "") (TCons ExclamationMark TNil))
ParseSymbol "" (TCons (RecordField "") TNil)
(IsSymbol sym, Cons sym output rc x, Strong p) => ConstructBarlow (TCons (RecordField sym) TNil) p (Record x) output
(Choice p) => ConstructBarlow (TCons QuestionMark TNil) p (Maybe output) output
(Choice p) => ConstructBarlow (TCons RightArrow TNil) p (Either l output) output
(Choice p) => ConstructBarlow (TCons LeftArrow TNil) p (Either output r) output
(Wander p, Traversable t) => ConstructBarlow (TCons Plus TNil) p (t output) output
(Choice p, Newtype nt output) => ConstructBarlow (TCons ExclamationMark TNil) p nt output
#TCons Source
data TCons :: forall k. k -> TList -> TList
Instances
Parse1Symbol a "" (TCons (RecordField a) TNil)
(ParseSymbol s rest) => Parse1Symbol "." s (TCons (RecordField "") rest)
(ParseSymbol s rest) => Parse1Symbol "?" s (TCons (RecordField "") (TCons QuestionMark rest))
(ParseSymbol s rest) => Parse1Symbol ">" s (TCons (RecordField "") (TCons RightArrow rest))
(ParseSymbol s rest) => Parse1Symbol "<" s (TCons (RecordField "") (TCons LeftArrow rest))
(ParseSymbol s rest) => Parse1Symbol "+" s (TCons (RecordField "") (TCons Plus rest))
(ParseSymbol s rest) => Parse1Symbol "!" s (TCons (RecordField "") (TCons ExclamationMark rest))
(ParseSymbol s (TCons (RecordField acc) r), Cons o acc rest) => Parse1Symbol o s (TCons (RecordField rest) r)
ParseSymbol "?" (TCons (RecordField "") (TCons QuestionMark TNil))
ParseSymbol ">" (TCons (RecordField "") (TCons RightArrow TNil))
ParseSymbol "<" (TCons (RecordField "") (TCons LeftArrow TNil))
ParseSymbol "+" (TCons (RecordField "") (TCons Plus TNil))
ParseSymbol "!" (TCons (RecordField "") (TCons ExclamationMark TNil))
ParseSymbol "" (TCons (RecordField "") TNil)
(IsSymbol sym, Cons sym output rc x, Strong p) => ConstructBarlow (TCons (RecordField sym) TNil) p (Record x) output
(Choice p) => ConstructBarlow (TCons QuestionMark TNil) p (Maybe output) output
(Choice p) => ConstructBarlow (TCons RightArrow TNil) p (Either l output) output
(Choice p) => ConstructBarlow (TCons LeftArrow TNil) p (Either output r) output
(Wander p, Traversable t) => ConstructBarlow (TCons Plus TNil) p (t output) output
(Choice p, Newtype nt output) => ConstructBarlow (TCons ExclamationMark TNil) p nt output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons QuestionMark (TCons (RecordField "") rest)) p (Maybe restR) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons RightArrow (TCons (RecordField "") rest)) p (Either l restR) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons LeftArrow (TCons (RecordField "") rest)) p (Either restR r) output
(ConstructBarlow rest p restR output, Strong p, Wander p, Traversable t) => ConstructBarlow (TCons Plus (TCons (RecordField "") rest)) p (t restR) output
(ConstructBarlow rest p restR output, Newtype nt restR, Strong p, Choice p) => ConstructBarlow (TCons ExclamationMark (TCons (RecordField "") rest)) p nt output
(IsSymbol sym, ConstructBarlow rest p restR output, Cons sym restR rb rl, Strong p) => ConstructBarlow (TCons (RecordField sym) rest) p (Record rl) output
#QuestionMark Source
data QuestionMark :: LensType
Instances
(ParseSymbol s rest) => Parse1Symbol "?" s (TCons (RecordField "") (TCons QuestionMark rest))
ParseSymbol "?" (TCons (RecordField "") (TCons QuestionMark TNil))
(Choice p) => ConstructBarlow (TCons QuestionMark TNil) p (Maybe output) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons QuestionMark (TCons (RecordField "") rest)) p (Maybe restR) output
#RightArrow Source
data RightArrow :: LensType
Instances
(ParseSymbol s rest) => Parse1Symbol ">" s (TCons (RecordField "") (TCons RightArrow rest))
ParseSymbol ">" (TCons (RecordField "") (TCons RightArrow TNil))
(Choice p) => ConstructBarlow (TCons RightArrow TNil) p (Either l output) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons RightArrow (TCons (RecordField "") rest)) p (Either l restR) output
#LeftArrow Source
data LeftArrow :: LensType
Instances
(ParseSymbol s rest) => Parse1Symbol "<" s (TCons (RecordField "") (TCons LeftArrow rest))
ParseSymbol "<" (TCons (RecordField "") (TCons LeftArrow TNil))
(Choice p) => ConstructBarlow (TCons LeftArrow TNil) p (Either output r) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons LeftArrow (TCons (RecordField "") rest)) p (Either restR r) output
#Plus Source
data Plus :: LensType
Instances
(ParseSymbol s rest) => Parse1Symbol "+" s (TCons (RecordField "") (TCons Plus rest))
ParseSymbol "+" (TCons (RecordField "") (TCons Plus TNil))
(Wander p, Traversable t) => ConstructBarlow (TCons Plus TNil) p (t output) output
(ConstructBarlow rest p restR output, Strong p, Wander p, Traversable t) => ConstructBarlow (TCons Plus (TCons (RecordField "") rest)) p (t restR) output
#ExclamationMark Source
data ExclamationMark :: LensType
Instances
(ParseSymbol s rest) => Parse1Symbol "!" s (TCons (RecordField "") (TCons ExclamationMark rest))
ParseSymbol "!" (TCons (RecordField "") (TCons ExclamationMark TNil))
(Choice p, Newtype nt output) => ConstructBarlow (TCons ExclamationMark TNil) p nt output
(ConstructBarlow rest p restR output, Newtype nt restR, Strong p, Choice p) => ConstructBarlow (TCons ExclamationMark (TCons (RecordField "") rest)) p nt output
#RecordField Source
data RecordField :: Symbol -> LensType
Instances
Parse1Symbol a "" (TCons (RecordField a) TNil)
(ParseSymbol s rest) => Parse1Symbol "." s (TCons (RecordField "") rest)
(ParseSymbol s rest) => Parse1Symbol "?" s (TCons (RecordField "") (TCons QuestionMark rest))
(ParseSymbol s rest) => Parse1Symbol ">" s (TCons (RecordField "") (TCons RightArrow rest))
(ParseSymbol s rest) => Parse1Symbol "<" s (TCons (RecordField "") (TCons LeftArrow rest))
(ParseSymbol s rest) => Parse1Symbol "+" s (TCons (RecordField "") (TCons Plus rest))
(ParseSymbol s rest) => Parse1Symbol "!" s (TCons (RecordField "") (TCons ExclamationMark rest))
(ParseSymbol s (TCons (RecordField acc) r), Cons o acc rest) => Parse1Symbol o s (TCons (RecordField rest) r)
ParseSymbol "?" (TCons (RecordField "") (TCons QuestionMark TNil))
ParseSymbol ">" (TCons (RecordField "") (TCons RightArrow TNil))
ParseSymbol "<" (TCons (RecordField "") (TCons LeftArrow TNil))
ParseSymbol "+" (TCons (RecordField "") (TCons Plus TNil))
ParseSymbol "!" (TCons (RecordField "") (TCons ExclamationMark TNil))
ParseSymbol "" (TCons (RecordField "") TNil)
(IsSymbol sym, Cons sym output rc x, Strong p) => ConstructBarlow (TCons (RecordField sym) TNil) p (Record x) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons QuestionMark (TCons (RecordField "") rest)) p (Maybe restR) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons RightArrow (TCons (RecordField "") rest)) p (Either l restR) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons LeftArrow (TCons (RecordField "") rest)) p (Either restR r) output
(ConstructBarlow rest p restR output, Strong p, Wander p, Traversable t) => ConstructBarlow (TCons Plus (TCons (RecordField "") rest)) p (t restR) output
(ConstructBarlow rest p restR output, Newtype nt restR, Strong p, Choice p) => ConstructBarlow (TCons ExclamationMark (TCons (RecordField "") rest)) p nt output
(IsSymbol sym, ConstructBarlow rest p restR output, Cons sym restR rb rl, Strong p) => ConstructBarlow (TCons (RecordField sym) rest) p (Record rl) output
#ParseSymbol Source
class ParseSymbol (string :: Symbol) (attributes :: TList) | string -> attributes
Instances
ParseSymbol "?" (TCons (RecordField "") (TCons QuestionMark TNil))
ParseSymbol ">" (TCons (RecordField "") (TCons RightArrow TNil))
ParseSymbol "<" (TCons (RecordField "") (TCons LeftArrow TNil))
ParseSymbol "+" (TCons (RecordField "") (TCons Plus TNil))
ParseSymbol "!" (TCons (RecordField "") (TCons ExclamationMark TNil))
ParseSymbol "" (TCons (RecordField "") TNil)
(Cons h t string, Parse1Symbol h t fl) => ParseSymbol string fl
#Parse1Symbol Source
class Parse1Symbol (head :: Symbol) (tail :: Symbol) (out :: TList) | head tail -> out
Instances
Parse1Symbol a "" (TCons (RecordField a) TNil)
(ParseSymbol s rest) => Parse1Symbol "." s (TCons (RecordField "") rest)
(ParseSymbol s rest) => Parse1Symbol "?" s (TCons (RecordField "") (TCons QuestionMark rest))
(ParseSymbol s rest) => Parse1Symbol ">" s (TCons (RecordField "") (TCons RightArrow rest))
(ParseSymbol s rest) => Parse1Symbol "<" s (TCons (RecordField "") (TCons LeftArrow rest))
(ParseSymbol s rest) => Parse1Symbol "+" s (TCons (RecordField "") (TCons Plus rest))
(ParseSymbol s rest) => Parse1Symbol "!" s (TCons (RecordField "") (TCons ExclamationMark rest))
(ParseSymbol s (TCons (RecordField acc) r), Cons o acc rest) => Parse1Symbol o s (TCons (RecordField rest) r)
#ConstructBarlow Source
class ConstructBarlow (attributes :: TList) p input output | attributes -> input output where
Members
constructBarlow :: Proxy attributes -> Optic' p input output
Instances
(IsSymbol sym, Cons sym output rc x, Strong p) => ConstructBarlow (TCons (RecordField sym) TNil) p (Record x) output
(Choice p) => ConstructBarlow (TCons QuestionMark TNil) p (Maybe output) output
(Choice p) => ConstructBarlow (TCons RightArrow TNil) p (Either l output) output
(Choice p) => ConstructBarlow (TCons LeftArrow TNil) p (Either output r) output
(Wander p, Traversable t) => ConstructBarlow (TCons Plus TNil) p (t output) output
(Choice p, Newtype nt output) => ConstructBarlow (TCons ExclamationMark TNil) p nt output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons QuestionMark (TCons (RecordField "") rest)) p (Maybe restR) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons RightArrow (TCons (RecordField "") rest)) p (Either l restR) output
(ConstructBarlow rest p restR output, Strong p, Choice p) => ConstructBarlow (TCons LeftArrow (TCons (RecordField "") rest)) p (Either restR r) output
(ConstructBarlow rest p restR output, Strong p, Wander p, Traversable t) => ConstructBarlow (TCons Plus (TCons (RecordField "") rest)) p (t restR) output
(ConstructBarlow rest p restR output, Newtype nt restR, Strong p, Choice p) => ConstructBarlow (TCons ExclamationMark (TCons (RecordField "") rest)) p nt output
(IsSymbol sym, ConstructBarlow rest p restR output, Cons sym restR rb rl, Strong p) => ConstructBarlow (TCons (RecordField sym) rest) p (Record rl) output
#Barlow Source
class Barlow (string :: Symbol) p input output | string -> input output where
Members
Instances
(ParseSymbol string attributes, ConstructBarlow attributes p (Record input) output) => Barlow string p (Record input) output
- Modules
- Data.
Lens. Barlow
Type-safe lens for zooming into a deeply nested record