[Haskell-cafe] IO platform for testing
p.turner at computer.org
Sat Jul 16 09:50:18 EDT 2005
On 2005 July 16 Saturday 11:19, yin wrote:
> I need some testing 'main' function:
> ./bundle01 <cmd> <arg1> <arg2> ...
Your code is close to working. Most likely the detail which gave you trouble
is the syntax for mod. It should be
> b01_mod a b = a `mod` b
Infix operator names in Haskell all use backquotes.
There are some other, minor problems -- for indexing you need ss!!0, the name
m01_mod, and you may need an 'import' to make getArgs visible.
More information about the Haskell-Cafe