On 2009 Mar 30, at 13:12, Anand Mitra wrote:
,----
| mitra@ravan:~/laptop/haskell/learn$ /opt/ghc-6.10.1/bin/ghc cp.hs
| cp.o: In function `sB1_info':
| (.text+0xab): undefined reference to `bytestringzm0zi9zi1zi4_DataziByteStringziLazzy_writeFile_closure'
| cp.o: In function `sAW_info':

Use "ghc --make".  ghci does this automatically.

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH