Changeset 4223 for src/gen_prelude.hs
- Timestamp:
- 06/01/05 00:24:55 (4 years ago)
- svk:copy_cache_prev:
- 5801
- Files:
-
- 1 modified
-
src/gen_prelude.hs (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/gen_prelude.hs
r4222 r4223 19 19 20 20 main :: IO () 21 main = do 22 putStr preludeIntro 23 str <- getContents 24 print . unlines . filter notComment . lines $ str 25 where 26 notComment ('#':_) = False 27 notComment (' ':cs) = notComment cs 28 notComment ('\t':cs) = notComment cs 29 notComment _ = True 21 30 22 main = do 23 putStr"\31 preludeIntro :: String 32 preludeIntro = "\ 24 33 \{-# OPTIONS -fglasgow-exts #-}\n\ 25 34 \ \n\ … … 38 47 \> And Gondolin, who now beyond\n\ 39 48 \> The Western Seas have passed away:\n\ 40 \> The world was fair in Durin ’s day.\n\49 \> The world was fair in Durin's day.\n\ 41 50 \ \n\ 42 51 \-}\n\ … … 49 58 \preludeStr :: String\n\ 50 59 \preludeStr = " 51 getContents >>= putStr . show
