title: Record syntax is illegal. Binary Tree in haskell
body: <p>I defined the tree type with record syntax way.</p>
  
  <pre><code>data Tree a = Null | Node a {lTree:: Tree a, rTree :: Tree a}
  </code></pre>
  
  <p>However, when I load it, it shows an error:</p>
  
  <pre><code>• Record syntax is illegal here: {lTree :: Tree a, rTree :: Tree a}
      • In the type ‘{lTree :: Tree a, rTree :: Tree a}’
        In the definition of data constructor ‘Node’
        In the data declaration for ‘Tree’
    |
  2 | data Tree a = Null | Node a {lTree:: Tree a, rTree :: Tree a}
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  </code></pre>