How to tell ghc to tell ld to link compiled binaries to SDL library?
I have a source.hs :
import Prelude
import Graphics.UI.SDL as SDL
import Data.Maybe
import GHC.Word
import Control.Applicative
...
When I do:
ghc source.hs
I get a bunch of linking errors similar to this one:
pong.o: In function `s1Ww_info':
(.text+0x449): undefined reference to `SDLzm0zi5zi9_GraphicsziUIziSDLziRect_Rect_con_info'
What am I doing wrong?