Language
Haskell
Compiler
ghc 8.4.2
Options
Warnings
$ ghc prog.hs -o prog.exe -Wall
"Taro"
Exit Code:
0
Haskell
ghc 8.4.2
$ ghc prog.hs -o prog.exe -Wall
[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:14:1: warning: [-Worphans]
Orphan instance: instance HasField fn r v => IsLabel fn (r -> v)
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.
|
14 | instance HasField fn r v => IsLabel fn (r -> v)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
Linking prog.exe ...
"Taro"