Idris2/tests/idris2/with003/expected
Giuseppe Lomurno f658ce357f More improvements
- More migrations from String to Doc
- File context in parser errors
2020-08-18 19:25:36 +01:00

77 lines
2.7 KiB
Plaintext

1/1: Building Main (Main.idr)
Main> Error: Sorry, I can't find any elaboration which works. All errors:
If Prelude.>>=: Sorry, I can't find any elaboration which works. All errors:
If Prelude.>>=: When unifying ?_ -> IO () and IO ?b.
Mismatch between: ?_ -> IO () and IO ?b.
(interactive):1:66--1:81
|
1 | do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
| ^^^^^^^^^^^^^^^
If Main.Other.>>=: When unifying ?_ -> IO () and IO ?b.
Mismatch between: ?_ -> IO () and IO ?b.
(interactive):1:38--1:64
|
1 | do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
If Main.Other.>>=: Sorry, I can't find any elaboration which works. All errors:
If Prelude.>>=: When unifying ?_ -> IO () and IO ?b.
Mismatch between: ?_ -> IO () and IO ?b.
(interactive):1:38--1:64
|
1 | do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
If Main.Other.>>=: Sorry, I can't find any elaboration which works. All errors:
If Prelude.>>=: When unifying ?_ -> IO () and IO ?b.
Mismatch between: ?_ -> IO () and IO ?b.
(interactive):1:66--1:81
|
1 | do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
| ^^^^^^^^^^^^^^^
If Main.Other.>>=: When unifying ?_ -> IO () and IO ?b.
Mismatch between: ?_ -> IO () and IO ?b.
(interactive):1:38--1:64
|
1 | do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
Main> Error: Can't find an implementation for Num ().
(interactive):1:61--1:65
|
1 | with Prelude.(>>=) do myPrintLn "foo"; myPrintLn "boo"; map (+1) (myPrintLn "woo"); myPrintLn "goo"; myPrintLn "foo"
| ^^^^
Main> Error: Ambiguous elaboration. Possible results:
PrimIO.Nil
Prelude.Nil
Data.Vect.Nil
(interactive):1:4--1:6
|
1 | :t []
| ^^
Main> [] : Vect 0 ?elem
Main> [] : List ?a
Main> Error: When unifying Vect 0 ?elem and List ?a.
Mismatch between: Vect 0 ?elem and List ?a.
(interactive):1:34--1:41
|
1 | :t with [Vect.Nil, Prelude.(::)] [1,2,3]
| ^^^^^^^
Main> the (Maybe Int) (pure 4) : Maybe Int
Main> Parse error at line 1:2:
Unrecognised command (next tokens: [identifier t, with, symbol [, symbol ], literal 4, end of input])
Main> Bye for now!