packages feed

hyakko 0.6.3 → 0.6.4

raw patch · 2 files changed

+6/−5 lines, 2 files

Files

hyakko.cabal view
@@ -1,5 +1,5 @@ name:             hyakko-version:          0.6.3+version:          0.6.4 cabal-version:    >= 1.6 build-type:       Simple license:          MIT
src/Hyakko.lhs view
@@ -87,7 +87,7 @@ >           code <- T.readFile x >           dataDir <- getDataDir >           let sections  = parse (getLanguage x) code->               opts'     = configHyakko opts+>               opts'     = configHyakko opts dataDir >           unless (isNothing $ layout opts') $ do >             let layoutDir = fromJust $ layout opts' >             copyDirectory opts'$ dataDir </> "resources"@@ -507,10 +507,11 @@ **Configure** this particular run of hyakko. We might use a passed-in external template, or one of the built-in **layouts**. -> configHyakko :: Hyakko -> Hyakko-> configHyakko oldConfig =+> configHyakko :: Hyakko -> FilePath -> Hyakko+> configHyakko oldConfig datadir = >   if isNothing $ template oldConfig then->     let dir    = "resources" </> (fromJust $ layout oldConfig)+>     let dir    = datadir </> "resources"+>                          </> (fromJust $ layout oldConfig) >     in oldConfig { template = Just $ dir </> "hyakko.html" >                  , css      = Just $ dir </> "hyakko.css" >                  }