; needed.
For example:
foreign export ccall foo :: ...
foreign import ccall "& foo" fooptr :: FunPtr (...)
Cheers,
Kyra
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
On 11/21/2010 3:20 AM, JosИ Romildo Malaquias wrote:
When compiling blaze-builder-0.2.0.1 with ghc-7.0.1 on my ~amd64 gentoo
system, I am getting the shown below.
Any clues?
Romildo
[...]
Building blaze-builder-0.2.0.1...
[1 of 8] Compiling Blaze.ByteString.Builder.Internal (
Blaze/ByteStrin
I wonder if llvm-gcc supports it's own (gcc) extensions. If it supports
then there is no need to stuck in clang right now.
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
import Unsafe.Coerce
class Test a where
test :: a -> Int
data Foo = Foo Int Int
data Bar = Bar Int Int
instance Test Bar where test (Bar a b) = a + b
instance Test Foo where test foo = test (unsafeCoerce foo :: Bar)
main :: IO ()
main = print $ test (Foo 123 345)
Cheers,
Kyra
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
John Goerzen wrote:
GЭnther Schmidt wrote:
Kyra I've tried any sort of values to any sort of columns. I tried "insert
into somesinglecolumntable (someNumbercolumn) values (?)" [toSql 5] ...
and so on.
So I'm not certain at all the error message does actually give th
Serge LE HUITOUZE wrote:
I do the following:
dlltool -d cproj1.def -l libcproj1.a
ghc --make testFFI_2.hs -optl-lcproj1 -optl-L.
This seems fine, since it produces a "testFFI_2.exe".
However, executing it, I get a MSWindows error box with a message
that looks like (approximate translat
ivial for the original example (see my previous post on this subj) and
can be extended further. For example, in my homebrew COM library I
pretty successfully marshall 16-byte Variants *by value* by means of two
consecutive "legal" Word64 arguments.
Cheers,
Kyra
xactly the same, so for FFI purposes this 'func' can be declared as
something like:
foreign import ccall unsafe :: Float -> Float -> IO ()
Cheers,
Kyra
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Andreas Marth wrote:
I solved this with adding C:\WINNT\system32\oleaut32.dll to the files the
linker shold link.
Was that correct?
I prefer "-loleaut32" but see no big difference.
Because this dll crashes Excel instantly. I used the code suggested by Esa
Ilari Vuokko:
newtype BSTR = BSTR CWS
Kyra wrote:
Use SysAllocString... family. Also, remember they (by convention) have
to be released from the client side.
Oops, "they" = "such allocated BSTRs".
Cheers,
Kyra
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
ht
) have
to be released from the client side.
Cheers,
Kyra
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Bulat Ziganshin wrote:
Hello Simon,
Tuesday, November 22, 2005, 8:17:38 PM, you wrote:
SPJ> I have not written anything about what I plan to do in GHC, but
SPJ> basically it amounts to allowing you to use a data type as a
SPJ> kind. Busy doing GADTs and impredicativity at the moment though
S
7;s no documentation. If anyone were interested in
using/contributing I could give CVS access to the code.
Keean.
Yes, I'm definitely interested in evaluating/using/contributing your
framework.
Regards, Kyra
___
Haskell-Cafe mailing list
Hask
13 matches
Mail list logo