[Haskell-beginners] Type error in sub-function

Kim-Ee Yeoh ky3 at atamo.com
Thu Jul 24 07:56:05 UTC 2014


On Wed, Jul 23, 2014 at 9:45 PM, 양철웅 <cwyang at aranetworks.com> wrote:

> I changed the code like belows and it works.


On a higher-level, you might want to reconsider the design of that function
called parseHeader.

It has type: (a -> IO b) only because there's a special case "now" which
apparently requires querying for the current time. Other than that, it's a
pure function.

Is there a way to make it a pure function?

-- Kim-Ee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140724/6f4f5592/attachment.html>


More information about the Beginners mailing list