Permalink
Browse files

Update to the latest Elixir

  • Loading branch information...
1 parent 683eccb commit 149b11d329ee987736be5d4c8ddcfbcd600eea7b @yrashk committed Oct 29, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −2 lib/package/decoder.ex
  2. +1 −2 lib/repository.ex
View
@@ -6,7 +6,7 @@ defmodule Expm.Package.Decoder do
def decode(list) when is_list(list) do
lc i inlist list, do: decode(i)
end
- def decode({:access,l1,[{:__aliases__,l2,[:Expm,:Package]}|rest]}) do
+ def decode({{:.,_,[Kernel,:access]},l1,[{:__aliases__,l2,[:Expm,:Package]}|rest]}) do
{:access,l1,[{:__aliases__,l2,[:Expm,:Package]}|decode_1(rest)]}
end
def decode(v) do
@@ -32,4 +32,4 @@ defmodule Expm.Package.Decoder do
defp decode_1(other) do
other
end
-end
+end
View
@@ -1,6 +1,5 @@
defprotocol Expm.Repository do
@only [Record]
- @type t :: term
@spec get(t, Expm.Package.name, Expm.Package.version), do:
Expm.Package.spec | :not_found
@@ -17,4 +16,4 @@ defprotocol Expm.Repository do
@spec list(t, Expm.Package.filter), do: list(Expm.Package.spec)
def list(repo, filter)
-end
+end

0 comments on commit 149b11d

Please sign in to comment.