Add JuicyPixels to your cabal file's build-depends section.
Add the JuicyPixels package to your .cabal file's build-depends section with the desired version range, for example: build-depends: base, JuicyPixels >= 3.3 && < 3.4.
Build your project using cabal build or stack build.
Import the necessary modules in your Haskell source file using import Codec.Picture and/or import Codec.Picture.Types.
Use the functions and types provided by JuicyPixels as needed in your Haskell code.