1 Jul
2006
1 Jul
'06
8:40 a.m.
bringert:
noop :: IO () -- generalise to other Monads?
This would actually not be too hard to write, given my existing work, and then of course the executable would simply be a thin wrapper.
As suggested above, this patch moves the core functionality to a library module, Control.Nop. Furthermore, the nop function is generalized to a polyvariadic function, so that you can now write for example:
Ah, great. Now we can write a fast nop using ByteStrings for speed. import Data.ByteString.Char8 import Control.Nop -- | main, do nothing quickly main :: IO () main = nop (pack "do nothing") Demo patch for fast-hnop attached. -- Don