# Trouble scoping functions with module statement in v0.7

**URL:** <https://discourse.julialang.org/t/trouble-scoping-functions-with-module-statement-in-v0-7/19212>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 2, 2019, 11:17pm UTC](https://discourse.julialang.org/t/trouble-scoping-functions-with-module-statement-in-v0-7/19212 "2019-01-02T23:17:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ronubi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronubi/32/4085_2.png) [@ronubi](https://discourse.julialang.org/u/ronubi)\
**Post date:** [January 2, 2019, 11:17pm UTC](https://discourse.julialang.org/t/trouble-scoping-functions-with-module-statement-in-v0-7/19212/1 "2019-01-02T23:17:24Z")

</div>

Not sure if this is good practice, but in v0.6 I used `module` to create a scoping level so that a group of related included code wouldn’t have name conflicts with anything else I was writing. Specifically:

```julia
module m
    include("foo.jl")
    include("bar.jl")
end
import m

function biff(a)
  # blah blah
  x = m.foo(a);
  y = m.bar(x);
  # etc.
end

```

When I try this in Julia v0.7 (say, storing the above in `biff.jl`), I get an error message and the subsequent function (`biff`) is not parsed or compiled:

```
julia> include("biff.jl")
ArgumentError: Package m not found in current path:
- Run `Pkg.add("m")` to install the m package.

```

Please advise.

---

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [January 2, 2019, 11:27pm UTC](https://discourse.julialang.org/t/trouble-scoping-functions-with-module-statement-in-v0-7/19212/2 "2019-01-02T23:27:22Z")

</div>

```julia
import .m

```
