roc-lang / examples

All kinds of Roc examples

Home Page:https://www.roc-lang.org/examples

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

example suggestion: How to do multiline strings in Roc?

Anton-4 opened this issue · comments

Clarifying question, this is the kind of example you are expecting right?

greeting = "Hello Sahil\nThis is a multi-line string"

I think more like

query =
    """
    UPDATE sessions
    SET user_id = \(Num.toStr user.id)
    WHERE session_id = \(Num.toStr sessionId);
    """