If for some reason you do not want to use the GHC parameter --make, this should work:ghc source.hs -lSDL -package SDL
If you need some of the non-core SDL sub-libraries, you will have to include them separately, for example, ghc source.hs -lSDL -SDL_ttf -package SDL -package SDL-ttf
You can also consider creating an assembly file using cabal, the Haskell packaging system, especially if your program goes beyond several source files.
- , , Haskell SDL, " " Linux - Windows, OS X - , SDL .