Error codes

E0414: unknown effect

In a terminal: auk explain E0414 prints this page.

On this page

uses takes only the built-in effects: fs, net, time, rand, env, proc, audio_out, gui and ffi. This name isn't one of them; the message may suggest the one you meant.

Wrong#

auk
fn greet() uses io { print("hi") }

Fixed#

auk
fn greet() { print("hi") }

Common causes#

  • A typo or long form (fss, random, times).
  • An effect name from another system (io, file, http): files are fs, sockets net.
  • print needs no effect at all.

Stuck on a word? Try the glossary. Got a compiler error? Look up its code. Improve this page