Language
Haskell
Compiler
ghc 8.4.2
Options
Warnings
$ ghc prog.hs -o prog.exe -Wall
Hello, world!
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:5:14: warning: [-Wunused-foralls]
Unused quantified type variable ‘(x :: Void)’
In the type ‘forall (x :: Void). String’
|
5 | hw :: forall (x :: Void). String
| ^^^^^^^^^^^
Linking prog.exe ...
Hello, world!