data

    0

    0

    lucycodes42

    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

    data ${name:MyType} = ${alt1:Record {}} | ${alt2:Algebraic}
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.