title: Elm - Dynamic Html Option tags within a Select tag
body: <p>Elm newbie here.</p>
  
  <p>When I replace the <code>CustomerSelect</code> element within the below <code>Mpower</code> module with the following one</p>
  
  <pre><code>customers = ["Select Customer","Customer 1","Customer 2","Customer 3"]
  customerSelect =
    select [ ]
      [ List.map customerItem customers
      ]
  </code></pre>
  
  <p>I get an Elm Compiler "Type Mismatch" error:</p>
  
  <blockquote>
    <p>Function <code>select</code> is expecting the 2nd argument to be:</p>
  
  <pre><code>List VirtualDom.Node
  </code></pre>
    
    <p>But it is:</p>
  
  <pre><code>List (List Html)
  </code></pre>
  </blockquote>
  
  <p>Where does this come from?</p>
  
  <pre><code>module Mpower where
  
  import Html exposing (..)
  import List exposing (..)
  
  customerItem custname =
    option [ ] [ text custname ]
  
  customerSelect =
    select [ ]
      [
      customerItem "Select Customer",
      customerItem "Customer 1",
      customerItem "Customer 2",
      customerItem "Customer 3"
      ]
  
  view =
    div []
      [ customerSelect
      ]
  
  main =
    view
  </code></pre>