module GHC.UniqueSubdir
( uniqueSubdir
) where
import Prelude
import Data.List (intercalate)
import GHC.Platform
import GHC.Version (cProjectVersion)
uniqueSubdir :: PlatformMini -> FilePath
uniqueSubdir :: PlatformMini -> FilePath
uniqueSubdir PlatformMini
archOs = FilePath -> [FilePath] -> FilePath
forall a. [a] -> [[a]] -> [a]
intercalate FilePath
"-"
[ Arch -> FilePath
stringEncodeArch (Arch -> FilePath) -> Arch -> FilePath
forall a b. (a -> b) -> a -> b
$ PlatformMini -> Arch
platformMini_arch PlatformMini
archOs
, OS -> FilePath
stringEncodeOS (OS -> FilePath) -> OS -> FilePath
forall a b. (a -> b) -> a -> b
$ PlatformMini -> OS
platformMini_os PlatformMini
archOs
, FilePath
cProjectVersion
]