Top "Pattern-guards" questions

In function definitions by clauses with pattern matching, pattern guards allow for additional pattern matching inside guards, to determine which clause is chosen for execution.

Haskell - guard inside case statement

I am going through Learn you a haskell book, and in Chapter 8 there is a snippet of code which looks …

haskell pattern-guards
less.css if variable is true guard

I wonder if there is a better solution (or if my solution is even right), to create if statement like …

if-statement less pattern-guards