Gleam: New project with --template app doesn't compile

Created on 4 Dec 2020  路  2Comments  路  Source: gleam-lang/gleam

When I run gleam new --template app ping_pong. The application file is incorrectly formatted, it has a bunch of double {

Whole output

import gleam/otp/supervisor.{{ApplicationStartMode, ErlangStartResult}}
import gleam/dynamic.{{Dynamic}}

fn init(children) {{
  children
}}

pub fn start(
  _mode: ApplicationStartMode,
  _args: List(Dynamic),
) -> ErlangStartResult {{
  init
  |> supervisor.start
  |> supervisor.to_erlang_start_result
}}

pub fn stop(_state: Dynamic) {{
  supervisor.application_stopped()
}}

Most helpful comment

All 2 comments

Gunna release a version with this fix soon!

Was this page helpful?
0 / 5 - 0 ratings