summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/mc25.stderr
blob: 71559fb3d2b3e9c6451e1b4b23e3e0674728928e (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
33
34
35

mc25.hs:9:15:
    No instance for (Enum t0)
      arising from the arithmetic sequence `1 .. 10'
    The type variable `t0' is ambiguous
    Possible fix: add a type signature that fixes these type variable(s)
    In a stmt of a monad comprehension: x <- [1 .. 10]
    In a stmt of a monad comprehension: then group by x using take
    In the expression: [x | x <- [1 .. 10], then group by x using take]

mc25.hs:9:16:
    No instance for (Num t0)
      arising from the literal `1'
    The type variable `t0' is ambiguous
    Possible fix: add a type signature that fixes these type variable(s)
    In the expression: 1
    In a stmt of a monad comprehension: x <- [1 .. 10]
    In a stmt of a monad comprehension: then group by x using take

mc25.hs:9:24:
    No instance for (Functor t1)
      arising from a use of `fmap'
    The type variable `t1' is ambiguous
    Possible fix: add a type signature that fixes these type variable(s)
    In the expression: fmap
    In a stmt of a monad comprehension: then group by x using take
    In the expression: [x | x <- [1 .. 10], then group by x using take]

mc25.hs:9:46:
    Couldn't match type `Int' with `a -> t0'
    Expected type: (a -> t0) -> [a] -> [t1 a]
      Actual type: Int -> [a] -> [a]
    In the expression: take
    In a stmt of a monad comprehension: then group by x using take
    In the expression: [x | x <- [1 .. 10], then group by x using take]