On Sun, Jan 04, 2009 at 17:05:21 +0100, [email protected] wrote: > Sun Jan 4 11:21:25 CET 2009 [email protected] > * make stringify cut the string > This avoids choking utilities such as grep (or emacs' internal grep) which > parse haskell files line-by-line.
Applied, thanks! (Minor stylistic comments below)
> - thedata <- getContents
> + thedata <- liftM lines $ getContents
Why not thedata <- lines `fmap` getContents?
> - putStrLn $ varname ++ " = " ++ show thedata
> + putStrLn $ varname ++ " =\"\""
> + forM_ thedata $ \line -> putStrLn (" ++" ++ show line)
Why not putStrLn . unlines . map (\l -> " ++" ++ show l) $ thedata
(which is admittably longer)
--
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9
signature.asc
Description: Digital signature
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
