makeLenses ''Neither will automatically derive nor::Iso(Eitherab) (Eithercd) (Neitherab) (Neithercd) which behaves identically to_Neitherabove. There is also a fully operational, but simple game ofPongin theexamples/folder. There are also a couple of hundred examples distributed throughout the...
data Foo a = Foo { _bar :: Int, _baz :: Int, _quux :: a } makeLenses ''FooThis will automatically generate the following lenses:bar, baz :: Lens' (Foo a) Int quux :: Lens (Foo a) (Foo b) a bA Lens takes 4 parameters because it can change the types of the whole when...
data Foo a = Foo { _bar :: Int, _baz :: Int, _quux :: a } makeLenses ''FooThis will automatically generate the following lenses:bar, baz :: Simple Lens (Foo a) Int quux :: Lens (Foo a) (Foo b) a bA Lens takes 4 parameters because it can change the types of the whole...