summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/ClosedFam3.stderr
blob: 28e71792ca730aab05a3568ec790d0ef7bed0fdf (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

ClosedFam3.hs-boot:7:1: error:
    Type constructor ‘Foo’ has conflicting definitions in the module
    and its hs-boot file
    Main module: type family Foo a :: *
                   where
                       Foo Int = Bool
                       Foo Double = Char
    Boot file:   type family Foo a :: *
                   where Foo Int = Bool

ClosedFam3.hs-boot:10:1: error:
    Type constructor ‘Bar’ has conflicting definitions in the module
    and its hs-boot file
    Main module: type family Bar a :: *
                   where
                       Bar Int = Bool
                       Bar Double = Double
    Boot file:   type family Bar a :: *
                   where
                       Bar Int = Bool
                       Bar Double = Char

ClosedFam3.hs-boot:14:1: error:
    Type constructor ‘Baz’ has conflicting definitions in the module
    and its hs-boot file
    Main module: type family Baz a :: *
                   where Baz Int = Bool
    Boot file:   type family Baz (a :: k) :: *
                   where Baz Int = Bool
    The types have different kinds