Re: [Haskell-cafe] Proper way to write this
27 Dec
2005
27 Dec
'05
2:02 a.m.
Quoth Pupeno <pupeno@pupeno.com>: | 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. Right, that's what I was thinking. Donn Cave, donn@drizzle.com
7511
Age (days ago)
7511
Last active (days ago)
0 comments
1 participants
participants (1)
-
Donn Cave