This file is indexed.

/usr/share/doc/libghc-safe-doc/html/Safe-Foldable.html is in libghc-safe-doc 0.3.9-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Safe.Foldable</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Safe-Foldable.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Safe-Foldable.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">safe-0.3.9: Library of safe (exception free) functions</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>Safe</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">Safe.Foldable</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">New functions</a></li><li><a href="#g:2">Safe wrappers</a></li><li><a href="#g:3">Deprecated</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p><code><a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a></code> functions, with wrappers like the <a href="Safe.html">Safe</a> module.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:findJust">findJust</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:foldl1May">foldl1May</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:foldl1Def">foldl1Def</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:foldl1Note">foldl1Note</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:foldr1May">foldr1May</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:foldr1Def">foldr1Def</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:foldr1Note">foldr1Note</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:findJustDef">findJustDef</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:findJustNote">findJustNote</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:minimumMay">minimumMay</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:minimumDef">minimumDef</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; a -&gt; t a -&gt; a</li><li class="src short"><a href="#v:minimumNote">minimumNote</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; t a -&gt; a</li><li class="src short"><a href="#v:maximumMay">maximumMay</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:maximumDef">maximumDef</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; a -&gt; t a -&gt; a</li><li class="src short"><a href="#v:maximumNote">maximumNote</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; t a -&gt; a</li><li class="src short"><a href="#v:minimumByMay">minimumByMay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:minimumByDef">minimumByDef</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:minimumByNote">minimumByNote</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:maximumByMay">maximumByMay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a</li><li class="src short"><a href="#v:maximumByDef">maximumByDef</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:maximumByNote">maximumByNote</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a</li><li class="src short"><a href="#v:foldl1Safe">foldl1Safe</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t) =&gt; (m -&gt; m -&gt; m) -&gt; t m -&gt; m</li><li class="src short"><a href="#v:foldr1Safe">foldr1Safe</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t) =&gt; (m -&gt; m -&gt; m) -&gt; t m -&gt; m</li><li class="src short"><a href="#v:findJustSafe">findJustSafe</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t) =&gt; (m -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t m -&gt; m</li></ul></div><div id="interface"><h1 id="g:1">New functions</h1><div class="top"><p class="src"><a name="v:findJust" class="def">findJust</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#findJust" class="link">Source</a></p><div class="doc"><pre>findJust op = fromJust . find op</pre></div></div><h1 id="g:2">Safe wrappers</h1><div class="top"><p class="src"><a name="v:foldl1May" class="def">foldl1May</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Safe-Foldable.html#foldl1May" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:foldl1Def" class="def">foldl1Def</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#foldl1Def" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:foldl1Note" class="def">foldl1Note</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#foldl1Note" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:foldr1May" class="def">foldr1May</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Safe-Foldable.html#foldr1May" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:foldr1Def" class="def">foldr1Def</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#foldr1Def" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:foldr1Note" class="def">foldr1Note</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; a) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#foldr1Note" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:findJustDef" class="def">findJustDef</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#findJustDef" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:findJustNote" class="def">findJustNote</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#findJustNote" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:minimumMay" class="def">minimumMay</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Safe-Foldable.html#minimumMay" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:minimumDef" class="def">minimumDef</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; a -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#minimumDef" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:minimumNote" class="def">minimumNote</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#minimumNote" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maximumMay" class="def">maximumMay</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Safe-Foldable.html#maximumMay" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maximumDef" class="def">maximumDef</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; a -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#maximumDef" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maximumNote" class="def">maximumNote</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ord">Ord</a> a) =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#maximumNote" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:minimumByMay" class="def">minimumByMay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Safe-Foldable.html#minimumByMay" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:minimumByDef" class="def">minimumByDef</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#minimumByDef" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:minimumByNote" class="def">minimumByNote</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#minimumByNote" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maximumByMay" class="def">maximumByMay</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Maybe.html#t:Maybe">Maybe</a> a <a href="src/Safe-Foldable.html#maximumByMay" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maximumByDef" class="def">maximumByDef</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; a -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#maximumByDef" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:maximumByNote" class="def">maximumByNote</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-String.html#t:String">String</a> -&gt; (a -&gt; a -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Ord.html#t:Ordering">Ordering</a>) -&gt; t a -&gt; a <a href="src/Safe-Foldable.html#maximumByNote" class="link">Source</a></p></div><h1 id="g:3">Deprecated</h1><div class="top"><p class="src"><a name="v:foldl1Safe" class="def">foldl1Safe</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t) =&gt; (m -&gt; m -&gt; m) -&gt; t m -&gt; m <a href="src/Safe-Foldable.html#foldl1Safe" class="link">Source</a></p><div class="doc"><div class="warning"><p>Deprecated: Use <code>foldl f mempty</code> instead.</p></div></div></div><div class="top"><p class="src"><a name="v:foldr1Safe" class="def">foldr1Safe</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t) =&gt; (m -&gt; m -&gt; m) -&gt; t m -&gt; m <a href="src/Safe-Foldable.html#foldr1Safe" class="link">Source</a></p><div class="doc"><div class="warning"><p>Deprecated: Use <code>foldr f mempty</code> instead.</p></div></div></div><div class="top"><p class="src"><a name="v:findJustSafe" class="def">findJustSafe</a> :: (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Monoid.html#t:Monoid">Monoid</a> m, <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Foldable.html#t:Foldable">Foldable</a> t) =&gt; (m -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Data-Bool.html#t:Bool">Bool</a>) -&gt; t m -&gt; m <a href="src/Safe-Foldable.html#findJustSafe" class="link">Source</a></p><div class="doc"><div class="warning"><p>Deprecated: Use <code>findJustDef mempty</code> instead.</p></div></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>