LightAndLight / ipso

A functional scripting language.

Home Page:https://ipso.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Empty string pattern syntax error

LightAndLight opened this issue · comments

Test program

test.ipso:

main : IO ()
main =
  case "hello" of
    "" -> println "empty"
    _ -> println "not empty"

Actual output

$ ipso test.ipso 
test.ipso:4:6: error: expected one of: string
  |
4 |     "" -> println "empty"
  |      ^

Expected output

$ ipso test.ipso
not empty