LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > Bits and Pixels
User Name
Password

Notices


Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site, frigidcode.com.
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:

http://hackage.haskell.org/packages/...RealWorld.html

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 1146 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:56 AM.

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