You need to make sure the module is loaded in the shell, adding it to the path with -pa
just tells the VM where to look for modules when trying to load them.
There are several ways of loading a module
- Call a function in the module that should be loaded (so after doing the
eredis:start_link()
call you would be able to tab-complete eredis) - Explicitly load the module with
l(Module)
- Programmatically:
code:load_file(Module)
Load all erlang modules in path is very useful!