aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper/Shared
diff options
context:
space:
mode:
authorAlan Zimmerman <alan.zimm@gmail.com>2017-12-09 16:12:51 +0200
committerDaniel Gröber <dxld@darkboxed.org>2018-01-18 14:10:26 +0100
commitaba389ec640eb4f6254b6828621c689c638ab791 (patch)
treed21a5a8b4a808bb45e8242a36b774e38c838f63f /src/CabalHelper/Shared
parenta4d9019b480ad59c3a496f83bc307bc299d6d9eb (diff)
WIP on backpack support
Diffstat (limited to 'src/CabalHelper/Shared')
-rw-r--r--src/CabalHelper/Shared/InterfaceTypes.hs15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/CabalHelper/Shared/InterfaceTypes.hs b/src/CabalHelper/Shared/InterfaceTypes.hs
index 5f4972f..bf61bb7 100644
--- a/src/CabalHelper/Shared/InterfaceTypes.hs
+++ b/src/CabalHelper/Shared/InterfaceTypes.hs
@@ -47,11 +47,15 @@ data ChResponse
data ChComponentName = ChSetupHsName
| ChLibName
- | ChSubLibName String
- | ChFLibName String
- | ChExeName String
- | ChTestName String
- | ChBenchName String
+ | ChSubLibName String ChUnitId
+ | ChFLibName String ChUnitId
+ | ChExeName String ChUnitId
+ | ChTestName String ChUnitId
+ | ChBenchName String ChUnitId
+ deriving (Eq, Ord, Read, Show, Generic)
+
+data ChUnitId = ChNoUnitId
+ | ChUnitId String
deriving (Eq, Ord, Read, Show, Generic)
newtype ChModuleName = ChModuleName String
@@ -64,6 +68,7 @@ data ChEntrypoint = ChSetupEntrypoint -- ^ Almost like 'ChExeEntrypoint' but
-- to find these files.
| ChLibEntrypoint { chExposedModules :: [ChModuleName]
, chOtherModules :: [ChModuleName]
+ , chSignatures :: [ChModuleName] -- backpack only
}
| ChExeEntrypoint { chMainIs :: FilePath
, chOtherModules :: [ChModuleName]