Skip to content

Instantly share code, notes, and snippets.

@non
Last active May 12, 2017 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save non/58d293a7b90d7addad6e1e31a631b45c to your computer and use it in GitHub Desktop.
Save non/58d293a7b90d7addad6e1e31a631b45c to your computer and use it in GitHub Desktop.
List of classes/traits in Scala's standard library that are probably worth supporting via type classes. The implication being that other types (e.g. GenSeq) are not worth supporting directly. Suggested additions welcome!
scala
Array
BigDecimal
BigInt
Boolean
Byte
Char
Double
Float
FunctionN...
Int
Long
Option (Some/None)
PartialFunction
Short
String
Symbol
TupleN...
Unit
scala.collection
Iterable
Seq
Traversable
scala.collection.immutable
BitSet
HashMap
HashSet
IntMap
List
LongMap
Map
Queue
Range
Set
SortedMap
SortedSet
Stack
Stream
TreeMap
TreeSet
Vector
scala.concurrent
Future
scala.concurrent.duration
Duration
FiniteDuration
scala.util
Either (Left/Right)
Try (Success/Failure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment