11 May 13:35
Error: Improperly terminated character constant
From: Ivan Amarquaye <amarquaye.ivan <at> hotmail.com>
Subject: Error: Improperly terminated character constant
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-05-11 11:36:04 GMT
Subject: Error: Improperly terminated character constant
Newsgroups: gmane.comp.lang.haskell.cafe
Date: 2008-05-11 11:36:04 GMT
I'm writing a function dRop to accept words ending in 'es' and drop the last two characters i.e. 'es'.eg. mangoes -> mongo but i keep on getting this error: "Improperly terminated character constant" after running this code which i have left below. Can i get any form of help from anyone in here...?
-----------------------------------------
dRop :: String -> String
dRop word = if drop (length word - 2) word == 'es'
then take (length word - 2) word
else word
--------------------------------------------------
regards
Amarquaye.Ivan
Connect to the next generation of MSN Messenger Get it now!
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed