summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T3950.stderr
blob: 0482cc63ba220b034bf31a539203f1a9a1eb8710 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

T3950.hs:16:13: error: [GHC-83865]
    • Couldn't match type: Id p0 x0
                     with: Id p
      Expected: w (Id p)
        Actual: Sealed (Id p0 x0)
    • In the first argument of ‘Just’, namely ‘rp'’
      In the expression: Just rp'
      In an equation for ‘rp’:
          rp _
            = Just rp'
            where
                rp' :: Sealed (Id p x)
                rp' = undefined
    • Relevant bindings include
        rp :: Bool -> Maybe (w (Id p)) (bound at T3950.hs:16:1)