instance ${class:Show} ${type:String} where
        ${function:function} = ${impl:id}

      Haskell language logo
      instance

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.