atMostOne
Permit absence but reject a second match, with the same traversal behavior
as exactlyOne. Use ordinary listToMaybe when choosing the first is intended.
Source and package
- Qualified name
-
LibTmux .Query. at Most One - Declared in
LibTmux.Query- Package
- libtmux-haskell
- Source
- internal/LibTmux/Internal/Query.hs
- atMostOne :: [row] -> Either Cardinality
Error (Maybe row)
Referenced declarations#
- LibTmux.Query.CardinalityError data type
Guides#
Pages that discuss atMostOne.