Use the maybe function from Data.Maybe.<div><br></div><div>maybe :: b -&gt; (a-&gt;b) -&gt; Maybe b -&gt; b<br><div><br></div><div><br><div class="gmail_quote">On 13 April 2011 23:14,  <span dir="ltr">&lt;<a href="mailto:blackcat@pro-ns.net">blackcat@pro-ns.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;ve got some values in GHCi that look like<br>
<br>
Just (Left (Blah [stuff]))<br>
<br>
and I&#39;d like to pull out the (Blah [stuff]) to operate on it.  Is there a way to do this directly in GHCi without writing a helper function?<br>
<br>
thanks<br>
Lee Short<br>
<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org" target="_blank">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div></div>