Permalink
Browse files

lc new sytax: lc n in ... -> lc n inlist ...

  • Loading branch information...
1 parent a0d6de1 commit e583832681497422d1c04fbd36c815c0a9966309 @k1complete committed Jun 10, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 lib/mix/external.ex
  2. +2 −2 lib/mix/tasks/app.ex
  3. +1 −1 lib/mix/tasks/compile.ex
  4. +1 −1 lib/mix/tasks/help.ex
View
2 lib/mix/external.ex
@@ -77,7 +77,7 @@ defmodule Mix.External do
end
defp map_to_list(l) do
- lc item in l do
+ lc item inlist l do
if is_binary(item) do
binary_to_list item
else
View
4 lib/mix/tasks/app.ex
@@ -3,7 +3,7 @@ defmodule Mix.Tasks.App do
@shortdoc "Writes an .app file"
# TODO: Depend on the compile task
- refer List.Chars, as: LC
+ alias List.Chars, as: LC
def run(_args) do
project = Mix.Mixfile.get_project
@@ -12,7 +12,7 @@ defmodule Mix.Tasks.App do
compile_path = project[:compile_path]
modules =
- lc file in File.wildcard("#{compile_path}/**/*.beam") do
+ lc file inlist File.wildcard("#{compile_path}/**/*.beam") do
s = Regex.replace_all(%r/\//, Regex.replace(%r/ebin\/__MAIN__\/(.+)\.beam/, file, "\\1"), ".")
Module.concat [s]
end
View
2 lib/mix/tasks/compile.ex
@@ -68,7 +68,7 @@ defmodule Mix.Tasks.Compile do
end
defp extract_files(paths) do
- List.concat(lc path in paths, do: File.wildcard(File.join([path, "**/*.ex"])))
+ List.concat(lc path inlist paths, do: File.wildcard(File.join([path, "**/*.ex"])))
end
defp compile_files(files, to) do
Elixir.ParallelCompiler.files_to_path(files, to, fn(x) ->
View
2 lib/mix/tasks/help.ex
@@ -13,7 +13,7 @@ defmodule Mix.Tasks.Help do
def run([]) do
IO.puts "Available tasks:\n"
modules = Mix.Tasks.list_tasks
- docs = lc module in modules do
+ docs = lc module inlist modules do
{module, module.__info__(:data)[:shortdoc]}
end
Enum.each(docs, fn({module, doc}) ->

0 comments on commit e583832

Please sign in to comment.