summaryrefslogtreecommitdiff
path: root/compiler/main/FileSettings.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/main/FileSettings.hs')
-rw-r--r--compiler/main/FileSettings.hs16
1 files changed, 16 insertions, 0 deletions
diff --git a/compiler/main/FileSettings.hs b/compiler/main/FileSettings.hs
new file mode 100644
index 0000000000..f531d206a9
--- /dev/null
+++ b/compiler/main/FileSettings.hs
@@ -0,0 +1,16 @@
+module FileSettings
+ ( FileSettings (..)
+ ) where
+
+import GhcPrelude
+
+-- | Paths to various files and directories used by GHC, including those that
+-- provide more settings.
+data FileSettings = FileSettings
+ { fileSettings_ghcUsagePath :: FilePath -- ditto
+ , fileSettings_ghciUsagePath :: FilePath -- ditto
+ , fileSettings_toolDir :: Maybe FilePath -- ditto
+ , fileSettings_topDir :: FilePath -- ditto
+ , fileSettings_tmpDir :: String -- no trailing '/'
+ , fileSettings_systemPackageConfig :: FilePath
+ }