[Haskell-beginners] Actions v. Functions

MJ Williams matthewjwilliams101 at gmail.com
Sat Oct 19 21:09:01 UTC 2013


For example, `main = do input <- getLine ...', where `getLine' is an 
action as distinguished from a function such as `main'.  Other 
examples of actions in Haskell include `print', `putStrLn' and any 
process that reads from or writes to a file. Of course, the list of 
actions doesn't end there, though the examples here should answer 
your question.
Sincerely,
Matt

At 21:44 19/10/2013, you wrote:
>What do you mean by "action"?
>
>Antoine
>
>
>On Fri, Oct 18, 2013 at 9:26 PM, MJ Williams 
><<mailto:matthewjwilliams101 at gmail.com>matthewjwilliams101 at gmail.com> wrote:
>Hello
>What are the formal properties of an action?
>How does an action differ from a function?
>Sincerely,
>Matthew
>
>_______________________________________________
>Beginners mailing list
><mailto:Beginners at haskell.org>Beginners at haskell.org
>http://www.haskell.org/mailman/listinfo/beginners
>
>
>_______________________________________________
>Beginners mailing list
>Beginners at haskell.org
>http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20131019/8cef61f2/attachment.html>


More information about the Beginners mailing list