[edit web page Yoshikuni Jujo **20081129065414] { hunk ./web_page/index.xhtml.ehs 35 +

These are old now.

hunk ./web_page/index.xhtml.ehs 37 + +
+

adddir ./web_page/samples/second_sample_FunSetRaw addfile ./web_page/samples/second_sample_FunSetRaw/Hakefile hunk ./web_page/samples/second_sample_FunSetRaw/Hakefile 1 +import Development.Hake +import Development.Hake.FunSetRaw + +main = hake [ + + rule "" ".c" $ \t (s:_) -> [ [ "cc", "-o", t, s ] ] + + ] addfile ./web_page/samples/second_sample_FunSetRaw/hello.c hunk ./web_page/samples/second_sample_FunSetRaw/hello.c 1 +#include + +int +main (int argc, char *argv[]) +{ + printf( "Hello, world!\n" ); + return 0; + } hunk ./web_page/short_tutorial.xhtml.ehs 19 +

2.3. FunSetRaw

+

2.4. try

hunk ./web_page/short_tutorial/Hakefile 15 -targets = [ firstSampleXhtml, useRuleXhtml ] +targets = [ firstSampleXhtml, useRuleXhtml, useDefaultXhtml ] hunk ./web_page/short_tutorial/Hakefile 23 +useDefaultXhtml :: String +useDefaultXhtml = "use_default.xhtml" + hunk ./web_page/short_tutorial/Hakefile 33 + , "Hakefile_use_rule_FunSetRaw" hunk ./web_page/short_tutorial/Hakefile 52 - file [ "upload" ] [ "upload_index", "upload_others" ] $ const $ do + file [ "upload" ] [ "upload_index", "upload_others" ] $ const2 $ do hunk ./web_page/short_tutorial/Hakefile 55 - file [ "upload_index" ] targets $ \_ -> do + file [ "upload_index" ] targets $ const2 $ do hunk ./web_page/short_tutorial/Hakefile 67 - file [ "upload_others" ] moreFile $ \_ -> do + file [ "upload_others" ] moreFile $ const2 $ do hunk ./web_page/short_tutorial/Hakefile 80 - file [ "Hakefile_first_sample" ] [ "../samples/first_sample/Hakefile" ] $ \t -> do - copyFile "../samples/first_sample/Hakefile" t + file [ "Hakefile_first_sample" ] [ "../samples/first_sample/Hakefile" ] $ \t (s:_) -> do + copyFile s t hunk ./web_page/short_tutorial/Hakefile 84 - let src = "../samples/second_sample/Hakefile" in - file [ "Hakefile_use_rule" ] [ src ] $ \t -> do - copyFile src t + file [ "Hakefile_use_rule" ] [ "../samples/second_sample/Hakefile" ] $ \t (s:_) -> do + copyFile s t + return ExitSuccess + , + file [ "Hakefile_use_rule_FunSetRaw" ] [ "../samples/second_sample_FunSetRaw/Hakefile" ] $ \t (s:_) -> do + copyFile s t addfile ./web_page/short_tutorial/use_default.xhtml.ehs hunk ./web_page/short_tutorial/use_default.xhtml.ehs 1 + +<%% import System.Time (getClockTime) %%> +<%% import Text.RegexPR (gsubRegexPR) %%> + +use default sample + +

This page is under construction now. <%==$ getClockTime %>

+ + hunk ./web_page/short_tutorial/use_rule.xhtml.ehs 10 -

2.2 sample

+

2.2. sample

hunk ./web_page/short_tutorial/use_rule.xhtml.ehs 18 + +

2.3. FunSetRaw

+

You can use FunSetRaw if you like.

+

> cat Hakefile

+
<%== readFile "../samples/second_sample_FunSetRaw/Hakefile" %>
+ +

2.4. try

}