title: Why is the compiler not recognizing this type alias?
body: <p>does anyone know why the compiler isn't recognizing this type alias?</p>
  
  <pre><code>viewBoardCanvas : Model -&gt; Html Msg
  viewBoardCanvas model =
      case model.game of
          Nothing -&gt; Options.div [] [ Button.render Mdl [ 0 ] model.mdl [] [ text "Start Game" ] ]
          Just Game -&gt; text "I'm a game!"
  </code></pre>
  
  <p>It says it can't find pattern game, but in my <em>Types.elm</em> file I have.</p>
  
  <pre><code>type alias Game = { board : Html Msg , players : List Player }
  
  type alias Model = { resume : List ResumeSections , mdl : Material.Model , route : Route , game : Maybe Game }
  </code></pre>