Welcome to the most active Linux Forum on the web.
Go Back > Blogs > Bits and Pixels
User Name


Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site,
Rate this Entry

Haskell solves the problem of unexpected IO side effects

Posted 12-20-2012 at 02:40 PM by hydraMax
Updated 12-20-2012 at 02:46 PM by hydraMax
Tags haskell, humor

Programmers are universally familiar with the challenges of dealing with unwanted side effects in IO operations. Few are aware, however, that the Haskell programming language provides a very straightforward approach to dealing with this problem, packaged in a convenient module:

The solution involves making available a full existential state as a retrievable value. This value can then be transformed back into the IO Monad, to restore such state if necessary.

Helper functions allow you to create, from IO actions, first order functions mapping states to contingent states, and even to deal with the issue of hypothetical state transformations.

This approach has both the advantages of a clean interface and a simple concept structure. With adoption, it has a lot of potential to revolutionize systems programming, and it will certainly see interest from industrial sectors specializing in mission critical systems.
Posted in Uncategorized
Views 652 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 12:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration