Skip to content

Instantly share code, notes, and snippets.

@christian-fei
Created October 23, 2016 17:51
Show Gist options
  • Save christian-fei/c160ff99f3eba7e8ed0fdefdabab4feb to your computer and use it in GitHub Desktop.
Save christian-fei/c160ff99f3eba7e8ed0fdefdabab4feb to your computer and use it in GitHub Desktop.
== Compilation error on file lib/date/date_format.ex ==
** (ArgumentError) defdelegate/2 only accepts function parameters, got: %DateTime{} = date
(elixir) lib/kernel/utils.ex:61: Kernel.Utils.add_arg/2
(elixir) lib/kernel/utils.ex:31: Kernel.Utils.defdelegate/2
lib/date/date_format.ex:22: anonymous fn/3 in :elixir_compiler_4.__MODULE__/1
(elixir) lib/enum.ex:1623: Enum."-reduce/3-lists^foldl/2-0-"/3
defmodule Api.Mixfile do
use Mix.Project
def project do
[app: :api,
version: "0.0.1",
elixir: "~> 1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps]
end
def application do
[
applications: [:logger, :tzdata, :cowboy, :plug, :httpoison, :postgrex, :ecto],
mod: {Api, []},
]
end
defp deps do
[
{:postgrex, "~> 0.11.0"},
{:ecto, "~> 1.1.1"},
{:cowboy, "~> 1.0.4"},
{:plug, "~> 1.1.0"},
{:httpoison, "~> 0.8.1"},
{:poison, "~> 1.5.2"},
{:timex, "~> 0.19.2"},
{:timex_ecto, "~> 0.7.0"},
]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment