blob: 69a10da8dbd5350e2d737129119263df465ea8a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<no location info>: warning:
-XGeneralizedNewtypeDeriving is not allowed in Safe Haskell; ignoring -XGeneralizedNewtypeDeriving
<interactive>:16:29: error:
• Can't make a derived instance of ‘Op T2’:
‘Op’ is not a stock derivable class (Eq, Show, etc.)
• In the newtype declaration for ‘T2’
Suggested fix:
Perhaps you intended to use GeneralizedNewtypeDeriving
for GHC's newtype-deriving extension
<interactive>:19:9: error:
• Data constructor not in scope: T2 :: T -> t
• Perhaps you meant ‘T1’ (line 13)
<interactive>:22:4: error: Variable not in scope: y
|