fork download
  1. data Уж = Уж
  2. data Ёж = Ёж
  3.  
  4. class Device a
  5.  
  6. instance Device Уж
  7.  
  8. instance Device Ёж
  9.  
  10. device :: Device a => String -> a
  11. device "Уж" = Уж
  12. device "Ёж" = Ёж
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
[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'
stdout
Standard output is empty