summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/T7437.stderr
blob: 53905f7b6a72aa66c8a86c9aed1e0f85abaf0308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

T7437.hs:14:13: error:
    • Could not deduce (Put a0)
      from the context: (Put a, Generic t, GPut (Rep t))
        bound by the type signature for:
                   put :: (Put a, Generic t, GPut (Rep t)) => t -> [()]
        at T7437.hs:14: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’