run time error

"Fabian Meier" <[email protected]>
Newsgroups gmane.comp.lang.haskell.hugs.bugs
Message-ID <001001c2922e$e32fb260$2201a8c0@fabian>
Hello!

The file versuch.lhs (attachment) consists of a function gc2. If you try gc2 25 15, hugs produces a run time error.

gc2 ist defined as:

> gc2::Int->Int->Int
> gc2 a1 a2 = gc2 a2 (mod a1 a2)
> gc2 a2 0 = a2

CU

Fabian Meier
versuch.lhs (application/octet-stream, 69 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.