title: Error FS0001: The type 'string -> seq<unit>' is not compatible with the type 'seq<'a>'
body: <p>I have a difficult time understanding the error messages in F#, as this is my first time using a typed functional language. Here is an example of my code:</p>
  
  <pre><code>let getAllFiles (directory : string) =
      Directory.GetFiles(directory)
  let getFileInfo =
      getAllFiles 
      |&gt; Seq.map (fun eachFile -&gt; (eachFile, new FileInfo(eachFile)))
  </code></pre>
  
  <p>I received the following error message: "Error FS0001: The type 'string -> seq' is not compatible with the type 'seq&lt;'a>'"</p>
  
  <p>What changes can I make? Thank you in advance.</p>