The examples of functional dependencies I've seen boil down to mapping container -> element
, and arguments -> result
(as in Mult Matrix Vector Vector
). They seem to be better expressed with type functions. In database theory, more complex relationships are considered that are not of this form (like a -> b, b -> a
).
Are there examples of usage of FDs in Haskell that cannot be nicely written using type functions?