Changeset 1169 for lang/haskell

Show
Ignore:
Timestamp:
11/06/07 11:07:42 (13 months ago)
Author:
jknaoya
Message:

lang/haskell/blosxkel/head.xml,
lang/haskell/blosxkel/blosxkel.hs:

atom がただしくなるようにしました。
バージョンを表示するようになりました。

Location:
lang/haskell/blosxkel
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/haskell/blosxkel/blosxkel.hs

    r1165 r1169  
    88import System.Time 
    99import System.Locale (defaultTimeLocale) 
     10 
     11import System.Info 
     12import Data.Version 
    1013 
    1114import Data.List 
     
    113116    ; entries <- getTextFileEntries $ getConfig config "data-dir" 
    114117    ; ct <- fill "content_type" [] 
    115     ; ch <- fill "head" [] 
     118    ; ch <- fill "head" [("lastupdate", strfctime "%Y-%m-%dT%H:%M:%SZ" 
     119                                        (time $ maximumBy (\a b -> compare (time a) (time b)) entries))] 
    116120    ; cs <- mapM 
    117121               (\e -> fill "story" 
     
    139143                                        (params ++ [("title"  , getConfig config "title"), 
    140144                                        ("author" , getConfig config "author"), 
    141                                         ("version", "How do I get this version of GHC in program?")] ++ cgiparams) 
     145                                        ("version", unwords [os, arch, compilerName, showVersion compilerVersion])] ++ cgiparams) 
    142146 
    143147cgiMain :: CGI CGIResult 
  • lang/haskell/blosxkel/head.xml

    r1165 r1169  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<feed xmlns="http://www.w3.org/2005/Atom"> 
    3         <title>$title</title> 
    4         <link href="$servername$home$pathinfo"/> 
    5         <updated>2003-12-13T18:30:02Z</updated> 
    6         <author> 
    7         <name>$author</name> 
    8         </author> 
    9         <id>$serverroot$home$pathinfo</id> 
     3    <title>$title</title> 
     4    <link href="$servername$home$pathinfo"/> 
     5    <updated>$lastupdate</updated> 
     6    <author> 
     7        <name>$author</name> 
     8    </author> 
     9    <id>$servername$home$pathinfo</id> 
    1010 
    1111