PurerlAlias (purerl_alias v0.1.4)
Allows one to alias PureScript module names in Elixir and thus use them with nicer names.
Link to this section Summary
Functions
Aliases a PureScript module in Elixir. Does automatic translation of the PureScript module name to the corresponding Erlang module name.
Link to this section Functions
Aliases a PureScript module in Elixir. Does automatic translation of the PureScript module name to the corresponding Erlang module name.
example
Example
defmodule MyModule do
require PurerlAlias # One can also add `as: PSAlias` or the like here
PurerlAlias.alias(MyPureScriptCode.ModuleName)
PurerlAlias.alias(MyPureScriptCode.ModuleName, as: MyAlias)
def my_function() do
ModuleName.myEffectfulFunction().()
MyAlias.myOtherFunction()
end
end