haskell - Why is there no typeclass for container-types? -


i found out containers have similar function set. list, set, sequence, text , bytestrings example. wonder why don't use 1 or more common typeclasses.

actually there are, see question making single function work on lists, bytestrings , texts (and perhaps other similar representations), duplicate of yours.

the main reason being in separate package needs language extension - either functional dependencies or type families. have somehow text can contain chars, bytestring can contain word8s, [] can contain type, , set can contain instances of ord.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -