module Overlapped where
import Prelude
data T = T
instance showT1 :: Show T where
show _ = "Instance 1"
instance showT2 :: Show T where
show _ = "Instance 2"
The text then goes on to read This module will compile with no warnings however when compiling with v0.12 I get:
Overlapping type class instances found for
Data.Show.Show T
The following instances were found:
Overlapped.showT1
Overlapped.showT2
in type class instance
Data.Show.Show T
In 6.6 Overlapping Instances, with:
The text then goes on to read
This module will compile with no warnings
however when compiling with v0.12 I get: