instance

    0

    0

    lucycodes42

    Haskell public recipes

    This code declares a new instance of the class Show with the type string where the function is the id of the Show class. In other words, this code creates a new instance of the Show class and assigns it the value "1".

    Shortcut: instance

    instance ${class:Show} ${type:String} where
      ${function:function} = ${impl:id}
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.