summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci/scripts/T9293.stderr
blob: 6dcd966d3da32f57fd59f0263e38854b3c0fa4fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

<interactive>:4:1: error: [GHC-23894]
    • Illegal generalised algebraic data declaration for ‘T’
    • In the data declaration for ‘T’
    Suggested fix: Perhaps you intended to use GADTs

<interactive>:4:16: [GHC-25709]
     Data constructor ‘C’ has existential type variables, a context, or a specialised result type
        C :: T Int
     In the definition of data constructor ‘C’
      In the data type declaration for ‘T’
    Suggested fixes:
       Perhaps you intended to use ExistentialQuantification
       Perhaps you intended to use GADTs

ghci057.hs:4:3: error: [GHC-25709]
    • Data constructor ‘C’ has existential type variables, a context, or a specialised result type
        C :: T Int
    • In the definition of data constructor ‘C’
      In the data type declaration for ‘T’
    Suggested fixes:
       Perhaps you intended to use ExistentialQuantification
       Perhaps you intended to use GADTs

ghci057.hs:4:3: error: [GHC-25709]
    • Data constructor ‘C’ has existential type variables, a context, or a specialised result type
        C :: T Int
    • In the definition of data constructor ‘C’
      In the data type declaration for ‘T’
    Suggested fixes:
       Perhaps you intended to use ExistentialQuantification
       Perhaps you intended to use GADTs