[Haskell] a quick question

Ramy Abdel-Azim ramy.abdelazim at gmail.com
Thu Feb 3 04:01:08 CET 2011


No need to apologize. Not dumb of you. The mandatory else is unusual. I
don't personally know of any other language that requires an else for every
if.

On Wed, Feb 2, 2011 at 9:07 PM, Navin Rustagi <navin_kunta at yahoo.com> wrote:

> Sorry, dumb of me  doesn't give this error anymore.
> thanks,
> Navin
> ------------------------------
> *From:* Ramy Abdel-Azim <ramy.abdelazim at gmail.com>
> *To:* Navin Rustagi <navin_kunta at yahoo.com>
> *Cc:* Haskell at haskell.org
> *Sent:* Wed, February 2, 2011 7:55:09 PM
> *Subject:* Re: [Haskell] a quick question
>
> Missing else?
>
> On Wed, Feb 2, 2011 at 8:49 PM, Navin Rustagi <navin_kunta at yahoo.com>wrote:
>
>> Hi all,
>>
>> I am stuck at a piece of code and am not able to figure out the error.
>>
>>
>> uptable::[[Char]]->[([Char],Int,Int,Int,Int)]->[([Char],Int,Int,Int,Int)]
>> uptable (xf:xs) main_array = map (\(x,y,z,r,t)-> do if x==xf then tupup x
>> y z r t second xs ) main_array
>>
>>
>> here tupup and second are functions which are working .  When compiling
>> this it gives the error
>>
>> Syntax error in expression (unexpected `)')
>>
>>
>> I am not able to figure out where I could have gone wrong. I have tried
>> all bracketing combinations and nothing works.
>>
>> Navin
>>
>>
>> _______________________________________________
>> Haskell mailing list
>> Haskell at haskell.org
>> http://www.haskell.org/mailman/listinfo/haskell
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell/attachments/20110202/39461ee9/attachment-0001.htm>


More information about the Haskell mailing list