gjaldon / ecto_enum

Ecto extension to support enums in models
MIT License
563 stars 131 forks source link

Compilation error: type keyword() undefined #26

Closed JustinBond closed 8 years ago

JustinBond commented 8 years ago

Hello. I'm very interested in your library, and was testing it on a test Phoenix project and received this error when I tried to compile it:

 ~/D/D/e/test> mix deps.compile ecto_enum
==> ecto_enum
Compiled lib/ecto_enum/postgres.ex

== Compilation error on file lib/ecto_enum.ex ==
** (CompileError) lib/ecto_enum.ex:124: type keyword() undefined
    (stdlib) lists.erl:1337: :lists.foreach/2
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6

could not compile dependency :ecto_enum, "mix compile" failed. You can recompile this dependency with "mix deps.compile ecto_enum", update it with "mix deps.update ecto_enum" or clean it with "mix deps.clean ecto_enum"

Elixir 1.2.5 Ecto 2.0.5

gjaldon commented 8 years ago

@JustinBond could you try with Elixir 1.3 and see if you encounter the error still?

JustinBond commented 8 years ago

Thanks, that did it!