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
--
You received this message because you are subscribed to the Google Groups
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elixir-lang-talk/CA%2Bvts6saZxa62NJ3yt7qi6vVB-s41wtxEd%2BBbvVWqFfuJo3gAw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.