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

T12151.hs:9:13: error: [GHC-72771]
    • The default type signature for put: forall t. t
      does not match its corresponding non-default type signature
    • When checking the class method: put :: forall a. Put a => a
      In the class declaration for ‘Put’

T12151.hs:9:13: error: [GHC-39999]
    • Could not deduce ‘Put a0’
      from the context: Put a
        bound by the type signature for:
                   put :: forall a t. Put a => t
        at T12151.hs:9:13-15
      The type variable ‘a0’ is ambiguous
    • In the ambiguity check for ‘put’
      To defer the ambiguity check to use sites, enable AllowAmbiguousTypes
      When checking the class method: put :: forall a. Put a => a
      In the class declaration for ‘Put’