Neuron in Haskell