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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
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
==or/=.compareor<=.Numbers
All except either
-ornegate.toRational.quotRemandtoInteger..&.,.|.,xor,complement, eithershiftor bothshiftLandshiftR, eitherrotateor bothrotateLandrotateR,bitSizeandisSigned.fromRationaland either/orrecip.pi,exp,log,sin,cos,sinh,cosh,asin,acos,atan,asinh,acoshandatanh.properFraction.All except
exponent,significand,scaleFloatandatan2.Functors
fmap.pureand<*>.>>=andreturn.mplusandmzero.mfix.foldMaporfoldr.traverseorsequenceA.Arrows
.andid.arrandfirst.zeroArrow.<+>.left.app.loop.Serialization
readsPrec(or, for GHC only,readPrec).showorshowsPrec.Misc
toEnumandfromEnum.Both
minBoundandmaxBound.range,index,inRange.memptyandmappend.