or download this
C:\dev\fun\pugs>dmake
ghc --make -o pugs src/Main.hs -isrc
...
C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__96.o)(.text+0xaa):ghc11748.
+hc: undefined reference to `readline'
C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__98.o)(.text+0x63):ghc11748.
+hc: undefined reference to `add_history'
dmake.exe: Error code 1, while making 'pugs.exe'