Haskell gloss loading .bmp
<pre><code>-- | Main function
main :: IO ()
main = do 
          wall &lt;- loadBMP "wall.bmp" -- loads wall image
          play initialState drawState reactEvent reactTime


-- | Function that creates the game
play :: State -&gt; (State -&gt; Picture) -&gt; (Event -&gt; State -&gt; State) -&gt; (Float -&gt; State -&gt; State) -&gt; IO ()
play initialState drawState reactEvent reactTime = play
            (InWindow "Game" (900, 900) (0, 0))      -- Window ize
            (greyN 0.5)                              -- background coloer
            1                                        -- refresh rate
            initialState                             -- initial state
            drawState                                -- draws game state
            reactEvent                               -- teacts to evente
            reactTime                                -- reacts to time

-- | One game represenction
type State = (Map,Picture)

-- | Initial game state
initialState :: State
initialState = ((map 13 0),wall)
</code></pre>

<p>The function map creates my map.
My game is already running fine, but I need to replace the representations i used (circles from gloss) with some BMP images, but i can't load even one cause when i try to load this wall it appears an error in the last line I shared here:
not in scope 'wall'</p>

<p>Can someone see why this is happening?</p>