Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8413187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:52:14+00:00 2026-06-10T00:52:14+00:00

This passage, which unfortunately lacks references, about the development of ADTs in Haskell, from

  • 0

This passage, which unfortunately lacks references, about the development of ADTs in Haskell, from A History of Haskell: Being Lazy With Class, section 5.1:

In general, an algebraic type specifies a sum of one or more
alternatives, where each alternative is a product of zero or more
fields. It might have been useful to permit a sum of zero
alternatives, which would be a completely empty type, but at the time
the value of such a type was not appreciated.

leaves me wondering, how would such an ADT be useful?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T00:52:15+00:00Added an answer on June 10, 2026 at 12:52 am

    Theoretically: the Curry-Howard isomorphism gives us an interpretation of this type as the “false” proposition. “false” is useful as a proposition on its own; but is also useful for constructing the “not” combinator (as type Not a = a -> False) and other similar constructions.

    Pragmatically: this type can be used to prevent certain branches of parameterized data types from coming into existence. For example, I’ve used this in a library for parsing various game trees something like this:

    data RuleSet a            = Known !a | Unknown String
    data GoRuleChoices        = Japanese | Chinese
    data LinesOfActionChoices -- there are none in the spec!
    type GoRuleSet            = RuleSet GoRuleChoices
    type LinesOfActionRuleSet = RuleSet LinesOfActionChoices
    

    The impact of this is that, when parsing a Lines of Action game tree, if there’s a ruleset specified, we know its constructor will be Unknown, and can leave other branches off during pattern matches, etc.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I parse sentence case phrases from a passage. For example from this
I'm creating this script which loads the data from JSON which is encoded in
This question is directly related to this SO question I posed about 15 minutes
Please see the passage RMI Registry Issue of this article for the background on
I was reading the SQLite FAQ , and came upon this passage: Threads are
I was reading my trusty O'Reilly book and came across a passage about how
I have this xml data <XMLCreators> <row> <RateNumber>1</RateNumber> <RateLetter>Null</RateLetter> <AssessmentStreet>Abesinia Passage</AssessmentStreet> <RateAccomDesc>Dwelling (Part Of)</RateAccomDesc>
I stumbled over this passage in the Django tutorial : Django models have a
I've read the blurb at StrangeLights , I've read the passage from Expert F#
this is my first question in here, and I would like to ask if

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.