From aba389ec640eb4f6254b6828621c689c638ab791 Mon Sep 17 00:00:00 2001 From: Alan Zimmerman Date: Sat, 9 Dec 2017 16:12:51 +0200 Subject: WIP on backpack support --- src/CabalHelper/Shared/InterfaceTypes.hs | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/CabalHelper/Shared') 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] -- cgit v1.2.3