Skip to main content

Classes

  • Chapter
  • First Online:
  • 1061 Accesses

Abstract

In the previous chapters, you created your own types. Now, it’s time to learn what classes are in Haskell and how to work with them. In this chapter, you’ll learn about the standard classes and then how to create your own classes.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   37.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 1.

    http://hackage.haskell.org/package/base-4.12.0.0/docs/Prelude.html#t:Eq

  2. 2.

    http://hackage.haskell.org/package/base-4.12.0.0/docs/Prelude.html#t:Ord

  3. 3.

    http://hackage.haskell.org/package/base-4.12.0.0/docs/Prelude.html#t:Real

  4. 4.

    https://www.haskell.org/onlinereport/basic.html#standard-classes

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Stefania Loredana Nita and Marius Mihailescu

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Nita, S.L., Mihailescu, M. (2019). Classes. In: Haskell Quick Syntax Reference. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4507-1_10

Download citation

Publish with us

Policies and ethics