module Lib ( MyClass(..) ) where class Num x => MyClass x where fMy :: x -> x
app\Main.hs:6:1: warning: [-Worphans]
Orphan instance: instance MyClass Double
To avoid this
move the instance declaration to the module of the class or of the type, or
wrap the type with a newtype and declare the instance on the new type.
|
6 | instance MyClass Double where
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
15.959999999999999