title: Getting a type mismatch error with the Haskell zipWith function
body: <p>I am new to Haskell. I have a <code>Neuron</code> data type, which owns a list of <code>Double</code>  values:</p>
  <pre><code>data Neuron = Neuron [Double]
        deriving  (Eq, Read, Show)
  </code></pre>
  <p>I am trying to do the sum of each element in the list owned by the Neuron and in the other list:</p>
  <pre><code>sommeNeuron :: Neuron -&gt; [Double] -&gt; Neuron 
  sommeNeuron n1 n2 = n'
                where {
                       --n' = Neuron(zipWith (+) n1 n2);
                       n' = zip n1 n2
                }
  </code></pre>
  <p>That gives me a compile-time error:</p>
  <blockquote>
  <p>Couldn't match expected type ‘[a]’ with actual type ‘Neuron’</p>
  </blockquote>