Recently, I had to recompile ghc, in order to get the -dyn versions of
the standard libraries installed. (The standard Ubuntu 12.10 64-bit Linux
distribution doesn't include them in its haskell-platform package, and
you can't upgrade base using the normal cabal iinstall approach, from
what I
In trying to compile a 2 year old, previously working project on a new
machine with a fresh Haskell Platform installation, I bumped into this:
ghc -o libami.so -shared -package parsec -lHSrts -lm -lffi -lrt AMIParse.o
AMIModel.o ami_model.o ExmplUsrModel.o Filter.o
/usr/bin/ld:
Can anyone help me solve this link failure?
ghc -o libami.so -shared -package parsec -lHSrts -lm -lffi -lrt AMIParse.o
AMIModel.o ami_model.o ExmplUsrModel.o Filter.o
/usr/bin/ld: /usr/lib/ghc-7.4.2/libHSrts.a(RtsAPI.o): relocation
R_X86_64_32S against `ghczmprim_GHCziTypes_Czh_con_info' can not
Hi experts,
Should I expect the following C code to run to completion, or am I trying
to do something that was never intended?
Thanks,
-db
C code:
1 #include stdio.h
2 #include stdlib.h
3 #include HsFFI.h
4
5 int main()
6 {
7 int argc = 1, i;
8 char* argv[] = {ghcDll,
Does anyone have any advice for optimizing the code, below?
Currently, the profiling results look like this:
COST CENTREMODULE %time %alloc
runFilter Filter90.9 41.0
convT Filter 9.1
Hi experts,
I fear I don't understand how to properly use *Data.IORef*.
I wrote the following code:
1 -- Testing Data.IORef
2 module Main where
3
4 import Data.IORef
5
6 bump :: IORef Int - IO()
7 bump theRef = do
8 tmp - readIORef theRef
9 let tmp2 = tmp + 1
10
back to me, by the higher
level C function that is calling me?*
Thanks, all!
-db
On Fri, Jun 22, 2012 at 8:43 AM, Max Rabkin max.rab...@gmail.com wrote:
On Fri, Jun 22, 2012 at 5:30 PM, Captain Freako capn.fre...@gmail.com
wrote:
12 main = do
13 let theValue = 1
14 print
On Mon, Oct 31, 2011 at 3:19 PM, John Lask jvl...@hotmail.com wrote:
On 1/11/2011 1:35 AM, Captain Freako wrote:
you need to study ArrowLoop and understand that.
Thanks, John.
I'm working my way through Hughes' suggested exercise in `Programming
with Arrows', to wit:
The reader who finds
:: [a] = _
[SF.hs:23:13-42] *SF :
Stopped at SF.hs:23:30-42
_result :: [a] = _
x :: a = _
xs :: [a] = _
[SF.hs:23:30-42] *SF :
(Pattern repeats.)
Do you have any advice?
Thanks,
-db
On Mon, Oct 31, 2011 at 3:19 PM, John Lask jvl...@hotmail.com wrote:
On 1/11/2011 1:35 AM, Captain Freako wrote:
you need
Hi John,
Thanks for all your help.
I've been studying your suggested code:
type FilterAu b c = Automaton (-) b c
liftAu :: ((x,FilterState s)-(y,FilterState s)) - FilterState s -
FilterAu x y
liftAu f s0 = proc x - do
rec (y,s') - arr f - (x,s)
s - delay s0 - s'
returnA
Does anyone have figures 6 and 7, as well as the intervening
unnumbered figure, from `Programming with Arrows'?
Thanks,
-db
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Thanks, Daniel. That was it.
On Tue, Oct 25, 2011 at 5:15 PM, Daniel Fischer
daniel.is.fisc...@googlemail.com wrote:
On Wednesday 26 October 2011, 02:00:49, Captain Freako wrote:
So, do you have any advice for me, with regard to solving this issue:
Implicit import declaration:
Could
In trying to follow along with `Programming with Arrows' by John
Hughes, I'm entering the following code:
1 -- Taken from `Programming with Arrows'.
2
3 module SF where
4
5 import Control.Arrow
6
7 newtype SF a b = SF {runSF :: [a] - [b]}
8
9 instance Arrow SF where
10 arr
, 2011 at 8:29 AM, David Barbour dmbarb...@gmail.com wrote:
On Thu, Oct 27, 2011 at 5:55 AM, Captain Freako capn.fre...@gmail.com
wrote:
SF.hs:11:10: `' is not a (visible) method of class `Arrow'
Failed, modules loaded: none.
import Prelude hiding ((.),id)
import Control.Category
you'll also
Are the archives of this list searchable?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
In response to this:
dbanas@dbanas-eeepc:~$ cabal install arrows
Resolving dependencies...
Configuring lazysmallcheck-0.6...
Preprocessing library lazysmallcheck-0.6...
Building lazysmallcheck-0.6...
[1 of 1] Compiling Test.LazySmallCheck ( Test/LazySmallCheck.hs,
dist/build/Test/LazySmallCheck.o
libraries installed, if not via a `cabal install'?
Thanks,
-db
On Tue, Oct 25, 2011 at 1:45 PM, Daniel Fischer
daniel.is.fisc...@googlemail.com wrote:
On Tuesday 25 October 2011, 22:32:23, Captain Freako wrote:
dbanas@dbanas-eeepc:~$ cabal install base
and got this:
Resolving dependencies
Hi David,
I was referring to the `f' in the `runAuto' function, not the `liftAu' function.
-db
On Wed, Oct 19, 2011 at 8:53 PM, David Barbour dmbarb...@gmail.com wrote:
On Wed, Oct 19, 2011 at 8:07 PM, Captain Freako capn.fre...@gmail.com
wrote:
One more question on the `runAuto' code, John
John Lask wrote:
This is literate code. It expounds on your initial question and provides
two solutions based either on the StateArrow or Automaton
(Remainder omitted.)
John,
Thanks so much for your help!
I'm going to study your example code and try to understand how the
Automaton implicit
On Wed, Oct 19, 2011 at 3:02 PM, John Lask jvl...@hotmail.com wrote:
On 20/10/2011 5:11 AM, Captain Freako wrote:
for your use case then, the StateArrow seems more appropriate as it provides
you with the final state. Ofcourse the Automaton arrow could also be used:
liftAu' f s0 = proc x - do
/2011 5:11 AM, Captain Freako wrote:
for your use case then, the StateArrow seems more appropriate as it provides
you with the final state. Ofcourse the Automaton arrow could also be used:
liftAu' f s0 = proc x - do
rec (y,s') - arr f - (x,s)
s - delay s0 - s'
returnA - (y,s
Hi John,
Thanks for this reply:
Date: Tue, 18 Oct 2011 14:05:22 +1030
From: John Lask jvl...@hotmail.com
Subject: Re: [Haskell-cafe] How to implement a digital filter, using
Arrows?
To: haskell-cafe@haskell.org
Message-ID: BLU0-
smtp384394452fd2750fbe3bcfcc6...@phx.gbl
In this excerpt from the `StateArrow' page:
runState ::
Arrowhttp://hackage.haskell.org/packages/archive/base/4.2.0.2/doc/html/Control-Arrow.html#t:Arrowa
=
StateArrowhttp://hackage.haskell.org/packages/archive/arrows/0.4.1.2/doc/html/Control-Arrow-Transformer-State.html#t:StateArrows
a
*e* b -
Hi all,
If I have a pure function, which maps `(input, initialState)' to `(output,
nextState)', what's the most succinct way of constructing a digital filter
from this function, using Arrows?
Thanks,
-db
___
Haskell-Cafe mailing list
HI all,
How do you wrap a StateArrow in an Automaton?
Thanks,
-db
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
Hi all,
In this excerpt from the
Automatonhttp://hackage.haskell.org/packages/archive/arrows/0.4.1.2/doc/html/Control-Arrow-Transformer-Automaton.html#t:Automatonpage:
runAutomaton ::
(ArrowLoopChttp://hackage.haskell.org/packages/archive/base/4.2.0.2/doc/html/Control-Arrow.html#t:ArrowLoopa,
Hi all,
Is the Arrow-based re-definition of `StateT' included somewhere in the
`Control.Arrow.' stack, or do you put the code into your program explicitly?
Thanks,
-db
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
:27 PM, David Barbour dmbarb...@gmail.com wrote:
On Sat, Oct 8, 2011 at 4:28 PM, Captain Freako capn.fre...@gmail.comwrote:
17 newtype Filter e a = F {
* 18 runFilter :: EitherT e (State FilterState) a
** * 19 } deriving (Monad, MonadState FilterState)
it compiles, but I can't
Hi all,
In this definition from the Parsec library:
parse :: (Stream s Identity t) = Parsec s () a - SourceName -
s - Either ParseError aparse p = runP p ()
what's the significance of `Identity t'?
(`t' isn't used anywhere.)
Thanks,
-db
___
Hi all,
I'm trying to use the State Monad to help implement a digital filter:
17 newtype Filter e a = F {
18 runFilter :: a - EitherT e (State FilterState) a
19 } deriving (Monad, MonadState FilterState)
but I'm getting these compiler errors:
Filter.hs:19:14:
Can't make a derived
Anyone know of a Haskell package containing a function for converting a list
of pole/residue pairs into FIR filter tap weights?
Thanks,
-db
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
problem. And I'm
looking for how to build static library, but no luck.
Cheers,
Sergiy
On 11 September 2011 17:56, Captain Freako capn.fre...@gmail.com wrote:
Sergiy, Tom,
Thanks for your replies.
Sergiy, I was able to get this working without having to recompile my
installed Haskell
Sergiy, Tom,
Thanks for your replies.
Sergiy, I was able to get this working without having to recompile my
installed Haskell libraries.
Tom, you were correct; I needed to explicitly link against the Haskell
run-time system, as well as a few other things:
I changed my ghc link options from
So, did the problem go away after you updated those packages ?
On Sep 8, 2011 2:36 AM, Sergiy Nazarenko nazarenko.ser...@gmail.com
wrote:
Hi David!
I've got same problem. As I see that happens before I've updated
following packages. I needed it because I compile ghc702.
mtl
transformers
34 matches
Mail list logo