blems? Is there some way to combine the existing State
and Writer monads to avoid having to do this?
If there's nothing seriously wrong here, I was thinking my next step
would be to try changing the lists to monoids (like in the Writer
monad), and then to try writing a transformer version of
On Thu, Sep 25, 2008 at 10:34 AM, Henning Thielemann
<[EMAIL PROTECTED]> wrote:
> Instead of rewriting from scratch, you can also define
>
> newtype StateWriter l s a = StateWriter (StateT s (Writer l) a)
Thanks for the tip! I knew there must be a way to reuse some of the
existing machinery. I'
> The input and output are infinite streams. I have a few questions:
>
> 1) Is it possible to change it to use arrows? How would it look like?
> 2) How would one implement an continuous time version?
Yampa can do *exactly* what you're asking for. Unfortunately the code
seems to be a little rough
and
the corresponding forward declaration, the program runs fine! Does
ghc no longer need this call or are my toy programs just being lucky
sofar?
Cheers,
- Anthony LODI
=
(archlinux32 -- 2.6.32)
> hsc2hs CInterface.hsc
> ghc --make CInterface
&
> I'm trying to build some haskell code as a .so/.dll so that it can
> ultimately be used by msvc. I have it working when I compile by hand
> (listed below) but I can't get the exact same thing built/linked with
> cabal. On linux everything builds fine, but when I try to link the
> resulting .so