mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
16 lines
338 B
Plaintext
16 lines
338 B
Plaintext
|
1/1: Building DoBlockFC (DoBlockFC.idr)
|
||
|
Error: While processing right hand side of foo. When unifying:
|
||
|
Maybe Int
|
||
|
and:
|
||
|
Either ?_ ?_
|
||
|
Mismatch between: Maybe Int and Either ?_ ?_.
|
||
|
|
||
|
DoBlockFC:6:3--6:10
|
||
|
2 | bar : Maybe Int
|
||
|
3 |
|
||
|
4 | foo : Either String Int
|
||
|
5 | foo = do
|
||
|
6 | Right n <- pure bar | _ => Left "fail"
|
||
|
^^^^^^^
|
||
|
|