I discovered what my problem was. I was not
aware that
the executable would be deposited into the current
working
directory of the command prompt. Since the
intermediate
files were generated in the same folder as the
source file, I
assumed the .exe would go there also. The
executable wa
I am new to Haskell and GHC and am using a tutorial
that I found on
the Web to learn. In the tutorial it says
that a command like this can
be used to build an executable
(Windows):
ghc --make test.hs -o test.exe
The compiler had no complaints and output 2
files:
Main.hi and test.o
T
You don't need the parentheses. So, you want something like:
class Foo a b c d e | a b -> c d, a -> d e where...
which means from the paper:
class Foo a b c d e | (a,b) -> (c,d), a -> (d,e)
HTH
- Hal
--
Hal Daume III
"Computer science is no more about computers| [EMAIL PROTECTED]
I'm trying out MPTC with functional dependencies for the first time
in GHC. However, I'm not sure of the syntax. MPJ's ESOP 2000 paper
gives the following example:
class FiniteMap i e fm | fm -> (i,e) where
emptyFM:: fm
lookupFM :: i -> fm -> Maybe e
extendFM :: i -> e -> f
> I am having problems with the ghc ffi, I have compiled the
> Haskell source on the ffi example page to create the stub
> file and the c file, the only problem now is that I can't
> compile the sample c code. I assume that if you place the c
> code and all the files in the ghc include director