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 6895349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:53:50+00:00 2026-05-27T06:53:50+00:00

The Haskell prelude and Standard Library define a number of useful type classes. Is

  • 0

The Haskell prelude and Standard Library define a number of useful type classes.

Is there a page somewhere that lists the minimum complete definition for all these classes?

  • 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-05-27T06:53:51+00:00Added an answer on May 27, 2026 at 6:53 am

    This information can be found scattered around the Haskell language report as well as the GHC documentation, but in the interest of having an overview, I’m starting a CW answer for this.

    Comparison

    • Eq:
      == or /=.
    • Ord:
      compare or <=.

    Numbers

    • Num:
      All except either - or negate.
    • Real:
      toRational.
    • Integral:
      quotRem and toInteger.
    • Bits:
      .&., .|., xor, complement, either shift or both shiftL and shiftR, either rotate or both rotateL and rotateR, bitSize and isSigned.
    • Fractional:
      fromRational and either / or recip.
    • Floating:
      pi, exp, log, sin, cos, sinh, cosh, asin, acos, atan, asinh, acosh and atanh.
    • RealFrac:
      properFraction.
    • RealFloat:
      All except exponent, significand, scaleFloat and atan2.

    Functors

    • Functor:
      fmap.
    • Applicative:
      pure and <*>.
    • Monad:
      >>= and return.
    • MonadPlus:
      mplus and mzero.
    • MonadFix:
      mfix.
    • Foldable:
      foldMap or foldr.
    • Traversable: traverse or sequenceA.

    Arrows

    • Category:
      . and id.
    • Arrow:
      arr and first.
    • ArrowZero:
      zeroArrow.
    • ArrowPlus:
      <+>.
    • ArrowChoice:
      left.
    • ArrowApply:
      app.
    • ArrowLoop:
      loop.

    Serialization

    • Read:
      readsPrec (or, for GHC only, readPrec).
    • Show:
      show or showsPrec.

    Misc

    • Enum:
      toEnum and fromEnum.
    • Bounded:
      Both minBound and maxBound.
    • Ix:
      range, index, inRange.
    • Monoid:
      mempty and mappend.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Haskell, lifted type products mean that there's a semantic difference between (a,b,c) and
Is there a good reason why the type of Prelude.read is read :: Read
I am new to Haskell and facing a "cannot construct infinite type" error that
Is there a function in Haskell that will allow me to enter component of
Using the following code snippet: (fromIntegral 100)/10.00 Using the Haskell '98 standard prelude, how
After playing around with haskell a bit I stumbled over this function: Prelude Data.Maclaurin>
In Haskell, how can I generate Fibonacci numbers based on the property that the
In Haskell, there is a function take n list which returns the first n
Does haskell-mode or some alternative package offer something akin to the wonderful inferior-haskell-type inside
In Haskell function type ( -> ) is given, it's not an algebraic data

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.