[1 of 1] Compiling Main ( prog.hs, prog.o )
prog.hs:12:27:
Could not deduce (Num' a) arising from a use of `X'
from the context (Show (X a))
bound by the instance declaration at prog.hs:11:10-19
Possible fix:
add (Num' a) to the context of the instance declaration
In the expression: X
In the expression: X $ fromInteger' x
In an equation for fromInteger':
fromInteger' x = X $ fromInteger' x