Dumb guy needs help

Davey_dude forceddragon at hotmail.co.uk
Mon Apr 3 08:58:23 EDT 2006


Im new to Haskell, hugs in particular, and was hoping you could help me solve
a problem. It should be pretty easy. 
I have to use hugs to create an expression "data Exp = Plus Exp Exp| Sub Exp
Exp| Mult Exp Exp| Power Exp Exp | Number [Int]" to define a constant "ex1
:: Exp" that represents the function ((3*4) + (2*(12^2))) - 2. Exp is an
expression where numbers are represented by a list of digits (540 is
[5,4,0]). Got any ideas. Any help is greatly needed!
--
View this message in context: http://www.nabble.com/Dumb-guy-needs-help-t1386770.html#a3724993
Sent from the Haskell - Glasgow-haskell-users forum at Nabble.com.



More information about the Glasgow-haskell-users mailing list