What is the monomorphism restriction?
What is the monomorphism restriction? The monomorphism restriction as stated by the Haskell wiki is: a counter-intuitive rule in Haskell type inference. If you forget to provide a type signature, sometimes this rule will fill the free type variables with specific types using “type defaulting” rules. What this means is that, in some circumstances, if … Read more