[Haskell-cafe] Re: Interesting new user perspective

Iain Barnett iainspeed at gmail.com
Sat Oct 11 15:30:25 EDT 2008


On 11 Oct 2008, at 6:34 pm, apfelmus wrote:

> Andrew Coppin wrote:
>> Martin DeMello wrote:
>>> http://blog.moertel.com/articles/2006/10/18/a-type-based-solution- 
>>> to-the-strings-problem
>>>
>>> is a brilliant example of a common workaday problem found in other
>>> languages, and solved elegantly in Haskell
>>>
>>
>> Oh, hey, that's pretty nice...
>
> ... and a solution to a problem that you souldn't have in the first
> place. I mean, if you want to construct XML or SQL statements, you  
> ought
> to use an abstract data type that ensures proper nesting etc. and  
> not a
> simple string.

Do you have an example of what you mean?

Personally, I use stored procedures with a database as they protect  
from sql injection attacks (unless you write some really stupid  
procedures).


Iain





More information about the Haskell-Cafe mailing list