What are the pitfalls of using FlexibleContexts and FlexibleInstances?
I once stumbled upon the following. Answering this question, I first tried this code: {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE FunctionalDependencies #-} class (Eq a, Show a) => Genome a where crossover :: (Fractional b) => b -> a -> a -> IO (a, a) mutate :: (Fractional b) => b -> a -> IO … Read more