[Haskell-cafe] Trouble with `foldl` in composition chain.

2011-06-26 Thread David Banas
When profiling this code: consolidateRPR :: [Sample] - [Sample] smplUnionRecursRev :: [Sample] - Sample - [Sample] sortSamps :: [Sample] - [Sample] smplSetUnion :: [Sample] - [Sample] smplSetUnion = consolidateRPR . (foldl

Re: [Haskell-cafe] [Haskell-Cafe] Constructive Probability Theory and RandProc's σ-algebras

2011-07-06 Thread David Banas
in-line below.) Looking forward to much more conversation with you (and others), -db On Jul 3, 2011, at 9:35 AM, Edward Kmett wrote: On Sun, Jul 3, 2011 at 11:05 AM, David Banas dba...@banasfamily.net wrote: v0.4 of `RandProc` has just been posted to Hackage: http://hackage.haskell.org/package

[Haskell-cafe] Getting segmentation fault when profiling, despite `-K100M'.

2011-08-16 Thread David Banas
Hi all, I'm trying to profile a mixed language program, in which Haskell is NOT the top layer and does not contain the `main' function. (C is/does.) Is this effort doomed to fail? I'm getting a segmentation fault, as soon as the first Haskell function is called, despite having included `-K100M'

[Haskell-cafe] Failed link to mixed-language shared object.

2011-08-18 Thread David Banas
Hi all, Does this trigger recollection in anyone: dbanas@dbanas-eeepc:~/prj/haskell/AMIParse/trunk$ make ghc -dynamic -o ami_test -L. -lami ami_test.o ./libami.so: undefined reference to `__stginit_haskell98_MarshalArray_' ./libami.so: undefined reference to `__stginit_haskell98_MarshalError_'

Re: [Haskell-cafe] Failed link to mixed-language shared object.

2011-08-19 Thread David Banas
On Thu, 2011-08-18 at 20:32 -0700, David Banas wrote: Hi all, Does this trigger recollection in anyone: dbanas@dbanas-eeepc:~/prj/haskell/AMIParse/trunk$ make ghc -dynamic -o ami_test -L. -lami ami_test.o ./libami.so: undefined reference to `__stginit_haskell98_MarshalArray_' ./libami.so

Re: [Haskell-cafe] Failed link to mixed-language shared object

2011-08-21 Thread David Banas
ghc -dynamic -o ami_test -L. -lami ami_test.o ./libami.so: undefined reference to `__stginit_haskell98_MarshalArray_' ./libami.so: undefined reference to `__stginit_haskell98_MarshalError_' collect2: ld returned 1 exit status I was able to solve this by changing these lines: import

Re: [Haskell-cafe] Make shared library - questions

2011-08-28 Thread David Banas
I'm trying to compile shared library. This library will use as part of plugin for some program. If I compile library with option -dynamic my library has links for HS libraries like libHSbase-4.2.0.2-ghc6.12.3.so and so on. But program has crashed constantly. Is it possible to make shared

[Haskell-cafe] Undefined symbol error coming from shared, dynamic library.

2011-09-06 Thread David Banas
Hi all, I'm trying to build a shared, dynamic library for use with a C program. I'm getting an `undefined symbol' error, when I try to run that C program, and was hoping that the last line in the output, below, might mean something to someone. I include the entire output of a `make rebuild'

Re: [Haskell-cafe] Request for help: Recompile of ghc producing ...-ghc7.4.2.sos, which break project builds.

2013-04-27 Thread David Banas
On Saturday, April 27, 2013 6:37:43 AM UTC-7, David Banas wrote: 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

[Haskell-cafe] Question about Newtype op() function arguments.

2013-06-07 Thread David Banas
Hi All, Referring to the following, which is taken from the *Control.Newtype *documentation page: op :: Newtypehttp://hackage.haskell.org/packages/archive/newtype/0.2/doc/html/Control-Newtype.html#t:Newtype n o = (o - n) - n -

Re: [Haskell-cafe] Question about Newtype op() function arguments.

2013-06-12 Thread David Banas
Ah, so is the idea, then, to use *op()* when `n` wasn't actually constructed formally, but rather assembled by the user, so as to match the type of the accessor function normally supplied as the argument to the constructor? On 6/7/2013 4:51 PM, Tom Ellis wrote: On Fri, Jun 07, 2013 at

Re: [Haskell-cafe] Why are field selectors functions?

2013-08-09 Thread David Banas
Wouldn't the implementation hiding feature of the *newtype *idiom be broken, if field selectors were not first class functions? For instance, the following code (taken shamelessly from Ch. 10 of *Real World Haskell*): module Parse ( runParser ) where data ParseState = ParseState { string

[Haskell-cafe] Trouble installing haskeline: ExitFailure 139

2013-09-14 Thread David Banas
Has anyone else hit an unexplained *ExitFailure 139* when trying to install the *haskeline* package? Thanks, -db dbanas@dbanas-lap:~/prj$ cabal install -v haskeline Reading available packages... Choosing modular solver. Resolving dependencies... Extracting /home/dbanas/.cabal/packages/