data ${name:MyType} = ${alt1:Record {}} | ${alt2:Algebraic}
      Haskell language logo

      data

      Haskell public recipes

      ;

      In the first line, the code declares a type named MyType. The second line defines two variables, one of which contains a Record data structure and the other contains a Algebraic data structure.

      Shortcut: data

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.