{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} module Documentation.Haddocset.Plist ( Plist(..) , showPlist ) where import Data.Monoid import Data.Text (Text) import qualified Data.Text as T data Plist = Plist { cfBundleIdentifier :: Text , cfBundleName :: Text , docSetPlatformFamily :: Text } deriving Show showPlist :: Plist -> Text showPlist Plist{..} = T.unlines [ "" , "" , "" , "" , "CFBundleIdentifier" , "" <> cfBundleIdentifier <> "" , "CFBundleName" , "" <> cfBundleName <> "" , "DocSetPlatformFamily" , "" <> docSetPlatformFamily <> "" , "isDashDocset" , "" , "dashIndexFilePath" , "index.html" , "DashDocSetFamily" , "dashtoc" , "" , "" ]