You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ingo@ibinti:~/Frege/frege$ repl
Welcome to Frege 3.21.586-g026e8d7 (Oracle Corporation OpenJDK Server VM, 1.7.0_65)
frege> (x³) = x^3 -- gives a reasonable answer
[ERROR: 3]: unexpected '³' while trying to parse unary expression
frege> infix 1 `³` -- oops, forgot the infix
frege> (x³) = x^3 -- yay! now it works
function ³ :: Num α => α -> α
frege> (3³) -- what is 3 cubed?
[ERROR: 4]: unexpected '}' while trying to parse left hand side of a
function or pattern binding
[ERROR: 4]: syntax error on end of file
frege> id (3³) -- avoid ( at beginning
[ERROR: 4]: unexpected '}' while trying to parse left hand side of a
function or pattern binding
[ERROR: 4]: syntax error on end of file
frege> map (³) [1..10]
[ERROR: 4]: unexpected '}' while trying to parse left hand side of a
function or pattern binding
[ERROR: 4]: syntax error on end of file
frege> map (`³`) [1..10] -- works, but ...
[1,8,27,64,125,216,343,512,729,1000]
Turns out the repl doesn't like the new operator at all - except, for what reason ever, when defining (x³)
If I reuse a prelude operator, like ~ this all does work fine.
Note: operator recognition and parsing will be different from 3.22.xxx on, so if this is not a simple fix, just let it be how it is.
The text was updated successfully, but these errors were encountered:
Here is todays session:
Turns out the repl doesn't like the new operator at all - except, for what reason ever, when defining (x³)
If I reuse a prelude operator, like
~
this all does work fine.Note: operator recognition and parsing will be different from 3.22.xxx on, so if this is not a simple fix, just let it be how it is.
The text was updated successfully, but these errors were encountered: