[more of same thomashartman1@gmail.com**20081004142431] hunk ./src/HAppSBrowse.hs 1 +{-# LANGUAGE NoMonomorphismRestriction #-} + hunk ./src/HAppSBrowse.hs 15 -browsedir :: String -> String -> ServerPartT IO Response -browsedir diralias d = multi [ + + +browsedir = browsedir' defPaintdir defPaintfile +-- browsedir' :: String -> String -> ServerPartT IO Response + + +browsedir' paintdir paintfile diralias d = multi [ hunk ./src/HAppSBrowse.hs 42 - where -- paintdir/paintfile are monadic for optional IO - paintfile f = return f -- - paintdir aliaspath fs = - let flinks = map g . filter (not . boringfile ) . sort $ fs - g f = simpleLink ('/' : (combine aliaspath f)) f - in return $ HtmlString $ "

" ++ aliaspath ++ "

\n" + hunk ./src/HAppSBrowse.hs 44 - simpleLink url anchor = "" ++ anchor ++ "" +-- paintdir/paintfile are monadic for optional IO +defPaintfile f = return f -- +defPaintdir aliaspath fs = + let flinks = map g . filter (not . boringfile ) . sort $ fs + g f = simpleLink ('/' : (combine aliaspath f)) f + in return $ HtmlString $ "

" ++ aliaspath ++ "

\n" + where simpleLink url anchor = "" ++ anchor ++ "" hunk ./src/HAppSBrowse.hs 59 - - -