title: Safe `maximum` in Haskell Standard Library?
body: <p>Is there a safe equivalent of <code>maximum</code> in Haskell's Standard Library?</p>
  
  <pre><code>*Main Control.Monad.State Data.List&gt; maximum []
  *** Exception: Prelude.maximum: empty list
  </code></pre>
  
  <p>I tried to find one, <code>(Ord a, Foldable t) =&gt; t a -&gt; Maybe a</code> with <a href="https://www.haskell.org/hoogle/?hoogle=%28Ord+a%2C+Foldable+t%29+%3D%3E+t+a+-%3E+Maybe+a" rel="noreferrer">hoogle</a>, but found none.</p>