I would appreciate if somebody could give me a hint how to get rid of this warning
cli.ex:56: The call 'Elixir.File':open(filename@1::binary(),['utf8',...]) breaks the contract ('Elixir.Path':t(),fun((io_device()) -> res)) -> {'ok',res} | {'error',posix()}
; ('Elixir.Path':t(),[mode() | 'ram']) -> {'ok',io_device()} | {'error',posix()} in the 2nd argument
for the code
defp open_file(filename), do: io_device(File.open(filename, [:utf8]), filename)
I googled for this (proabably badly) and tried to tweak the code (probably beadly) to no success.
Thx in advance
Robert
--
Progress is impossible without change, and those who cannot change their minds cannot change anything.
-- George Bernard Shaw