packages feed

multifile 0.1.0.1 → 0.1.0.2

raw patch · 2 files changed

+4/−3 lines, 2 filesdep +prettydep ~optparse-applicative

Dependencies added: pretty

Dependency ranges changed: optparse-applicative

Files

multifile.cabal view
@@ -10,7 +10,7 @@ -- PVP summary:      +-+------- breaking API changes --                   | | +----- non-breaking API additions --                   | | | +--- code changes with no API change-version:             0.1.0.1+version:             0.1.0.2  -- A short (one-line) description of the package. synopsis: create many files from one@@ -60,7 +60,7 @@   -- other-extensions:          -- Other library packages from which modules are imported.-  build-depends:       base >=4.9 && <4.10 , HaXml < 10000 , directory < 10000, optparse-applicative+  build-depends:       base >=4.9 && <4.10 , HaXml < 10000 , directory < 10000, optparse-applicative < 10000 , pretty <10000      -- Directories containing source files.   hs-source-dirs:      src
src/Main.hs view
@@ -12,12 +12,13 @@  import Options.Applicative +import Text.PrettyPrint  create' xs = do  files <- forM xs $ \filePath -> do    content <- readFile filePath    return ( File (File_Attrs filePath) content )- return (show $ htmlprint $ toContents $ Multifile files)+ return (render $ htmlprint $ toContents $ Multifile files)  create xs = create' xs >>= putStr