fresnel-0.0.0.1: high-powered optics in a small package
Safe HaskellSafe-Inferred
LanguageHaskell2010

Fresnel.List.NonEmpty

Contents

Synopsis
  • nonEmpty_ :: Iso [a] [b] (Maybe (NonEmpty a)) (Maybe (NonEmpty b))
  • uncons_ :: Iso (NonEmpty a) (NonEmpty b) (a, Maybe (NonEmpty a)) (b, Maybe (NonEmpty b))
  • head_ :: Lens' (NonEmpty a) a
  • tail_ :: Lens' (NonEmpty a) [a]

Optics

nonEmpty_ :: Iso [a] [b] (Maybe (NonEmpty a)) (Maybe (NonEmpty b)) Source #

uncons_ :: Iso (NonEmpty a) (NonEmpty b) (a, Maybe (NonEmpty a)) (b, Maybe (NonEmpty b)) Source #

head_ :: Lens' (NonEmpty a) a Source #

tail_ :: Lens' (NonEmpty a) [a] Source #