On Tue, Jul 15, 2008 at 11:51 PM, PJ Durai <[EMAIL PROTECTED]> wrote:
> I am trying to import some functions from a windows DLL. I am getting
> strange errors. (This used to work with previous versions of GHC. 6.6
> I think.).
You may have to create an import library for the DLL. I had a similar
Dear Group,
I've spend the last few days figuring out the solution to Euler Problem 201 in
haskell. I first tried a relatively elegant approach based on Data.Map but
the performance was horrible. I never actually arrived at the answer. I then
rewrote the same algorithm using STUArrays and it w
On Tue, 2008-07-15 at 19:45 -0500, Austin Seipp wrote:
> For the purpose of experimenting with NDP I went through the
> process of getting the GHC head from darcs.haskell.org. As
> specified in the developer wiki[1], using darcs get is basically
> not possible because there're so many patches. So
On 2008 Jul 15, at 20:45, Austin Seipp wrote:
For the purpose of experimenting with NDP I went through the
process of getting the GHC head from darcs.haskell.org. As
specified in the developer wiki[1], using darcs get is basically
not possible because there're so many patches. So I downloaded
For the purpose of experimenting with NDP I went through the
process of getting the GHC head from darcs.haskell.org. As
specified in the developer wiki[1], using darcs get is basically
not possible because there're so many patches. So I downloaded
http://darcs.haskell.org/ghc-HEAD-2008-06-06-ghc-
John Meacham <[EMAIL PROTECTED]> wrote:
> Chris Kuklewicz wrote:
> > I have reached an impasse in designing a Haskell API for the
> > google's The messages in protobuf are defined in a namespace
> > that nests in the usual hierarchical OO style that Java
> > encourages.
>
> > To avoid namespace con
On 2008.07.15 13:59:32 -0700, Mike Gunter <[EMAIL PROTECTED]> scribbled 0.2K
characters:
>
> How are anchor references in Haddock supposed to work?
>
> When I use "Dir.Mod#foo", the resulting HTML contains:
>
> instead of the more desirable:
>
>
> User error or bug?
>
> thanks,
> -m
For w
Greetings
I am trying to import some functions from a windows DLL. I am getting
strange errors. (This used to work with previous versions of GHC. 6.6
I think.).
This is my import statement:
foreign import stdcall "ace.h AdsConnect" adsConnect' :: CString ->
Ptr CInt -> IO CInt
This is the bui
On Tue, Jul 15, 2008 at 12:21:16PM +0100, Chris Kuklewicz wrote:
> I have reached an impasse in designing a Haskell API for the google's
> The messages in protobuf are defined in a namespace that nests in the usual
> hierarchical OO style that Java encourages.
>
> To avoid namespace conflicts, I ma
How are anchor references in Haddock supposed to work?
When I use "Dir.Mod#foo", the resulting HTML contains:
instead of the more desirable:
User error or bug?
thanks,
-m
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskel
fero wrote:
And what if writing new application? Has anybody experience with enterprise
application in functional language? Is it really clearer? I can see a
advantage in using Scala but it doesn't have some features from Haskell or
CAL or requires more code to write. Or better has anybody experi
And what if writing new application? Has anybody experience with enterprise
application in functional language? Is it really clearer? I can see a
advantage in using Scala but it doesn't have some features from Haskell or
CAL or requires more code to write. Or better has anybody experience with
the
Thanks, Rahul, Don. These work...
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
jefferson.r.heard:
> Is there a library out there that will allow me to remote-control the
> firefox or mozilla browsers, e.g. change the current page, open a new
> tab?
Yeah, use the haskell selenium bindings, on hackage.haskell.org
--- Don
___
Haskell
Selenium (http://selenium.openqa.org/) might do what you want.
The bindings were announced on this list a little while ago
(http://tinyurl.com/se-bindings)
On Tue, Jul 15, 2008 at 3:12 PM, Jefferson Heard
<[EMAIL PROTECTED]> wrote:
> Is there a library out there that will allow me to remote-contro
Is there a library out there that will allow me to remote-control the
firefox or mozilla browsers, e.g. change the current page, open a new
tab?
--
I try to take things like a crow; war and chaos don't always ruin a
picnic, they just mean you have to be careful what you swallow.
-- Jessica Edwar
On Wed, Jul 16, 2008 at 12:54 AM, Henning Thielemann
<[EMAIL PROTECTED]> wrote:
> Sooner or later you want generalize your datatypes. Then you can define
> data A b = A b
> and you do not need to import B any longer. I do not know if this is a
> generally applicable approach, but it helped me in
What about generating the verbose accessor/single module code, and
then creating a hierarchical module space as well, all importing your
Base module, and reexporting the data types you want as well as less
verbosely named accessor functions? Of course, this will break record
update syntax,
Chris Kuklewicz wrote:
There is no way to create a "A.hs-boot" file that has all of
(1) Allows A.hs-boot to be compiled without compiling B.hs first
(2) Allows B.hs (with a {-# SOURCE #-} pragma) to be compiled after
A.hs-boot
(3) Allows A.hs to compiled after A.hs-boot with a consistent
On Tue, 15 Jul 2008, Chris Kuklewicz wrote:
Consider these 3 files:
A.hs:
module A(A) where
import B(B)
data A = A B
B.hs
module B(B) where
import A(A)
data B = B A
Main.hs
module Main where
import A
import B
main = return ()
Sooner or later you want generalize your datatypes. Then y
Thanks for the fix. I have gotten the darcs version and I am compiling...
Niklas Broberg wrote:
Hi all,
I'm pleased to report that haskell-src-exts is now updated to
understand Template Haskell syntax (it used to understand pre-6.4 TH,
but now it works with the current version). At least I hop
Ah, a teachable moment. One of us is not entirely correct about what GHC can do
with this example. Hopefully I am wrong, but my experiments...
Max Bolingbroke wrote:
And there is no way ghc can compile these in separate modules.
I may be being redundant here, but you may not know that GHC a
Hello,
> data LSet t where
> Nil :: LSet Nil
> Ins :: (Member a t b
> , If b t (a ::: t) r)
> => L a -> LSet t -> LSet r
>
Try replacing both original occurrences of r, i.e. (untested)
Ins :: (Member a t b, If b t (a ::: t) (LSet r)) => L a -> LSet t ->
LSet r
At Tue, 15 Jul 2008 10:02:23 -0400,
Jeff Polakow wrote:
[...]
> >
> Type classes are open so there is nothing to prevent you from adding another
> instance for If, perhaps in a different module, which returns some arbitrary
> type.
I see what you mean...so I tried to make Ins return an LSet of
"so
Hello,
> > > data LSet t where
> > > Nil :: LSet Nil
> > > --either add the new element or do nothing
> > > Ins :: (Member a t b
> > > , If b (LSet t) (LSet (a ::: t)) r)
> > > => L a -> LSet t -> r
> > >
> > The constructor Ins needs to return an LSet. Maybe try re
At Tue, 15 Jul 2008 09:43:40 -0400,
Jeff Polakow wrote:
> Hello,
Hi Jeff,
>
> > data LSet t where
> > Nil :: LSet Nil
> > --either add the new element or do nothing
> > Ins :: (Member a t b
> > , If b (LSet t) (LSet (a ::: t)) r)
> > => L a -> LSet t -> r
> >
> Th
Hello,
> data LSet t where
> Nil :: LSet Nil
> --either add the new element or do nothing
> Ins :: (Member a t b
> , If b (LSet t) (LSet (a ::: t)) r)
> => L a -> LSet t -> r
>
The constructor Ins needs to return an LSet. Maybe try replacing
occurrences of r with
I have a problem with applying a type constraint in the
constructor of a GADT...I wrote some type level code for sets
using empty types and fundeps, along the lines of Conrad Parker's
Instant Insanity and Oleg's Lightweight Static Resources. At this
level things works OK so I have empty types A
> And there is no way ghc can compile these in separate modules.
I may be being redundant here, but you may not know that GHC actually
can compile mutually recursive modules. See
http://www.haskell.org/ghc/docs/latest/html/users_guide/separate-compilation.html#mutual-recursion
. Of course, this is
I have reached an impasse in designing a Haskell API for the google's
protocol-buffers data language / format. (
http://code.google.com/apis/protocolbuffers/docs/overview.html )
The messages in protobuf are defined in a namespace that nests in the usual
hierarchical OO style that Java encourages.
30 matches
Mail list logo