[Haskell-cafe] Proper way to write this

Pupeno pupeno at pupeno.com
Mon Dec 26 10:09:16 EST 2005

On Monday 26 December 2005 02:41, Donn Cave wrote:
> I don't think it will be too much worse.  I would not try to
> combine the struct updates, in the "both" case -- it doesn't buy
> you anything, and pulls you into duplication you don't want.
What about this

runDaytimeServer :: DaytimeServer -> IO DaytimeServer
runDaytimeServer dts = do
  dts' <- runStreamDaytimeServer dts
  dts' <- runDgramDaytimeServer dts'
  return dts'


I moved the structure update of dts into run_DaytimeServer.
Pupeno <pupeno at pupeno.com> (http://pupeno.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20051226/df751196/attachment.bin

More information about the Haskell-Cafe mailing list