1 <span class="kw1">import</span> Control<span class="sy0">.</span><a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#t:Monad"><span class="kw4">Monad</span></a>
3 main <span class="sy0">=</span> <span class="kw1">do</span>
4 c <span class="sy0"><-</span> <a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:getChar"><span class="kw3">getChar</span></a>
5 when <span class="br0">(</span>c <span class="sy0">/=</span> ' '<span class="br0">)</span> <span class="sy0">$</span> <span class="kw1">do</span>
6 <a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:putChar"><span class="kw3">putChar</span></a> c
9 main <span class="sy0">=</span> <a href="http://haskell.org/ghc/docs/latest/html/libraries/base/Prelude.html#v:interact"><span class="kw3">interact</span></a> shortLinesOnly