The Haskell Guide
Newtype
Initializing search
    GitHub
    • Home
    • Getting Started
    • Basics
    • Thinking in Haskell
    • Typeclasses
    • Laziness
    • Libraries
    • Case Study
    • Gotchas
    • FAQs
    • Resources
    GitHub
    • Home
      • Quick start
      • Example Haskell File
      • Configuration
      • Values and Types
      • Creating types
      • Functions
      • Syntactic constructs
      • Type Checking
      • Type Inference
      • Purity
      • Immutability
      • Thinking functionally
      • Typeclasses
      • Important typeclasses
      • Laziness
      • How to use libraries
      • Overview of the ecosystem
      • Dictionaries and sets
      • Property-based testing
      • JSON
      • Side-Effects
      • Parsing
      • Lenses
      • Generic Programming
      • Metaprogramming
      • Overview
      • Chess Logic
      • Parsing
      • Evaluator
      • REPL
      • Tests
      • Lists
      • Punning
      • Strings
      • Show value
      • Updating a variable
      • Varying output type
      • Length of tuple
      • Confusing type and value
      • Multiple Arguments
      • Optional Arguments
      • Dollar sign
      • Coercions
      • fmap with a function
      • Converting Numbers
      • Debugging
      • I/O
      • Output depends on input
      • Newtype
      • Overview
      • Articles
      • Books

    Newtype

    What is the difference between newtype and data, when declaring a type?

    See this Stack Overflow answer.

    January 23, 2023 January 23, 2023
    Previous
    Output depends on input
    Next
    Overview
    Made with Material for MkDocs