<div dir="ltr">Hi -<div><br></div><div>I am not an experienced Haskell programmer and would like to have some help with the following problem ..</div><div><br></div><div>I am trying to validate a bunch of inputs and found the package Data.Validation. I am also using Data.Time for date and time. I have a function like this ..</div><div><br></div><div>validateOpenDate :: ZonedTime -> Validation [String] ZonedTime</div><div><br></div><div>It's supposed to validate a date for which I need to fetch the current date and time. I can do that with getZonedTime :: IO ZonedTime. I want to check if the current time is less than the date time I pass to the function and return an appropriate Validation.</div><div><br></div><div>The question is how do I lift the result from IO into the Validation ? Or is there any alternative strategy that I should consider for this validation ? I have a number of other validations which follow the same strategy but don't have the IO. My final goal is to be able to compose all these validations applicatively to prepare a final ADT in a smart constructor.</div><div><br></div><div>Any help will be appreciated ..</div><div><br></div><div>regards.<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Debasish Ghosh<br><br></div></div></div></div>