sebastiaanvisser / clay

A CSS preprocessor as embedded Haskell.
Other
360 stars 73 forks source link

Variable not in scope: important #169

Closed RamiroPastor closed 6 years ago

RamiroPastor commented 6 years ago

The code:

import Clay.Stylesheet (important)

The error:

Module ‘Clay.Stylesheet’ does not export ‘important’

Found this one days ago but i didn't report it (because i didn't really need to use it)

When importing only Clay you get the "not in scope" version of the error

dbaynard commented 6 years ago

Which version are you using? (important was introduced in 0.13.0.)

RamiroPastor commented 6 years ago

I'm using version 0.12.2 according to a stack command i just learned about (list-dependencies).

Should i upgrade to 0.13.0? Can i do it easily with stack?

Anyway, being that the case, i will close this.

dbaynard commented 6 years ago

The easiest way is to add to your stack.yaml,

extra-deps:
- clay-0.13.0

In general, this introduces a risk that other libraries won't build with it, and you can see which might not be supported at http://packdeps.haskellers.com/reverse/clay. But you'll probably be fine.

Unfortunately, there's no workaround for important on earlier versions.

RamiroPastor commented 6 years ago

Thx!