Send Beginners mailing list submissions to
        [email protected]

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
        [email protected]

You can reach the person managing the list at
        [email protected]

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 <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] help designing types for a gsl fit
Message-ID: <[email protected]>
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
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

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

Reply via email to