Am Dienstag, 13. April 2004 16:07 schrieb Paul Cosby:
> Hi,
>
> I am very new to haskell and the program hugs and I am having problems
> using the wildcard operator _
>
> Every time I try to use it in an definition it says something like the
> symbol /017 is not recognised.
Are you sure that it sa
On 2004-04-13 at 18:52+0200 Ketil Malde wrote:
> Paul Cosby <[EMAIL PROTECTED]> writes:
>
> > Every time I try to use [underscore] in an definition it says
> > something like the symbol /017 is not recognised
>
> Could that be \017, i.e. octal 17 (defined in ASCII as SI, whatever
> that may be)?
It's not really "newbie" stuff, but maybe this is what you're looking for:
http://www.cse.unsw.edu.au/~chak/haskell/ffi/
#g
--
At 09:56 13/04/04 -0700, Russ Lewis wrote:
Does Haskell have some mechanism that allows it to link to C, or other
imperative languages?
I know, you could use the IO M
Hi,
The Foreign Function Interface (FFI) is your friend for these tasks:
http://www.cse.unsw.edu.au/~chak/haskell/ffi/
On the haskell.org web page, under "libraries and tools" there are
links to
a number of tools to help you connect your C & haskell programs.
The GreenCard and c->haskell tools
Does Haskell have some mechanism that allows it to link to C, or other
imperative languages?
I know, you could use the IO Monad to do it...using stdin and stdout as
pipes to any other program. But is there a way to link Haskell into a C
program?
Thanks again for the help for a newbie...
Ru
Paul Cosby <[EMAIL PROTECTED]> writes:
> Every time I try to use [underscore] in an definition it says
> something like the symbol /017 is not recognised
Could that be \017, i.e. octal 17 (defined in ASCII as SI, whatever
that may be)?
> Any help suggestions?
Wild guess: Are your files using th
Hi,
I am very new to haskell and the program hugs and I am having problems using the wildcard operator _
Every time I try to use it in an definition it says something like the symbol /017 is not recognised. I am sure my defintions are correct as I tested it with an example defintion from Alan
> Try upgrading GHC.
Thanks, I'll try that.
Would it be too much to ask that Haddock be distributed with GHC?
Reasons for:
- GHC library docs are produced with Haddock
- GHC library docs already include Haddock interface files
- would ensure version of Haddock matches that used to produce int
It is because you use 'div' instead of '/'.
div :: Integral a => a -> a -> a
(/) :: Fractional a => a -> a -> a
Rationals are instance of the class Fractional, but not of Integral
Prelude> :i Fractional
class Num a => Fractional a where
(/) :: a -> a -> a
recip :: a -> a
fromRational :: Ra
when loading the following code, hugs escaped and reported that
ERROR "cal24.hs":10 - Instance of Integral (Ratio Integer) required for
definition of Main.eval
I don't know why and how to solve it, anyone help me?
data ETree = Add ETree ETree
| Sub ETree ETree
| Mul ETree
Yes, I suspect you have a mismatch between the version of Haddock on
your system and the version of Haddock used to produce the interfaces.
Try upgrading GHC.
Cheers,
Simon
> -Original Message-
> From: Bayley, Alistair [mailto:[EMAIL PROTECTED]
> Sent: 05 April 2004 16:19
> To:
11 matches
Mail list logo