title: Parse Error: (incorrect indentation or misplaced bracket)
body: <p>I'm starting out to learn Haskell. Even though I'm a dunce extraordinaire, I am intent on making this work. The error I received is listed as the title. This is the code that I wrote to try to implement the behavior of replicating a list (n) times and concatenating its new length as a new list. Now I have a basic understanding of how parsing works in Haskell, below my original code I will give example of some modified code to see if my understanding on parsing is adequate. My question for now is how I can properly indent or structure my block in order to not receive this error (is that specific enough :O) -- is there a piece of information I'm missing when it comes to creating instances and formatting? PLEASE DO NOT TELL ME OR OFFER SUGGESTIONS IF YOU NOTICE THAT MY CURRENT INSTANCE OR MAIN FUNCTION ARE SYNTACTICALLY WRONG. I want to figure it out and will deal with that GHC error when I get to it. (I hope that's the proper way to learn). BUT if I could ask for anyone's help in getting past this first obstacle in understanding proper formatting, I'd be grateful. </p>
  
  <pre><code>module Main where 
  import Data.List
  
  n :: Int 
  x :: [Char]
  
  instance Data stutter n x where
     x = []
     n = replicate &gt;&gt;=  x : (n:xs)
     stutter &gt;&gt;= main = concat [x:xs]
  
  let stutter 6 "Iwannabehere"  -- &lt;-- parse error occurs here!!!
  </code></pre>
  
  <p>--Modified code with appropriate brackets, at least where I think they go.</p>
  
  <pre><code>module Main where 
  import Data.List
  
  n :: Int 
  x :: [Char]
  
  instance Data stutter n x where{
     ;x = []
     ;n = replicate &gt;&gt;=  x : (n:xs)
     ;stutter &gt;&gt;= main = concat [x:xs]
  ;
  };let stutter 6 "Iwannabehere" -- there should be no bracket of any kind at the end of this
  </code></pre>
  
  <p>I placed the 'let' expression on the outside of the block, I don't believe it goes inside and I also receive a parsing error if I do that. Not correct but I thought I'd ask anyway. </p>