Re: [Haskell-cafe] building a FFI library with cabal

2013-10-05 Thread Tad Doxsee
With a big help from the community, I've fixed my problem. I had to include the extra-libraries when building the hcholmod library. I'll push a new version later today. Tad On Fri, Oct 4, 2013 at 12:36 PM, Tad Doxsee tad.dox...@gmail.com wrote: Hi, I'm trying to create an FFI library

[Haskell-cafe] building a FFI library with cabal

2013-10-04 Thread Tad Doxsee
Hi, I'm trying to create an FFI library to CHOLMOD ( http://www.cise.ufl.edu/research/sparse/cholmod/) but am having problems. My project is here: github.com/tdox/hcholmod. I can link an executable with the build script in the examples directory (line 4). But line 7 does not work (I get

[Haskell-cafe] fundeps = type family

2011-04-03 Thread Tad Doxsee
Hi All, Last week I asked a question with the subject object oriented technique. I got a lot very helpful answers and I thank all who contributed. At the end of my question, I alluded to some problems that I was having with what I wanted to do next, which was to add additional polymorphism. I

Re: [Haskell-cafe] fundeps = type family

2011-04-03 Thread Tad Doxsee
Ryan, That did it! Thanks a lot for your help. Tad On Sun, Apr 3, 2011 at 1:14 PM, Ryan Ingram ryani.s...@gmail.com wrote: On Sun, Apr 3, 2011 at 1:00 PM, Tad Doxsee tad.dox...@gmail.com wrote:   Equality constraints ... enable a simple translation of programs    using functional

Re: [Haskell-cafe] object oriented technique

2011-03-31 Thread Tad Doxsee
Rendel ren...@informatik.uni-marburg.de wrote: Hi, Steffen Schuldenzucker wrote: data Shape = Shape {    draw :: String    copyTo :: Double -  Double - Shape } Tad Doxsee wrote: Suppose that the shape class has 100 methods and that 1000 fully evaluated shapes are placed in a list

Re: [Haskell-cafe] object oriented technique

2011-03-29 Thread Tad Doxsee
, Mar 29, 2011 at 12:57 AM, Gregory Collins g...@gregorycollins.net wrote: On Tue, Mar 29, 2011 at 7:49 AM, Tad Doxsee tad.dox...@gmail.com wrote: class ShapeC s where  draw :: s - String  copyTo :: s - Double - Double - s -- needs {-# LANGUAGE GADTs #-} data ShapeD  where  ShapeD :: ShapeC s

Re: [Haskell-cafe] object oriented technique

2011-03-29 Thread Tad Doxsee
 where dc = Circ ( ++ show x ++ , ++ show y ++ ) -- ++ show r rectangle :: Double - Double - Double - Double - Shape rectangle x y w h = ... (analogous) shapes = [rectangle 1 2 3 4, circle 4 3 2, circle 1 1 1] -- Steffen On 03/29/2011 07:49 AM, Tad Doxsee wrote: I've been trying to learn

Re: [Haskell-cafe] object oriented technique

2011-03-29 Thread Tad Doxsee
, -Tako On Tue, Mar 29, 2011 at 07:49, Tad Doxsee tad.dox...@gmail.com wrote: I've been trying to learn Haskell for a while now, and recently wanted to do something that's very common in the object oriented world, subtype polymorphism with a heterogeneous collection. It took me a while, but I

[Haskell-cafe] object oriented technique

2011-03-28 Thread Tad Doxsee
I've been trying to learn Haskell for a while now, and recently wanted to do something that's very common in the object oriented world, subtype polymorphism with a heterogeneous collection. It took me a while, but I found a solution that meets my needs. It's a combination of solutions that I saw

[Haskell-cafe] NFData instance for Numeric.LinearAlgebra Matrix

2011-03-26 Thread Tad Doxsee
Hello, Is there already an instance of NFData (from Control.DeepSeq in the deepseq package) for the type Matrix (from Numeric.LinearAlgebra in the hmatrix package) somewhere? If not, how does one define one? (The data declaration for Matrix is in a hidden module, Data.Packed.Internal.Matrix, if