I am not understanding why this code is not outputting. I keep getting errors that say: parse error (possibly incorrect indentation or mismatched brackets) putStrLn "Enter how many numbers:"
main = do
putStrLn "Enter how many numbers:" -- clearer
listlen <- getLine
if (listlen < 100)
then
putStrLn "Enter a number: "
numberString <- getLine
let numberInt =(read numberString :: Int)
print (numberInt)
else
putStrLn " Error: listlen must be less than 100"