<div dir="ltr"><div dir="ltr">In Elixir/Erlang, module references are just atoms. (<a href="https://elixir-lang.org/getting-started/basic-types.html#atoms">https://elixir-lang.org/getting-started/basic-types.html#atoms</a>)</div><div dir="ltr"><br></div><div>You could bind a name to one module and then rebind it to another module. </div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Sep 6, 2018 at 5:24 AM Tom Ellis <<a href="mailto:tom-lists-haskell-cafe-2017@jaguarpaw.co.uk">tom-lists-haskell-cafe-2017@jaguarpaw.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Sep 06, 2018 at 11:42:49AM +0200, Petr Pudlák wrote:<br>
> Let's say we have a module like<br>
> <br>
> module Foo where<br>
> <br>
> foo, bar :: String -> Something<br>
> ...<br>
> <br>
> and use it elsewhere as<br>
> <br>
> import qualified Foo as F<br>
> ...<br>
> F.foo ...<br>
> <br>
> This is almost just if we had a data type defined as<br>
> <br>
> data FooModule = FooModule { foo :: String -> Something, bar :: String -><br>
> Something }<br>
<br>
Related reading<br>
<br>
    <a href="http://www.haskellforall.com/2012/07/first-class-modules-without-defaults.html" rel="noreferrer" target="_blank">http://www.haskellforall.com/2012/07/first-class-modules-without-defaults.html</a><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Steven Leiva<br>305.528.6038<br><a href="mailto:leiva.steven@gmail.com" target="_blank">leiva.steven@gmail.com</a><br><a href="http://www.linkedin.com/in/stevenleiva" target="_blank">http://www.linkedin.com/in/stevenleiva</a><br></div>