diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-11-25 15:30:13 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-11-25 15:30:13 +0300 |
commit | 88b1eb65bf7a71b3d74d00ed711ae7891884c5d6 (patch) | |
tree | b4ec88ed8b460e870c2f715184c1d6bb771ebaab | |
parent | 0c1963044b47793eff2958b775287216ecca7993 (diff) | |
download | nixsap-88b1eb65bf7a71b3d74d00ed711ae7891884c5d6.tar.gz |
xinclude2nix: style
-rw-r--r-- | modules/pkgs/xinclude2nix/xinclude2nix.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/pkgs/xinclude2nix/xinclude2nix.hs b/modules/pkgs/xinclude2nix/xinclude2nix.hs index aaf505e..369f103 100644 --- a/modules/pkgs/xinclude2nix/xinclude2nix.hs +++ b/modules/pkgs/xinclude2nix/xinclude2nix.hs @@ -10,14 +10,14 @@ module Main ( main ) where -import Data.List (intercalate, isPrefixOf, stripPrefix) +import Data.List (isPrefixOf, stripPrefix) import Data.Maybe (fromMaybe) import System.Environment (getArgs) import Text.XML.HXT.Core ((>>>), deep, getAttrValue, hasAttr, hasName, isElem, readDocument, returnA, runX) -getXIncludes :: String -> IO [String] +getXIncludes :: FilePath -> IO [String] getXIncludes xmlFileName = runX $ readDocument [] xmlFileName >>> @@ -40,7 +40,7 @@ unique (x:xs) | otherwise = x : unique xs toNix :: [String] -> String -toNix ss = "[" ++ intercalate " " (map show ss) ++ "]" +toNix ss = "[" ++ unwords (map show ss) ++ "]" main :: IO () main = do |