data Уж = Уж data Ёж = Ёж class Device a instance Device Уж instance Device Ёж device :: Device a => String -> adevice "Уж" = Ужdevice "Ёж" = Ёж
Standard input is empty
[1 of 1] Compiling Main ( prog.hs, prog.o ) prog.hs:1:0: The function `main' is not defined in module `Main' prog.hs:11:0: Couldn't match expected type `#6' against inferred type `6' When generalising the type(s) for `device'
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!