From f958f2d07e8cd213014bff98de5e305e7ce84608 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Sat, 15 Dec 2018 22:55:56 +0100 Subject: Implement `compilerVersion` --- src/CabalHelper/Compiletime/Types.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/CabalHelper/Compiletime/Types.hs b/src/CabalHelper/Compiletime/Types.hs index e632c3b..60b0f4d 100644 --- a/src/CabalHelper/Compiletime/Types.hs +++ b/src/CabalHelper/Compiletime/Types.hs @@ -37,6 +37,9 @@ import System.Posix.Types import CabalHelper.Compiletime.Types.RelativePath import CabalHelper.Shared.InterfaceTypes +import Data.List.NonEmpty (NonEmpty) +--import qualified Data.List.NonEmpty as NonEmpty + -- | The kind of project being managed by a 'QueryEnv' (pun intended). data ProjType @@ -217,7 +220,7 @@ newtype ProjConfModTimes = ProjConfModTimes [(FilePath, EpochTime)] data ProjInfo pt = ProjInfo { piCabalVersion :: !Version , piProjConfModTimes :: !ProjConfModTimes - , piUnits :: ![Unit pt] + , piUnits :: !(NonEmpty (Unit pt)) , piImpl :: !(ProjInfoImpl pt) } -- cgit v1.2.3