Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 6th, 2007, 08:12 AM
safaa.khatib safaa.khatib is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 2 safaa.khatib User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 17 sec
Reputation Power: 0
Instance of Monad

Hi all,
I hope here is the correct place where i can find the answer that i'm looking for.
I'm writing a code for the xxtea, it is a modification for the Tiny encryption algorithm. The problem is that when i am running my code it is giving me this:
"Instance of Monad (Array Word32) required for definition of coding"
the code is below; hope some one will reply and tell what is the problem.thnx


type TEA_arr = Array Word32 Word32

coding :: TEA_arr -> Word32 -> Word32 -> [Word32] -> Word32 -> Word32 -> TEA_arr
coding v s e k 0 _ = v
coding v s e k q p = do
let sum = getSum s
e = shiftSum sum
y = v ! (p+1)
z = v ! p
mx = getMx y z sum k e p
newarr = v // [(p,(v ! p)+ mx)]
coding newarr sum e k (q - 1) (p+1)

Reply With Quote
  #2  
Old May 16th, 2007, 11:29 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
Instance of gonad more like.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Instance of Monad


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway