[Haskell-beginners] I need advice on design

Daniel Fischer daniel.is.fischer at web.de
Mon Dec 28 13:10:12 EST 2009

Am Montag 28 Dezember 2009 18:14:53 schrieb Amy de Buitléir:
> I'm building a library of components for artificial neural networks.
> I'm used to object-oriented languages, so I'm struggling a bit to
> figure out how to do a good design in a functional programming
> language like Haskell.

I can't say what design would be best to implement neural networks in Haskell, but

> Q2: I thought there might be some way to define a function type, but
> the following doesn't work. Is there something along these lines that
> would work?
> type activationFunction = [Double] -> Double

if the type name starts with a lower case letter, it's a type variable, so you'd want

type ActivationFunction = [Double] -> Double

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20091228/0a6ced2f/attachment.html

More information about the Beginners mailing list