newtype ${name:MyType} = ${name:MyType} { un${name:MyType} :: ${original:String} }
      Haskell language logo

      newtype

      Haskell public recipes

      ${name:MyType} is a newtype which represents a MyType object. It has an implementation of the un function which takes a String and returns the original string.

      Shortcut: newtype

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.