Skip to content

Instantly share code, notes, and snippets.

@codec-abc
Created February 1, 2018 13:47
Show Gist options
  • Select an option

  • Save codec-abc/49ddd13fb5b9ca91b12ca68c14005a4e to your computer and use it in GitHub Desktop.

Select an option

Save codec-abc/49ddd13fb5b9ca91b12ca68c14005a4e to your computer and use it in GitHub Desktop.
> cargo run gluon_src/game_24.glu
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `target\debug\gluon.exe gluon_src/game_24.glu`
Error during script execution: Multiple(Errors { errors: [Macro(Spanned { span: Span { start: 1726, end: 1736, expansion_id: ExpansionId(0) }, value: String("Could not find module \'std.random\'") }), Typecheck(InFile { source_name: "main", error: Errors { errors: [SourceContext { line: " do a = gen_digit\r", error: Spanned { span: Span { start: Location { line: 137, column: 11, absolute: 5129 }, end: Location { line: 137, column: 20, absolute: 5138 }, expansion_id: ExpansionId(0) }, value: Help { error: Unification(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Forall([Generic { id: 0x1c200650b30:a, kind: Type }], Generic(Generic { id: 0x1c200650b30:a, kind: Type }), None), [TypeMismatch(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Generic(Generic { id: 0x1c200650b30:a, kind: Type }))]), help: None } } }, SourceContext { line: " do b = gen_digit\r", error: Spanned { span: Span { start: Location { line: 138, column: 11, absolute: 5151 }, end: Location { line: 138, column: 20, absolute: 5160 }, expansion_id: ExpansionId(0) }, value: Help { error: Unification(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Forall([Generic { id: 0x1c200650b30:a, kind: Type }], Generic(Generic { id: 0x1c200650b30:a, kind: Type }), None), [TypeMismatch(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Generic(Generic { id: 0x1c200650b30:a, kind: Type }))]), help: None } } }, SourceContext { line: " do c = gen_digit\r", error: Spanned { span: Span { start: Location { line: 139, column: 11, absolute: 5173 }, end: Location { line: 139, column: 20, absolute: 5182 }, expansion_id: ExpansionId(0) }, value: Help { error: Unification(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Forall([Generic { id: 0x1c200650b30:a, kind: Type }], Generic(Generic { id: 0x1c200650b30:a, kind: Type }), None), [TypeMismatch(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Generic(Generic { id: 0x1c200650b30:a, kind: Type }))]), help: None } } }, SourceContext { line: " do d = gen_digit\r", error: Spanned { span: Span { start: Location { line: 140, column: 11, absolute: 5195 }, end: Location { line: 140, column: 20, absolute: 5204 }, expansion_id: ExpansionId(0) }, value: Help { error: Unification(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Forall([Generic { id: 0x1c200650b30:a, kind: Type }], Generic(Generic { id: 0x1c200650b30:a, kind: Type }), None), [TypeMismatch(App(Alias(AliasRef { index: 0, group: [AliasData { name: 0x1c20061eff0:IO, typ: Forall([Generic { id: 0x1c20061ef90:a, kind: Type }], Opaque, None) }] }), [Builtin(Int)]), Generic(Generic { id: 0x1c200650b30:a, kind: Type }))]), help: None } } }] } })] })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment