<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dumb! I just figured out I was entering the input string in quotes.<br><br>So, I suppose the answer to my question is yes, type CAN be changed along a &gt;&gt;= chain. I was having trouble doing it in a different problem, created this small example to illustrate the problem, and then screwed it up putting quotes around my input string.<br><br>Thanks!<br><br>Michael<br><br>--- On <b>Mon, 10/12/09, Niklas Broberg <i>&lt;niklas.broberg@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Niklas Broberg &lt;niklas.broberg@gmail.com&gt;<br>Subject: Re: [Haskell-cafe] Can type be changed along a &gt;&gt;= chain?<br>To: "michael rice" &lt;nowgate@yahoo.com&gt;<br>Cc: haskell-cafe@haskell.org<br>Date: Monday, October 12, 2009, 12:43 PM<br><br><div id="yiv1016279314">On Mon, Oct 12,
 2009 at 6:37 PM, michael rice <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:nowgate@yahoo.com" target="_blank" href="/mc/compose?to=nowgate@yahoo.com">nowgate@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">transform :: IO ()<br>transform = putStrLn "What is your digit
 string?"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt; getLine<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;= \str -&gt; return ('9':str)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;= \str -&gt; return (read str :: Int)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;&gt;= \i -&gt; putStrLn $ "The number is " ++ show i<br>
</td></tr></tbody></table></blockquote><div></div><div>This code works perfectly for me. What problem are you seeing specifically?<br></div><div></div><div>Cheers,</div><div></div><div>/Niklas</div>
</div></blockquote></td></tr></table><br>