newtype

    0

    0

    lucycodes42

    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

    newtype ${name:MyType} = ${name:MyType} { un${name:MyType} :: ${original:String} }
    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.