[Haskell-cafe] StateWriter: a monad-writing exercise

2008-09-25 Thread Anthony LODI
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

Re: [Haskell-cafe] StateWriter: a monad-writing exercise

2008-09-25 Thread Anthony LODI
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'

[Haskell-cafe] Haskell, arrows and signal processing

2010-09-09 Thread Anthony LODI
> 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

[Haskell-cafe] cabal: problem building ffi shared library and significance of __stginit

2010-05-18 Thread Anthony LODI
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 &

[Haskell-cafe] Re: cabal: problem building ffi shared library and significance of __stginit

2010-05-19 Thread Anthony LODI
> 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