# Fixing the imports in the p5js.org examples

**URL:** <https://discourse.elm-lang.org/t/fixing-the-imports-in-the-p5js-org-examples/8212>\
**Category:** Learn\
**Created:** [March 1, 2022, 11:39am UTC](https://discourse.elm-lang.org/t/fixing-the-imports-in-the-p5js-org-examples/8212 "2022-03-01T11:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![capo\_greco](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/capo_greco/32/4483_2.png) [@capo\_greco](https://discourse.elm-lang.org/u/capo_greco)\
**Post date:** [March 1, 2022, 11:39am UTC](https://discourse.elm-lang.org/t/fixing-the-imports-in-the-p5js-org-examples/8212/1 "2022-03-01T11:39:47Z")

</div>

pertaining to [this thread](https://discourse.elm-lang.org/t/some-p5js-org-examples-in-elm/3781), these examples require:

```auto
import Canvas exposing (..)
import Canvas.Settings exposing (..)
import Canvas.Settings.Line exposing (..)
import Canvas.Settings.Advanced exposing (..)

```

rather than just `import Canvas exposing (..)`

I would have posted this into the original thread, but it is locked, so I am posting here.

---

<div class="post-metadata">

**Author:** ![Viir](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/viir/32/4103_2.png) [@Viir](https://discourse.elm-lang.org/u/Viir)\
**Post date:** [March 1, 2022, 8:40pm UTC](https://discourse.elm-lang.org/t/fixing-the-imports-in-the-p5js-org-examples/8212/2 "2022-03-01T20:40:48Z")

</div>

Publishing a new version of an Elm package can break an Ellie link that previously worked. It seems that was the case here, with this change: [Split the monolithic Canvas module for ease of consumption · joakin/elm-canvas@1a6e6b5 · GitHub](https://github.com/joakin/elm-canvas/commit/1a6e6b5acf124883b84bcabf85a9045c36ba2f18)

> The docs were a huge long document, making it very hard to learn to use  
> the library.
> 
> With this commit, we split the docs so that the subjects of the library,  
> drawing/settings/textures are easier to learn and visible in the docs  
> sidebar.

The issue in Ellie was also discussed at [Add ability to install older version of package (feature suggestion) · Issue #57 · ellie-app/ellie · GitHub](https://github.com/ellie-app/ellie/issues/57) and [Upgrade to `0.19.1` broke examples that need specific versions of packages. · Issue #121 · ellie-app/ellie · GitHub](https://github.com/ellie-app/ellie/issues/121)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [March 11, 2022, 8:41pm UTC](https://discourse.elm-lang.org/t/fixing-the-imports-in-the-p5js-org-examples/8212/3 "2022-03-11T20:41:34Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
