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