title: Haskell: use Maybe but print an actual number rather than "Just ... "
body: <p>So here is my program. I want to implement a maximum function on my own for an assignment. The problem is that to me it seems weird to print the number with the word "Just" in front of it... How would I fix this to print just a number?</p>
  
  <pre><code>mymax :: Ord a=&gt;[a]-&gt;Maybe a
  mymax [] = Nothing
  mymax [x] = Just x
  mymax (x:y:xs) = if x &lt; y then mymax(y:xs) else mymax(x:xs)
  </code></pre>