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
      • 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
      • Numbers
      • Dollar sign
      • Coercions
      • fmap with a function
      • Converting Numbers
      • Debugging
      • I/O
      • Output depends on input
      • Newtype
      • Overview
      • Articles
      • Books
      • Stack Overflow

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

    See this Stack Overflow answer.


    Last update: January 23, 2023
    Created: January 23, 2023
    Was this page helpful?
    Thanks for your feedback!
    Thanks for your feedback! Help us improve this page by using our feedback form.
    Back to top
    Previous Output depends on input
    Next Overview
    Made with Material for MkDocs