title: How can i do better my palidrom program?
body: <p>I have problem with my program : The program has to read a file, line to line and has to say if it is a palindrom and the length every word. I'm very very new in Haskell and only have this, but it doesnt work :(</p>
  
  
  
  <pre class="lang-haskell prettyprint-override"><code>main = do
    inhalt &lt;- readFile "palindrom.txt"
    laengeWort = length inhalt
    if istPalindrom inhalt
      then putStrLn (inhalt ++ " ist ein Palindrom und hat die Laenge "++ laengeWort
      else putStrLn (inhalt ++" ist kein Palindrom und hat die Laenge " ++ laengeWort)
  
  isPalindrom w = w == reverse w
  </code></pre>
  
  <p>Please help me to complete correctly my program :)</p>