From 47e9af464549ddec94a992d9f9e7ae12a96e64e8 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Thu, 14 Feb 2019 01:05:12 +0100 Subject: Sync with Cabal HEAD --- src/CabalHelper/Runtime/Compat.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/CabalHelper/Runtime/Compat.hs b/src/CabalHelper/Runtime/Compat.hs index 21d4efd..0c5a895 100644 --- a/src/CabalHelper/Runtime/Compat.hs +++ b/src/CabalHelper/Runtime/Compat.hs @@ -185,8 +185,7 @@ unUnqualComponentName' = id componentNameFromComponent :: Component -> ComponentName #if CH_MIN_VERSION_Cabal(2,5,0) -componentNameFromComponent (CLib Library { libName = Nothing }) = CLibName LMainLibName -componentNameFromComponent (CLib Library { libName = Just n }) = CLibName $ LSubLibName n +componentNameFromComponent (CLib Library { libName = n }) = CLibName n componentNameFromComponent (CFLib ForeignLib {..}) = CFLibName foreignLibName #elif CH_MIN_VERSION_Cabal(1,25,0) -- CPP >= 1.25 (redundant) -- cgit v1.2.3