Send Beginners mailing list submissions to
        beginners@haskell.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  help designing types for a gsl fit (Francesco Ariis)


----------------------------------------------------------------------

Message: 1
Date: Fri, 2 Jun 2017 19:30:39 +0200
From: Francesco Ariis <fa...@ariis.it>
To: beginners@haskell.org
Subject: Re: [Haskell-beginners] help designing types for a gsl fit
Message-ID: <20170602173039.gb2...@casa.casa>
Content-Type: text/plain; charset=us-ascii

On Fri, Jun 02, 2017 at 06:04:44AM +0000, PICCA Frederic-Emmanuel wrote:
> Now I want this to work also with C
> 
> C -> [a1..., an] ++ [b1, .... bm]
> 
> So the C instance is juste the (toGsl a) ++ (toGsl b)
> 
> Is there a way to write this generically for other type  construct like
> (data D = D C A) etc....

Hello Frederic,
    maye Generic programming [1] is what you need?

[1] https://wiki.haskell.org/Generics

> 2) the fromGsl case

2) is more tricky to me. How do I decide where to split? Feels like
parsing data.


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 108, Issue 2
*****************************************

Reply via email to